From b3d1717fbe8403ed53306d47f7e0a265e26b7b83 Mon Sep 17 00:00:00 2001 From: Jon Casey Date: Fri, 15 Feb 2019 15:25:12 -0700 Subject: [PATCH 1/6] Regenerate v1 and v2 APIs using latest Swagger specifications --- config_v1.json | 2 +- config_v2.json | 2 +- jcapiv1/README.md | 11 +- jcapiv1/docs/ApplicationsApi.md | 4 +- jcapiv1/docs/CommandResultsApi.md | 10 +- jcapiv1/docs/CommandsApi.md | 10 +- jcapiv1/docs/Mfa.md | 10 + jcapiv1/docs/OrganizationsApi.md | 10 +- jcapiv1/docs/RadiusServersApi.md | 6 +- jcapiv1/docs/SearchApi.md | 12 +- jcapiv1/docs/SystemsApi.md | 20 +- jcapiv1/docs/Systemuser.md | 1 + jcapiv1/docs/Systemuserput.md | 1 + jcapiv1/docs/Systemuserputpost.md | 1 + jcapiv1/docs/Systemuserreturn.md | 1 + jcapiv1/docs/SystemusersApi.md | 80 +++++- jcapiv1/docs/TagsApi.md | 8 +- jcapiv1/lib/jcapiv1.rb | 1 + jcapiv1/lib/jcapiv1/api/applications_api.rb | 7 +- .../lib/jcapiv1/api/command_results_api.rb | 14 +- jcapiv1/lib/jcapiv1/api/commands_api.rb | 14 +- jcapiv1/lib/jcapiv1/api/organizations_api.rb | 11 +- jcapiv1/lib/jcapiv1/api/radius_servers_api.rb | 7 +- jcapiv1/lib/jcapiv1/api/search_api.rb | 21 +- jcapiv1/lib/jcapiv1/api/systems_api.rb | 24 +- jcapiv1/lib/jcapiv1/api/systemusers_api.rb | 90 ++++++- jcapiv1/lib/jcapiv1/api/tags_api.rb | 6 + jcapiv1/lib/jcapiv1/models/mfa.rb | 206 ++++++++++++++++ jcapiv1/lib/jcapiv1/models/systemuser.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemuserput.rb | 17 +- .../lib/jcapiv1/models/systemuserputpost.rb | 17 +- .../lib/jcapiv1/models/systemuserreturn.rb | 17 +- jcapiv1/lib/jcapiv1/version.rb | 2 +- jcapiv1/spec/api/applications_api_spec.rb | 3 +- jcapiv1/spec/api/command_results_api_spec.rb | 6 +- jcapiv1/spec/api/commands_api_spec.rb | 6 +- jcapiv1/spec/api/organizations_api_spec.rb | 5 +- jcapiv1/spec/api/radius_servers_api_spec.rb | 3 +- jcapiv1/spec/api/search_api_spec.rb | 9 +- jcapiv1/spec/api/systems_api_spec.rb | 10 +- jcapiv1/spec/api/systemusers_api_spec.rb | 28 ++- jcapiv1/spec/api/tags_api_spec.rb | 2 + jcapiv1/spec/models/mfa_spec.rb | 54 ++++ jcapiv1/spec/models/systemuser_spec.rb | 6 + jcapiv1/spec/models/systemuserput_spec.rb | 6 + jcapiv1/spec/models/systemuserputpost_spec.rb | 6 + jcapiv1/spec/models/systemuserreturn_spec.rb | 6 + jcapiv2/README.md | 19 +- jcapiv2/docs/Administrator.md | 13 + jcapiv2/docs/InlineResponse200.md | 9 + jcapiv2/docs/InlineResponse401.md | 8 + jcapiv2/docs/Mfa.md | 10 + jcapiv2/docs/PoliciesApi.md | 32 +-- jcapiv2/docs/Provider.md | 9 + jcapiv2/docs/ProviderContact.md | 9 + jcapiv2/docs/ProvidersApi.md | 79 ++++++ jcapiv2/docs/Systemuser.md | 1 + jcapiv2/docs/Systemuserputpost.md | 1 + jcapiv2/lib/jcapiv2.rb | 7 + jcapiv2/lib/jcapiv2/api/policies_api.rb | 52 ++-- jcapiv2/lib/jcapiv2/api/providers_api.rb | 107 ++++++++ jcapiv2/lib/jcapiv2/models/administrator.rb | 233 ++++++++++++++++++ .../lib/jcapiv2/models/inline_response_200.rb | 199 +++++++++++++++ .../lib/jcapiv2/models/inline_response_401.rb | 188 ++++++++++++++ jcapiv2/lib/jcapiv2/models/mfa.rb | 206 ++++++++++++++++ jcapiv2/lib/jcapiv2/models/provider.rb | 197 +++++++++++++++ .../lib/jcapiv2/models/provider_contact.rb | 197 +++++++++++++++ jcapiv2/lib/jcapiv2/models/systemuser.rb | 17 +- .../lib/jcapiv2/models/systemuserputpost.rb | 17 +- jcapiv2/lib/jcapiv2/version.rb | 2 +- jcapiv2/spec/api/policies_api_spec.rb | 12 +- jcapiv2/spec/api/providers_api_spec.rb | 54 ++++ jcapiv2/spec/models/administrator_spec.rb | 72 ++++++ .../spec/models/inline_response_200_spec.rb | 48 ++++ .../spec/models/inline_response_401_spec.rb | 42 ++++ jcapiv2/spec/models/mfa_spec.rb | 54 ++++ jcapiv2/spec/models/provider_contact_spec.rb | 48 ++++ jcapiv2/spec/models/provider_spec.rb | 48 ++++ jcapiv2/spec/models/systemuser_spec.rb | 6 + jcapiv2/spec/models/systemuserputpost_spec.rb | 6 + 80 files changed, 2634 insertions(+), 178 deletions(-) create mode 100644 jcapiv1/docs/Mfa.md create mode 100644 jcapiv1/lib/jcapiv1/models/mfa.rb create mode 100644 jcapiv1/spec/models/mfa_spec.rb create mode 100644 jcapiv2/docs/Administrator.md create mode 100644 jcapiv2/docs/InlineResponse200.md create mode 100644 jcapiv2/docs/InlineResponse401.md create mode 100644 jcapiv2/docs/Mfa.md create mode 100644 jcapiv2/docs/Provider.md create mode 100644 jcapiv2/docs/ProviderContact.md create mode 100644 jcapiv2/docs/ProvidersApi.md create mode 100644 jcapiv2/lib/jcapiv2/api/providers_api.rb create mode 100644 jcapiv2/lib/jcapiv2/models/administrator.rb create mode 100644 jcapiv2/lib/jcapiv2/models/inline_response_200.rb create mode 100644 jcapiv2/lib/jcapiv2/models/inline_response_401.rb create mode 100644 jcapiv2/lib/jcapiv2/models/mfa.rb create mode 100644 jcapiv2/lib/jcapiv2/models/provider.rb create mode 100644 jcapiv2/lib/jcapiv2/models/provider_contact.rb create mode 100644 jcapiv2/spec/api/providers_api_spec.rb create mode 100644 jcapiv2/spec/models/administrator_spec.rb create mode 100644 jcapiv2/spec/models/inline_response_200_spec.rb create mode 100644 jcapiv2/spec/models/inline_response_401_spec.rb create mode 100644 jcapiv2/spec/models/mfa_spec.rb create mode 100644 jcapiv2/spec/models/provider_contact_spec.rb create mode 100644 jcapiv2/spec/models/provider_spec.rb diff --git a/config_v1.json b/config_v1.json index 6335c5a..cce6b8a 100644 --- a/config_v1.json +++ b/config_v1.json @@ -1,5 +1,5 @@ { "gemName": "jcapiv1", "moduleName": "JCAPIv1", - "gemVersion": "1.3.0" + "gemVersion": "1.4.0" } diff --git a/config_v2.json b/config_v2.json index bd7809d..1f4bc87 100644 --- a/config_v2.json +++ b/config_v2.json @@ -1,5 +1,5 @@ { "gemName": "jcapiv2", "moduleName": "JCAPIv2", - "gemVersion": "1.3.0" + "gemVersion": "1.4.0" } diff --git a/jcapiv1/README.md b/jcapiv1/README.md index 711e58a..6131bb6 100644 --- a/jcapiv1/README.md +++ b/jcapiv1/README.md @@ -7,7 +7,7 @@ JCAPIv1 - the Ruby gem for the JumpCloud APIs This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 1.0 -- Package version: 1.3.0 +- Package version: 1.4.0 - Build package: io.swagger.codegen.languages.RubyClientCodegen ## Installation @@ -23,15 +23,15 @@ gem build jcapiv1.gemspec Then either install the gem locally: ```shell -gem install ./jcapiv1-1.3.0.gem +gem install ./jcapiv1-1.4.0.gem ``` -(for development, run `gem install --dev ./jcapiv1-1.3.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./jcapiv1-1.4.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'jcapiv1', '~> 1.3.0' + gem 'jcapiv1', '~> 1.4.0' ### Install from Git @@ -73,6 +73,7 @@ opts = { limit: 56, # Integer | The number of records to return at once. skip: 56, # Integer | The offset into the records to return. sort: "The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.", # String | + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -127,6 +128,7 @@ Class | Method | HTTP request | Description *JCAPIv1::SystemusersApi* | [**systemusers_resetmfa**](docs/SystemusersApi.md#systemusers_resetmfa) | **POST** /systemusers/{id}/resetmfa | Reset a system user's MFA token *JCAPIv1::SystemusersApi* | [**systemusers_systems_binding_list**](docs/SystemusersApi.md#systemusers_systems_binding_list) | **GET** /systemusers/{id}/systems | List system user binding *JCAPIv1::SystemusersApi* | [**systemusers_systems_binding_put**](docs/SystemusersApi.md#systemusers_systems_binding_put) | **PUT** /systemusers/{id}/systems | Update a system user binding +*JCAPIv1::SystemusersApi* | [**systemusers_unlock**](docs/SystemusersApi.md#systemusers_unlock) | **POST** /systemusers/{id}/unlock | Unlock a system user *JCAPIv1::TagsApi* | [**tags_delete**](docs/TagsApi.md#tags_delete) | **DELETE** /tags/{name} | Delete a Tag *JCAPIv1::TagsApi* | [**tags_get**](docs/TagsApi.md#tags_get) | **GET** /Tags/{name} | List a Tag *JCAPIv1::TagsApi* | [**tags_list**](docs/TagsApi.md#tags_list) | **GET** /tags | List All Tags @@ -158,6 +160,7 @@ Class | Method | HTTP request | Description - [JCAPIv1::CommandslistResults](docs/CommandslistResults.md) - [JCAPIv1::Errorresponse](docs/Errorresponse.md) - [JCAPIv1::Fde](docs/Fde.md) + - [JCAPIv1::Mfa](docs/Mfa.md) - [JCAPIv1::Organizationslist](docs/Organizationslist.md) - [JCAPIv1::OrganizationslistResults](docs/OrganizationslistResults.md) - [JCAPIv1::Radiusserver](docs/Radiusserver.md) diff --git a/jcapiv1/docs/ApplicationsApi.md b/jcapiv1/docs/ApplicationsApi.md index bca1a67..2188421 100644 --- a/jcapiv1/docs/ApplicationsApi.md +++ b/jcapiv1/docs/ApplicationsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Applications -The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -37,6 +37,7 @@ opts = { limit: 56, # Integer | The number of records to return at once. skip: 56, # Integer | The offset into the records to return. sort: "The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.", # String | + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -59,6 +60,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. | [optional] **skip** | **Integer**| The offset into the records to return. | [optional] **sort** | **String**| | [optional] [default to The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv1/docs/CommandResultsApi.md b/jcapiv1/docs/CommandResultsApi.md index 4f8a1ce..70b47b7 100644 --- a/jcapiv1/docs/CommandResultsApi.md +++ b/jcapiv1/docs/CommandResultsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Delete a Command result -This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` +This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` ### Example ```ruby @@ -78,7 +78,7 @@ Name | Type | Description | Notes List an individual Command result -This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -102,6 +102,7 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -122,6 +123,7 @@ Name | Type | Description | Notes **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -168,7 +170,8 @@ opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -191,6 +194,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv1/docs/CommandsApi.md b/jcapiv1/docs/CommandsApi.md index 671b801..9fb7fb0 100644 --- a/jcapiv1/docs/CommandsApi.md +++ b/jcapiv1/docs/CommandsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description Get a Command File -This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -150,7 +150,7 @@ nil (empty response body) List an individual Command -This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -174,6 +174,7 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -194,6 +195,7 @@ Name | Type | Description | Notes **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -240,7 +242,8 @@ opts = { skip: 0, # Integer | The offset into the records to return. fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -263,6 +266,7 @@ Name | Type | Description | Notes **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv1/docs/Mfa.md b/jcapiv1/docs/Mfa.md new file mode 100644 index 0000000..4f8823f --- /dev/null +++ b/jcapiv1/docs/Mfa.md @@ -0,0 +1,10 @@ +# JCAPIv1::Mfa + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exclusion** | **BOOLEAN** | | [optional] +**exclusion_until** | **DateTime** | | [optional] +**configured** | **BOOLEAN** | | [optional] + + diff --git a/jcapiv1/docs/OrganizationsApi.md b/jcapiv1/docs/OrganizationsApi.md index 8d47186..7e9d074 100644 --- a/jcapiv1/docs/OrganizationsApi.md +++ b/jcapiv1/docs/OrganizationsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Get Organization Details -This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -34,10 +34,11 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - search: "search_example" # String | + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. } begin @@ -56,10 +57,11 @@ Name | Type | Description | Notes **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] - **search** | **String**| | [optional] + **search** | **String**| A nested object containing a string `searchTerm` and a list of `fields` to search on. | [optional] ### Return type diff --git a/jcapiv1/docs/RadiusServersApi.md b/jcapiv1/docs/RadiusServersApi.md index 8f71c24..23c61d1 100644 --- a/jcapiv1/docs/RadiusServersApi.md +++ b/jcapiv1/docs/RadiusServersApi.md @@ -36,9 +36,10 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. x_org_id: "" # String | } @@ -58,6 +59,7 @@ Name | Type | Description | Notes **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] @@ -146,7 +148,7 @@ Name | Type | Description | Notes Update Radius Servers -This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` +This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` ### Example ```ruby diff --git a/jcapiv1/docs/SearchApi.md b/jcapiv1/docs/SearchApi.md index a9a097b..ca75470 100644 --- a/jcapiv1/docs/SearchApi.md +++ b/jcapiv1/docs/SearchApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Search Organizations -This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` +This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` ### Example ```ruby @@ -37,6 +37,7 @@ accept = "application/json" # String | opts = { body: JCAPIv1::Search.new, # Search | fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. } @@ -58,6 +59,7 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **body** | [**Search**](Search.md)| | [optional] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] @@ -81,7 +83,7 @@ Name | Type | Description | Notes Search Systems -Return Systems in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : { \"or\" : [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` +Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` ### Example ```ruby @@ -107,6 +109,7 @@ opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. x_org_id: "" # String | skip: 0, # Integer | The offset into the records to return. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -129,6 +132,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **x_org_id** | **String**| | [optional] [default to ] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] + **filter** | **String**| A filter to apply to the query. | [optional] ### Return type @@ -150,7 +154,7 @@ Name | Type | Description | Notes Search System Users -Return System Users in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"email\" : \"example@jumpcloud.com\"}], \"fields\" : \"email username sudo\" }' ``` +Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` ### Example ```ruby @@ -173,6 +177,7 @@ accept = "application/json" # String | opts = { body: JCAPIv1::Search.new, # Search | fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. x_org_id: "" # String | @@ -195,6 +200,7 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **body** | [**Search**](Search.md)| | [optional] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **x_org_id** | **String**| | [optional] [default to ] diff --git a/jcapiv1/docs/SystemsApi.md b/jcapiv1/docs/SystemsApi.md index 65170ee..f1e53db 100644 --- a/jcapiv1/docs/SystemsApi.md +++ b/jcapiv1/docs/SystemsApi.md @@ -85,7 +85,7 @@ Name | Type | Description | Notes List an individual system -This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -109,6 +109,7 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. date: "date_example", # String | Current date header for the System Context API authorization: "authorization_example", # String | Authorization header for the System Context API x_org_id: "" # String | @@ -131,6 +132,7 @@ Name | Type | Description | Notes **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] **x_org_id** | **String**| | [optional] [default to ] @@ -155,7 +157,7 @@ Name | Type | Description | Notes List All Systems -This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -178,9 +180,11 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. x_org_id: "" # String | + search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + skip: 0, # Integer | The offset into the records to return. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -200,9 +204,11 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] + **x_org_id** | **String**| | [optional] [default to ] + **search** | **String**| A nested object containing a string `searchTerm` and a list of `fields` to search on. | [optional] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] - **x_org_id** | **String**| | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] ### Return type @@ -319,7 +325,8 @@ opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -343,6 +350,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv1/docs/Systemuser.md b/jcapiv1/docs/Systemuser.md index a920c74..9def042 100644 --- a/jcapiv1/docs/Systemuser.md +++ b/jcapiv1/docs/Systemuser.md @@ -42,5 +42,6 @@ Name | Type | Description | Notes **employee_identifier** | **String** | Must be unique per user. | [optional] **job_title** | **String** | | [optional] **department** | **String** | | [optional] +**mfa** | [**Mfa**](Mfa.md) | | [optional] diff --git a/jcapiv1/docs/Systemuserput.md b/jcapiv1/docs/Systemuserput.md index 4cb5d4e..dcedbd5 100644 --- a/jcapiv1/docs/Systemuserput.md +++ b/jcapiv1/docs/Systemuserput.md @@ -38,5 +38,6 @@ Name | Type | Description | Notes **employee_type** | **String** | | [optional] **company** | **String** | | [optional] **employee_identifier** | **String** | Must be unique per user. | [optional] +**mfa** | [**Mfa**](Mfa.md) | | [optional] diff --git a/jcapiv1/docs/Systemuserputpost.md b/jcapiv1/docs/Systemuserputpost.md index 5cb0eef..9ba0eac 100644 --- a/jcapiv1/docs/Systemuserputpost.md +++ b/jcapiv1/docs/Systemuserputpost.md @@ -39,5 +39,6 @@ Name | Type | Description | Notes **employee_type** | **String** | | [optional] **company** | **String** | | [optional] **employee_identifier** | **String** | Must be unique per user. | [optional] +**mfa** | [**Mfa**](Mfa.md) | | [optional] diff --git a/jcapiv1/docs/Systemuserreturn.md b/jcapiv1/docs/Systemuserreturn.md index 2f9b11d..800352f 100644 --- a/jcapiv1/docs/Systemuserreturn.md +++ b/jcapiv1/docs/Systemuserreturn.md @@ -45,5 +45,6 @@ Name | Type | Description | Notes **employee_type** | **String** | | [optional] **company** | **String** | | [optional] **employee_identifier** | **String** | Must be unique per user. | [optional] +**mfa** | [**Mfa**](Mfa.md) | | [optional] diff --git a/jcapiv1/docs/SystemusersApi.md b/jcapiv1/docs/SystemusersApi.md index 736552c..6342e86 100644 --- a/jcapiv1/docs/SystemusersApi.md +++ b/jcapiv1/docs/SystemusersApi.md @@ -15,6 +15,7 @@ Method | HTTP request | Description [**systemusers_resetmfa**](SystemusersApi.md#systemusers_resetmfa) | **POST** /systemusers/{id}/resetmfa | Reset a system user's MFA token [**systemusers_systems_binding_list**](SystemusersApi.md#systemusers_systems_binding_list) | **GET** /systemusers/{id}/systems | List system user binding [**systemusers_systems_binding_put**](SystemusersApi.md#systemusers_systems_binding_put) | **PUT** /systemusers/{id}/systems | Update a system user binding +[**systemusers_unlock**](SystemusersApi.md#systemusers_unlock) | **POST** /systemusers/{id}/unlock | Unlock a system user # **sshkey_delete** @@ -215,7 +216,7 @@ Name | Type | Description | Notes Delete a system user -This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -303,6 +304,7 @@ accept = "application/json" # String | opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -323,6 +325,7 @@ Name | Type | Description | Notes **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | **String**| Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -345,7 +348,7 @@ Name | Type | Description | Notes List all system users -This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -370,8 +373,9 @@ opts = { skip: 0, # Integer | The offset into the records to return. sort: "", # String | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. fields: "", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: "", # String | x_org_id: "" # String | + search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -393,8 +397,9 @@ Name | Type | Description | Notes **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to ] **fields** | **String**| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to ] - **filter** | **String**| | [optional] [default to ] **x_org_id** | **String**| | [optional] [default to ] + **search** | **String**| A nested object containing a string `searchTerm` and a list of `fields` to search on. | [optional] + **filter** | **String**| A filter to apply to the query. | [optional] ### Return type @@ -545,7 +550,7 @@ Name | Type | Description | Notes Reset a system user's MFA token -This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` +This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` ### Example ```ruby @@ -608,7 +613,7 @@ Name | Type | Description | Notes List system user binding -Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` +Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` ### Example ```ruby @@ -634,7 +639,8 @@ opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. x_org_id: "" # String | } @@ -658,6 +664,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -680,7 +687,7 @@ Name | Type | Description | Notes Update a system user binding -Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` +Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` ### Example ```ruby @@ -741,3 +748,60 @@ Name | Type | Description | Notes +# **systemusers_unlock** +> systemusers_unlock(id, opts) + +Unlock a system user + +This endpoint allows you to unlock a user's account. + +### Example +```ruby +# load the gem +require 'jcapiv1' +# setup authorization +JCAPIv1.configure do |config| + # Configure API key authorization: x-api-key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = JCAPIv1::SystemusersApi.new + +id = "id_example" # String | + +opts = { + x_org_id: "" # String | +} + +begin + #Unlock a system user + api_instance.systemusers_unlock(id, opts) +rescue JCAPIv1::ApiError => e + puts "Exception when calling SystemusersApi->systemusers_unlock: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| | + **x_org_id** | **String**| | [optional] [default to ] + +### Return type + +nil (empty response body) + +### Authorization + +[x-api-key](../README.md#x-api-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json; charset=utf-8 + + + diff --git a/jcapiv1/docs/TagsApi.md b/jcapiv1/docs/TagsApi.md index 5e2d9ea..798acd8 100644 --- a/jcapiv1/docs/TagsApi.md +++ b/jcapiv1/docs/TagsApi.md @@ -102,7 +102,8 @@ opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -125,6 +126,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] ### Return type @@ -170,7 +172,8 @@ opts = { fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "" # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -192,6 +195,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **sort** | **String**| Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. | [optional] [default to ] + **filter** | **String**| A filter to apply to the query. | [optional] ### Return type diff --git a/jcapiv1/lib/jcapiv1.rb b/jcapiv1/lib/jcapiv1.rb index 7874907..eced466 100644 --- a/jcapiv1/lib/jcapiv1.rb +++ b/jcapiv1/lib/jcapiv1.rb @@ -39,6 +39,7 @@ require 'jcapiv1/models/commandslist_results' require 'jcapiv1/models/errorresponse' require 'jcapiv1/models/fde' +require 'jcapiv1/models/mfa' require 'jcapiv1/models/organizationslist' require 'jcapiv1/models/organizationslist_results' require 'jcapiv1/models/radiusserver' diff --git a/jcapiv1/lib/jcapiv1/api/applications_api.rb b/jcapiv1/lib/jcapiv1/api/applications_api.rb index d27aeda..bd0659f 100644 --- a/jcapiv1/lib/jcapiv1/api/applications_api.rb +++ b/jcapiv1/lib/jcapiv1/api/applications_api.rb @@ -21,7 +21,7 @@ def initialize(api_client = ApiClient.default) end # Applications - # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -29,6 +29,7 @@ def initialize(api_client = ApiClient.default) # @option opts [Integer] :limit The number of records to return at once. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort (default to The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Applicationslist] def applications_list(content_type, accept, opts = {}) @@ -37,7 +38,7 @@ def applications_list(content_type, accept, opts = {}) end # Applications - # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -45,6 +46,7 @@ def applications_list(content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Applicationslist, Fixnum, Hash)>] Applicationslist data, response status code and response headers def applications_list_with_http_info(content_type, accept, opts = {}) @@ -68,6 +70,7 @@ def applications_list_with_http_info(content_type, accept, opts = {}) query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/command_results_api.rb b/jcapiv1/lib/jcapiv1/api/command_results_api.rb index 3f579fa..8a3722f 100644 --- a/jcapiv1/lib/jcapiv1/api/command_results_api.rb +++ b/jcapiv1/lib/jcapiv1/api/command_results_api.rb @@ -21,7 +21,7 @@ def initialize(api_client = ApiClient.default) end # Delete a Command result - # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` + # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id # @param content_type # @param accept @@ -34,7 +34,7 @@ def command_results_delete(id, content_type, accept, opts = {}) end # Delete a Command result - # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` + # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id # @param content_type # @param accept @@ -93,12 +93,13 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) end # List an individual Command result - # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Commandresult] def command_results_get(id, content_type, accept, opts = {}) @@ -107,12 +108,13 @@ def command_results_get(id, content_type, accept, opts = {}) end # List an individual Command result - # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Commandresult, Fixnum, Hash)>] Commandresult data, response status code and response headers def command_results_get_with_http_info(id, content_type, accept, opts = {}) @@ -137,6 +139,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -176,6 +179,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Commandresultslist] def command_results_list(content_type, accept, opts = {}) @@ -192,6 +196,7 @@ def command_results_list(content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Commandresultslist, Fixnum, Hash)>] Commandresultslist data, response status code and response headers def command_results_list_with_http_info(content_type, accept, opts = {}) @@ -215,6 +220,7 @@ def command_results_list_with_http_info(content_type, accept, opts = {}) query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/commands_api.rb b/jcapiv1/lib/jcapiv1/api/commands_api.rb index 3d6cbb7..0f47162 100644 --- a/jcapiv1/lib/jcapiv1/api/commands_api.rb +++ b/jcapiv1/lib/jcapiv1/api/commands_api.rb @@ -21,7 +21,7 @@ def initialize(api_client = ApiClient.default) end # Get a Command File - # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -37,7 +37,7 @@ def command_file_get(id, content_type, accept, opts = {}) end # Get a Command File - # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -173,12 +173,13 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) end # List an individual Command - # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Command] def commands_get(id, content_type, accept, opts = {}) @@ -187,12 +188,13 @@ def commands_get(id, content_type, accept, opts = {}) end # List an individual Command - # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_get_with_http_info(id, content_type, accept, opts = {}) @@ -217,6 +219,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -256,6 +259,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Commandslist] def commands_list(content_type, accept, opts = {}) @@ -272,6 +276,7 @@ def commands_list(content_type, accept, opts = {}) # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Commandslist, Fixnum, Hash)>] Commandslist data, response status code and response headers def commands_list_with_http_info(content_type, accept, opts = {}) @@ -295,6 +300,7 @@ def commands_list_with_http_info(content_type, accept, opts = {}) query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/organizations_api.rb b/jcapiv1/lib/jcapiv1/api/organizations_api.rb index b8777f7..891e138 100644 --- a/jcapiv1/lib/jcapiv1/api/organizations_api.rb +++ b/jcapiv1/lib/jcapiv1/api/organizations_api.rb @@ -21,15 +21,16 @@ def initialize(api_client = ApiClient.default) end # Get Organization Details - # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) - # @option opts [String] :search + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @return [Organizationslist] def organization_list(content_type, accept, opts = {}) data, _status_code, _headers = organization_list_with_http_info(content_type, accept, opts) @@ -37,15 +38,16 @@ def organization_list(content_type, accept, opts = {}) end # Get Organization Details - # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - # @option opts [String] :search + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @return [Array<(Organizationslist, Fixnum, Hash)>] Organizationslist data, response status code and response headers def organization_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging @@ -65,6 +67,7 @@ def organization_list_with_http_info(content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? diff --git a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb index 40bfd37..5c77ee8 100644 --- a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb @@ -26,6 +26,7 @@ def initialize(api_client = ApiClient.default) # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) @@ -42,6 +43,7 @@ def radius_servers_list(content_type, accept, opts = {}) # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. @@ -65,6 +67,7 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? @@ -167,7 +170,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) end # Update Radius Servers - # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` + # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -180,7 +183,7 @@ def radius_servers_put(content_type, accept, opts = {}) end # Update Radius Servers - # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` + # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/lib/jcapiv1/api/search_api.rb b/jcapiv1/lib/jcapiv1/api/search_api.rb index 35e4558..874b6c7 100644 --- a/jcapiv1/lib/jcapiv1/api/search_api.rb +++ b/jcapiv1/lib/jcapiv1/api/search_api.rb @@ -21,12 +21,13 @@ def initialize(api_client = ApiClient.default) end # Search Organizations - # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` + # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [Search] :body # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @return [Organizationslist] @@ -36,12 +37,13 @@ def search_organizations_post(content_type, accept, opts = {}) end # Search Organizations - # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` + # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [Search] :body # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @return [Array<(Organizationslist, Fixnum, Hash)>] Organizationslist data, response status code and response headers @@ -63,6 +65,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? @@ -95,7 +98,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) end # Search Systems - # Return Systems in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : { \"or\" : [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` + # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -104,6 +107,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [String] :x_org_id (default to ) # @option opts [Integer] :skip The offset into the records to return. (default to 0) + # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] def search_systems_post(content_type, accept, opts = {}) data, _status_code, _headers = search_systems_post_with_http_info(content_type, accept, opts) @@ -111,7 +115,7 @@ def search_systems_post(content_type, accept, opts = {}) end # Search Systems - # Return Systems in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : { \"or\" : [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` + # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -120,6 +124,7 @@ def search_systems_post(content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [String] :x_org_id # @option opts [Integer] :skip The offset into the records to return. + # @option opts [String] :filter A filter to apply to the query. # @return [Array<(Systemslist, Fixnum, Hash)>] Systemslist data, response status code and response headers def search_systems_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging @@ -141,6 +146,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -172,12 +178,13 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) end # Search System Users - # Return System Users in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"email\" : \"example@jumpcloud.com\"}], \"fields\" : \"email username sudo\" }' ``` + # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [Search] :body # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :x_org_id (default to ) @@ -188,12 +195,13 @@ def search_systemusers_post(content_type, accept, opts = {}) end # Search System Users - # Return System Users in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"email\" : \"example@jumpcloud.com\"}], \"fields\" : \"email username sudo\" }' ``` + # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [Search] :body # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :x_org_id @@ -216,6 +224,7 @@ def search_systemusers_post_with_http_info(content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? diff --git a/jcapiv1/lib/jcapiv1/api/systems_api.rb b/jcapiv1/lib/jcapiv1/api/systems_api.rb index d6349da..c792ab2 100644 --- a/jcapiv1/lib/jcapiv1/api/systems_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systems_api.rb @@ -99,12 +99,13 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) end # List an individual system - # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API # @option opts [String] :x_org_id (default to ) @@ -115,12 +116,13 @@ def systems_get(id, content_type, accept, opts = {}) end # List an individual system - # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API # @option opts [String] :x_org_id @@ -147,6 +149,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -180,15 +183,17 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) end # List All Systems - # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) + # @option opts [String] :x_org_id (default to ) + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) - # @option opts [String] :x_org_id (default to ) + # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] def systems_list(content_type, accept, opts = {}) data, _status_code, _headers = systems_list_with_http_info(content_type, accept, opts) @@ -196,15 +201,17 @@ def systems_list(content_type, accept, opts = {}) end # List All Systems - # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. + # @option opts [String] :x_org_id + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - # @option opts [String] :x_org_id + # @option opts [String] :filter A filter to apply to the query. # @return [Array<(Systemslist, Fixnum, Hash)>] Systemslist data, response status code and response headers def systems_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging @@ -225,8 +232,10 @@ def systems_list_with_http_info(content_type, accept, opts = {}) query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -346,6 +355,7 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Systemuserbinding] def systems_systemusers_binding_list(id, content_type, accept, opts = {}) @@ -363,6 +373,7 @@ def systems_systemusers_binding_list(id, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Systemuserbinding, Fixnum, Hash)>] Systemuserbinding data, response status code and response headers def systems_systemusers_binding_list_with_http_info(id, content_type, accept, opts = {}) @@ -390,6 +401,7 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb index 16ab25a..97395a1 100644 --- a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb @@ -238,7 +238,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) end # Delete a system user - # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -251,7 +251,7 @@ def systemusers_delete(id, content_type, accept, opts = {}) end # Delete a system user - # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -316,6 +316,7 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Systemuserreturn] def systemusers_get(id, content_type, accept, opts = {}) @@ -330,6 +331,7 @@ def systemusers_get(id, content_type, accept, opts = {}) # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_get_with_http_info(id, content_type, accept, opts = {}) @@ -354,6 +356,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) # query parameters query_params = {} query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -385,7 +388,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) end # List all system users - # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -393,8 +396,9 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to ) # @option opts [String] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to ) - # @option opts [String] :filter (default to ) # @option opts [String] :x_org_id (default to ) + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. + # @option opts [String] :filter A filter to apply to the query. # @return [Systemuserslist] def systemusers_list(content_type, accept, opts = {}) data, _status_code, _headers = systemusers_list_with_http_info(content_type, accept, opts) @@ -402,7 +406,7 @@ def systemusers_list(content_type, accept, opts = {}) end # List all system users - # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -410,8 +414,9 @@ def systemusers_list(content_type, accept, opts = {}) # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [String] :filter # @option opts [String] :x_org_id + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. + # @option opts [String] :filter A filter to apply to the query. # @return [Array<(Systemuserslist, Fixnum, Hash)>] Systemuserslist data, response status code and response headers def systemusers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging @@ -434,6 +439,7 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? + query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters @@ -608,7 +614,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) end # Reset a system user's MFA token - # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` + # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id # @param x_api_key # @param [Hash] opts the optional parameters @@ -621,7 +627,7 @@ def systemusers_resetmfa(id, x_api_key, opts = {}) end # Reset a system user's MFA token - # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` + # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id # @param x_api_key # @param [Hash] opts the optional parameters @@ -675,7 +681,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) end # List system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -684,6 +690,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id (default to ) # @return [Object] def systemusers_systems_binding_list(id, content_type, accept, opts = {}) @@ -692,7 +699,7 @@ def systemusers_systems_binding_list(id, content_type, accept, opts = {}) end # List system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -701,6 +708,7 @@ def systemusers_systems_binding_list(id, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def systemusers_systems_binding_list_with_http_info(id, content_type, accept, opts = {}) @@ -728,6 +736,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -759,7 +768,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op end # Update a system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -773,7 +782,7 @@ def systemusers_systems_binding_put(id, content_type, accept, opts = {}) end # Update a system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -831,5 +840,62 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt end return data, status_code, headers end + + # Unlock a system user + # This endpoint allows you to unlock a user's account. + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :x_org_id (default to ) + # @return [nil] + def systemusers_unlock(id, opts = {}) + systemusers_unlock_with_http_info(id, opts) + return nil + end + + # Unlock a system user + # This endpoint allows you to unlock a user's account. + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :x_org_id + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def systemusers_unlock_with_http_info(id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_unlock ..." + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling SystemusersApi.systemusers_unlock" + end + # resource path + local_var_path = "/systemusers/{id}/unlock".sub('{' + 'id' + '}', id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + header_params[:'x-org-id'] = opts[:'x_org_id'] if !opts[:'x_org_id'].nil? + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['x-api-key'] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: SystemusersApi#systemusers_unlock\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end end end diff --git a/jcapiv1/lib/jcapiv1/api/tags_api.rb b/jcapiv1/lib/jcapiv1/api/tags_api.rb index 21ce5d1..d8fb907 100644 --- a/jcapiv1/lib/jcapiv1/api/tags_api.rb +++ b/jcapiv1/lib/jcapiv1/api/tags_api.rb @@ -99,6 +99,7 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @return [Tag] def tags_get(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_get_with_http_info(name, content_type, accept, opts) @@ -115,6 +116,7 @@ def tags_get(name, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_get_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging @@ -141,6 +143,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} @@ -179,6 +182,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. (default to ) + # @option opts [String] :filter A filter to apply to the query. # @return [Tagslist] def tags_list(content_type, accept, opts = {}) data, _status_code, _headers = tags_list_with_http_info(content_type, accept, opts) @@ -194,6 +198,7 @@ def tags_list(content_type, accept, opts = {}) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @return [Array<(Tagslist, Fixnum, Hash)>] Tagslist data, response status code and response headers def tags_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging @@ -216,6 +221,7 @@ def tags_list_with_http_info(content_type, accept, opts = {}) query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? + query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? # header parameters header_params = {} diff --git a/jcapiv1/lib/jcapiv1/models/mfa.rb b/jcapiv1/lib/jcapiv1/models/mfa.rb new file mode 100644 index 0000000..88d5e6a --- /dev/null +++ b/jcapiv1/lib/jcapiv1/models/mfa.rb @@ -0,0 +1,206 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V1 API. This set of endpoints allows JumpCloud customers to manage commands, systems, & system users. + +OpenAPI spec version: 1.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv1 + + class Mfa + attr_accessor :exclusion + + attr_accessor :exclusion_until + + attr_accessor :configured + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'exclusion' => :'exclusion', + :'exclusion_until' => :'exclusionUntil', + :'configured' => :'configured' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'exclusion' => :'BOOLEAN', + :'exclusion_until' => :'DateTime', + :'configured' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'exclusion') + self.exclusion = attributes[:'exclusion'] + end + + if attributes.has_key?(:'exclusionUntil') + self.exclusion_until = attributes[:'exclusionUntil'] + end + + if attributes.has_key?(:'configured') + self.configured = attributes[:'configured'] + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + exclusion == o.exclusion && + exclusion_until == o.exclusion_until && + configured == o.configured + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [exclusion, exclusion_until, configured].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv1.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv1/lib/jcapiv1/models/systemuser.rb b/jcapiv1/lib/jcapiv1/models/systemuser.rb index 4368add..fe24828 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuser.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuser.rb @@ -94,6 +94,8 @@ class Systemuser attr_accessor :department + attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -136,7 +138,8 @@ def self.attribute_map :'company' => :'company', :'employee_identifier' => :'employeeIdentifier', :'job_title' => :'jobTitle', - :'department' => :'department' + :'department' => :'department', + :'mfa' => :'mfa' } end @@ -181,7 +184,8 @@ def self.swagger_types :'company' => :'String', :'employee_identifier' => :'String', :'job_title' => :'String', - :'department' => :'String' + :'department' => :'String', + :'mfa' => :'Mfa' } end @@ -355,6 +359,10 @@ def initialize(attributes = {}) self.department = attributes[:'department'] end + if attributes.has_key?(:'mfa') + self.mfa = attributes[:'mfa'] + end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -685,7 +693,8 @@ def ==(o) company == o.company && employee_identifier == o.employee_identifier && job_title == o.job_title && - department == o.department + department == o.department && + mfa == o.mfa end # @see the `==` method @@ -697,7 +706,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, password_expired, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, associated_tag_count, totp_enabled, password_expiration_date, attributes, created, samba_service_user, password_never_expires, _id, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, job_title, department].hash + [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, password_expired, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, associated_tag_count, totp_enabled, password_expiration_date, attributes, created, samba_service_user, password_never_expires, _id, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, job_title, department, mfa].hash end # Builds the object from hash diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput.rb b/jcapiv1/lib/jcapiv1/models/systemuserput.rb index ce89c44..fb6aa6f 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput.rb @@ -87,6 +87,8 @@ class Systemuserput # Must be unique per user. attr_accessor :employee_identifier + attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -125,7 +127,8 @@ def self.attribute_map :'cost_center' => :'costCenter', :'employee_type' => :'employeeType', :'company' => :'company', - :'employee_identifier' => :'employeeIdentifier' + :'employee_identifier' => :'employeeIdentifier', + :'mfa' => :'mfa' } end @@ -166,7 +169,8 @@ def self.swagger_types :'cost_center' => :'String', :'employee_type' => :'String', :'company' => :'String', - :'employee_identifier' => :'String' + :'employee_identifier' => :'String', + :'mfa' => :'Mfa' } end @@ -330,6 +334,10 @@ def initialize(attributes = {}) self.employee_identifier = attributes[:'employeeIdentifier'] end + if attributes.has_key?(:'mfa') + self.mfa = attributes[:'mfa'] + end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -656,7 +664,8 @@ def ==(o) cost_center == o.cost_center && employee_type == o.employee_type && company == o.company && - employee_identifier == o.employee_identifier + employee_identifier == o.employee_identifier && + mfa == o.mfa end # @see the `==` method @@ -668,7 +677,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, tags, account_locked, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, attributes, samba_service_user, addresses, job_title, department, phone_numbers, relationships, password, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier].hash + [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, tags, account_locked, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, attributes, samba_service_user, addresses, job_title, department, phone_numbers, relationships, password, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, mfa].hash end # Builds the object from hash diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb index 1a4bb17..9ab5ade 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb @@ -88,6 +88,8 @@ class Systemuserputpost # Must be unique per user. attr_accessor :employee_identifier + attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -127,7 +129,8 @@ def self.attribute_map :'cost_center' => :'costCenter', :'employee_type' => :'employeeType', :'company' => :'company', - :'employee_identifier' => :'employeeIdentifier' + :'employee_identifier' => :'employeeIdentifier', + :'mfa' => :'mfa' } end @@ -169,7 +172,8 @@ def self.swagger_types :'cost_center' => :'String', :'employee_type' => :'String', :'company' => :'String', - :'employee_identifier' => :'String' + :'employee_identifier' => :'String', + :'mfa' => :'Mfa' } end @@ -335,6 +339,10 @@ def initialize(attributes = {}) self.employee_identifier = attributes[:'employeeIdentifier'] end + if attributes.has_key?(:'mfa') + self.mfa = attributes[:'mfa'] + end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -483,7 +491,8 @@ def ==(o) cost_center == o.cost_center && employee_type == o.employee_type && company == o.company && - employee_identifier == o.employee_identifier + employee_identifier == o.employee_identifier && + mfa == o.mfa end # @see the `==` method @@ -495,7 +504,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, username, allow_public_key, public_key, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, attributes, samba_service_user, addresses, job_title, department, phone_numbers, relationships, password, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier].hash + [email, username, allow_public_key, public_key, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, attributes, samba_service_user, addresses, job_title, department, phone_numbers, relationships, password, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, mfa].hash end # Builds the object from hash diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb index 8af5dd7..76bf886 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb @@ -100,6 +100,8 @@ class Systemuserreturn # Must be unique per user. attr_accessor :employee_identifier + attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -145,7 +147,8 @@ def self.attribute_map :'cost_center' => :'costCenter', :'employee_type' => :'employeeType', :'company' => :'company', - :'employee_identifier' => :'employeeIdentifier' + :'employee_identifier' => :'employeeIdentifier', + :'mfa' => :'mfa' } end @@ -193,7 +196,8 @@ def self.swagger_types :'cost_center' => :'String', :'employee_type' => :'String', :'company' => :'String', - :'employee_identifier' => :'String' + :'employee_identifier' => :'String', + :'mfa' => :'Mfa' } end @@ -385,6 +389,10 @@ def initialize(attributes = {}) self.employee_identifier = attributes[:'employeeIdentifier'] end + if attributes.has_key?(:'mfa') + self.mfa = attributes[:'mfa'] + end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -718,7 +726,8 @@ def ==(o) cost_center == o.cost_center && employee_type == o.employee_type && company == o.company && - employee_identifier == o.employee_identifier + employee_identifier == o.employee_identifier && + mfa == o.mfa end # @see the `==` method @@ -730,7 +739,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, password_expired, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, totp_enabled, attributes, created, samba_service_user, _id, organization, addresses, job_title, department, phone_numbers, relationships, bad_login_attempts, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier].hash + [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, password_expired, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, totp_enabled, attributes, created, samba_service_user, _id, organization, addresses, job_title, department, phone_numbers, relationships, bad_login_attempts, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, mfa].hash end # Builds the object from hash diff --git a/jcapiv1/lib/jcapiv1/version.rb b/jcapiv1/lib/jcapiv1/version.rb index 5aa60d5..7987a08 100644 --- a/jcapiv1/lib/jcapiv1/version.rb +++ b/jcapiv1/lib/jcapiv1/version.rb @@ -11,5 +11,5 @@ =end module JCAPIv1 - VERSION = "1.3.0" + VERSION = "1.4.0" end diff --git a/jcapiv1/spec/api/applications_api_spec.rb b/jcapiv1/spec/api/applications_api_spec.rb index edd1308..740eeb4 100644 --- a/jcapiv1/spec/api/applications_api_spec.rb +++ b/jcapiv1/spec/api/applications_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for applications_list # Applications - # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -42,6 +42,7 @@ # @option opts [Integer] :limit The number of records to return at once. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Applicationslist] describe 'applications_list test' do diff --git a/jcapiv1/spec/api/command_results_api_spec.rb b/jcapiv1/spec/api/command_results_api_spec.rb index 2129997..ec2aeaf 100644 --- a/jcapiv1/spec/api/command_results_api_spec.rb +++ b/jcapiv1/spec/api/command_results_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for command_results_delete # Delete a Command result - # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` + # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id # @param content_type # @param accept @@ -49,12 +49,13 @@ # unit tests for command_results_get # List an individual Command result - # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Commandresult] describe 'command_results_get test' do @@ -73,6 +74,7 @@ # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Commandresultslist] describe 'command_results_list test' do diff --git a/jcapiv1/spec/api/commands_api_spec.rb b/jcapiv1/spec/api/commands_api_spec.rb index 9e6e549..62e012d 100644 --- a/jcapiv1/spec/api/commands_api_spec.rb +++ b/jcapiv1/spec/api/commands_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for command_file_get # Get a Command File - # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -67,12 +67,13 @@ # unit tests for commands_get # List an individual Command - # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Command] describe 'commands_get test' do @@ -91,6 +92,7 @@ # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Commandslist] describe 'commands_list test' do diff --git a/jcapiv1/spec/api/organizations_api_spec.rb b/jcapiv1/spec/api/organizations_api_spec.rb index 4f0be1b..445f6b9 100644 --- a/jcapiv1/spec/api/organizations_api_spec.rb +++ b/jcapiv1/spec/api/organizations_api_spec.rb @@ -34,15 +34,16 @@ # unit tests for organization_list # Get Organization Details - # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - # @option opts [String] :search + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @return [Organizationslist] describe 'organization_list test' do it "should work" do diff --git a/jcapiv1/spec/api/radius_servers_api_spec.rb b/jcapiv1/spec/api/radius_servers_api_spec.rb index 27092a8..5190fe5 100644 --- a/jcapiv1/spec/api/radius_servers_api_spec.rb +++ b/jcapiv1/spec/api/radius_servers_api_spec.rb @@ -39,6 +39,7 @@ # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. @@ -67,7 +68,7 @@ # unit tests for radius_servers_put # Update Radius Servers - # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` + # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/spec/api/search_api_spec.rb b/jcapiv1/spec/api/search_api_spec.rb index 3250e22..d60c962 100644 --- a/jcapiv1/spec/api/search_api_spec.rb +++ b/jcapiv1/spec/api/search_api_spec.rb @@ -34,12 +34,13 @@ # unit tests for search_organizations_post # Search Organizations - # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` + # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [Search] :body # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @return [Organizationslist] @@ -51,7 +52,7 @@ # unit tests for search_systems_post # Search Systems - # Return Systems in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : { \"or\" : [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` + # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -60,6 +61,7 @@ # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [String] :x_org_id # @option opts [Integer] :skip The offset into the records to return. + # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] describe 'search_systems_post test' do it "should work" do @@ -69,12 +71,13 @@ # unit tests for search_systemusers_post # Search System Users - # Return System Users in multi-record format allowing for the passing of the 'filter' parameter. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` parameter that can only be passed in the body of POST /api/search/* routes. The `filter` parameter must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"email\" : \"example@jumpcloud.com\"}], \"fields\" : \"email username sudo\" }' ``` + # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [Search] :body # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :x_org_id diff --git a/jcapiv1/spec/api/systems_api_spec.rb b/jcapiv1/spec/api/systems_api_spec.rb index 183be68..3dc1a99 100644 --- a/jcapiv1/spec/api/systems_api_spec.rb +++ b/jcapiv1/spec/api/systems_api_spec.rb @@ -51,12 +51,13 @@ # unit tests for systems_get # List an individual system - # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API # @option opts [String] :x_org_id @@ -69,15 +70,17 @@ # unit tests for systems_list # List All Systems - # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. + # @option opts [String] :x_org_id + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - # @option opts [String] :x_org_id + # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] describe 'systems_list test' do it "should work" do @@ -114,6 +117,7 @@ # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Systemuserbinding] describe 'systems_systemusers_binding_list test' do diff --git a/jcapiv1/spec/api/systemusers_api_spec.rb b/jcapiv1/spec/api/systemusers_api_spec.rb index e57e5ed..383955b 100644 --- a/jcapiv1/spec/api/systemusers_api_spec.rb +++ b/jcapiv1/spec/api/systemusers_api_spec.rb @@ -80,7 +80,7 @@ # unit tests for systemusers_delete # Delete a system user - # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -101,6 +101,7 @@ # @param accept # @param [Hash] opts the optional parameters # @option opts [String] :fields Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_get test' do @@ -111,7 +112,7 @@ # unit tests for systemusers_list # List all system users - # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -119,8 +120,9 @@ # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [String] :filter # @option opts [String] :x_org_id + # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. + # @option opts [String] :filter A filter to apply to the query. # @return [Systemuserslist] describe 'systemusers_list test' do it "should work" do @@ -161,7 +163,7 @@ # unit tests for systemusers_resetmfa # Reset a system user's MFA token - # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` + # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id # @param x_api_key # @param [Hash] opts the optional parameters @@ -176,7 +178,7 @@ # unit tests for systemusers_systems_binding_list # List system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -185,6 +187,7 @@ # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @option opts [String] :x_org_id # @return [Object] describe 'systemusers_systems_binding_list test' do @@ -195,7 +198,7 @@ # unit tests for systemusers_systems_binding_put # Update a system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -209,4 +212,17 @@ end end + # unit tests for systemusers_unlock + # Unlock a system user + # This endpoint allows you to unlock a user's account. + # @param id + # @param [Hash] opts the optional parameters + # @option opts [String] :x_org_id + # @return [nil] + describe 'systemusers_unlock test' do + it "should work" do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/jcapiv1/spec/api/tags_api_spec.rb b/jcapiv1/spec/api/tags_api_spec.rb index a42c4ff..4a4ac91 100644 --- a/jcapiv1/spec/api/tags_api_spec.rb +++ b/jcapiv1/spec/api/tags_api_spec.rb @@ -57,6 +57,7 @@ # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @return [Tag] describe 'tags_get test' do it "should work" do @@ -74,6 +75,7 @@ # @option opts [Integer] :limit The number of records to return at once. Limited to 100. # @option opts [Integer] :skip The offset into the records to return. # @option opts [String] :sort Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + # @option opts [String] :filter A filter to apply to the query. # @return [Tagslist] describe 'tags_list test' do it "should work" do diff --git a/jcapiv1/spec/models/mfa_spec.rb b/jcapiv1/spec/models/mfa_spec.rb new file mode 100644 index 0000000..1b00ab8 --- /dev/null +++ b/jcapiv1/spec/models/mfa_spec.rb @@ -0,0 +1,54 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V1 API. This set of endpoints allows JumpCloud customers to manage commands, systems, & system users. + +OpenAPI spec version: 1.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv1::Mfa +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Mfa' do + before do + # run before each test + @instance = JCAPIv1::Mfa.new + end + + after do + # run after each test + end + + describe 'test an instance of Mfa' do + it 'should create an instance of Mfa' do + expect(@instance).to be_instance_of(JCAPIv1::Mfa) + end + end + describe 'test attribute "exclusion"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "exclusion_until"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "configured"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv1/spec/models/systemuser_spec.rb b/jcapiv1/spec/models/systemuser_spec.rb index 34383fe..c945b3e 100644 --- a/jcapiv1/spec/models/systemuser_spec.rb +++ b/jcapiv1/spec/models/systemuser_spec.rb @@ -266,5 +266,11 @@ end end + describe 'test attribute "mfa"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/jcapiv1/spec/models/systemuserput_spec.rb b/jcapiv1/spec/models/systemuserput_spec.rb index d0ca389..8a697e4 100644 --- a/jcapiv1/spec/models/systemuserput_spec.rb +++ b/jcapiv1/spec/models/systemuserput_spec.rb @@ -242,5 +242,11 @@ end end + describe 'test attribute "mfa"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/jcapiv1/spec/models/systemuserputpost_spec.rb b/jcapiv1/spec/models/systemuserputpost_spec.rb index f49bb91..ddd57b8 100644 --- a/jcapiv1/spec/models/systemuserputpost_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_spec.rb @@ -248,5 +248,11 @@ end end + describe 'test attribute "mfa"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/jcapiv1/spec/models/systemuserreturn_spec.rb b/jcapiv1/spec/models/systemuserreturn_spec.rb index 2ca8128..0f9d4f7 100644 --- a/jcapiv1/spec/models/systemuserreturn_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_spec.rb @@ -284,5 +284,11 @@ end end + describe 'test attribute "mfa"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/jcapiv2/README.md b/jcapiv2/README.md index db136bf..9a3b1bc 100644 --- a/jcapiv2/README.md +++ b/jcapiv2/README.md @@ -7,7 +7,7 @@ JCAPIv2 - the Ruby gem for the JumpCloud APIs This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2.0 -- Package version: 1.3.0 +- Package version: 1.4.0 - Build package: io.swagger.codegen.languages.RubyClientCodegen ## Installation @@ -23,15 +23,15 @@ gem build jcapiv2.gemspec Then either install the gem locally: ```shell -gem install ./jcapiv2-1.3.0.gem +gem install ./jcapiv2-1.4.0.gem ``` -(for development, run `gem install --dev ./jcapiv2-1.3.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./jcapiv2-1.4.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'jcapiv2', '~> 1.3.0' + gem 'jcapiv2', '~> 1.4.0' ### Install from Git @@ -221,12 +221,13 @@ Class | Method | HTTP request | Description *JCAPIv2::PoliciesApi* | [**policyresults_get**](docs/PoliciesApi.md#policyresults_get) | **GET** /policyresults/{id} | Get a specific Policy Result. *JCAPIv2::PoliciesApi* | [**policyresults_list**](docs/PoliciesApi.md#policyresults_list) | **GET** /policies/{policy_id}/policyresults | Lists all the policy results of a policy. *JCAPIv2::PoliciesApi* | [**policyresults_list_0**](docs/PoliciesApi.md#policyresults_list_0) | **GET** /policyresults | Lists all the policy results for an organization. -*JCAPIv2::PoliciesApi* | [**policystatuses_list**](docs/PoliciesApi.md#policystatuses_list) | **GET** /policies/{policy_id}/policystatuses | Lists the latest policy results of a policy. -*JCAPIv2::PoliciesApi* | [**policystatuses_list_0**](docs/PoliciesApi.md#policystatuses_list_0) | **GET** /systems/{system_id}/policystatuses | List the policy statuses for a system +*JCAPIv2::PoliciesApi* | [**policystatuses_list**](docs/PoliciesApi.md#policystatuses_list) | **GET** /systems/{system_id}/policystatuses | List the policy statuses for a system +*JCAPIv2::PoliciesApi* | [**policystatuses_list_0**](docs/PoliciesApi.md#policystatuses_list_0) | **GET** /policies/{policy_id}/policystatuses | Lists the latest policy results of a policy. *JCAPIv2::PoliciesApi* | [**policytemplates_get**](docs/PoliciesApi.md#policytemplates_get) | **GET** /policytemplates/{id} | Get a specific Policy Template *JCAPIv2::PoliciesApi* | [**policytemplates_list**](docs/PoliciesApi.md#policytemplates_list) | **GET** /policytemplates | Lists all of the Policy Templates *JCAPIv2::PolicytemplatesApi* | [**policytemplates_get**](docs/PolicytemplatesApi.md#policytemplates_get) | **GET** /policytemplates/{id} | Get a specific Policy Template *JCAPIv2::PolicytemplatesApi* | [**policytemplates_list**](docs/PolicytemplatesApi.md#policytemplates_list) | **GET** /policytemplates | Lists all of the Policy Templates +*JCAPIv2::ProvidersApi* | [**providers_list_administrators**](docs/ProvidersApi.md#providers_list_administrators) | **GET** /providers/{provider_id}/administrators | providersadministrators *JCAPIv2::RADIUSServersApi* | [**graph_radius_server_associations_list**](docs/RADIUSServersApi.md#graph_radius_server_associations_list) | **GET** /radiusservers/{radiusserver_id}/associations | List the associations of a RADIUS Server *JCAPIv2::RADIUSServersApi* | [**graph_radius_server_associations_post**](docs/RADIUSServersApi.md#graph_radius_server_associations_post) | **POST** /radiusservers/{radiusserver_id}/associations | Manage the associations of a RADIUS Server *JCAPIv2::RADIUSServersApi* | [**graph_radius_server_traverse_user**](docs/RADIUSServersApi.md#graph_radius_server_traverse_user) | **GET** /radiusservers/{radiusserver_id}/users | List the Users bound to a RADIUS Server @@ -333,6 +334,7 @@ Class | Method | HTTP request | Description ## Documentation for Models - [JCAPIv2::ActiveDirectoryInput](docs/ActiveDirectoryInput.md) + - [JCAPIv2::Administrator](docs/Administrator.md) - [JCAPIv2::AuthInfo](docs/AuthInfo.md) - [JCAPIv2::AuthInput](docs/AuthInput.md) - [JCAPIv2::AuthInputObject](docs/AuthInputObject.md) @@ -354,10 +356,13 @@ Class | Method | HTTP request | Description - [JCAPIv2::GraphType](docs/GraphType.md) - [JCAPIv2::Group](docs/Group.md) - [JCAPIv2::GroupType](docs/GroupType.md) + - [JCAPIv2::InlineResponse200](docs/InlineResponse200.md) + - [JCAPIv2::InlineResponse401](docs/InlineResponse401.md) - [JCAPIv2::JobDetails](docs/JobDetails.md) - [JCAPIv2::JobId](docs/JobId.md) - [JCAPIv2::JobWorkresult](docs/JobWorkresult.md) - [JCAPIv2::LdapServerInput](docs/LdapServerInput.md) + - [JCAPIv2::Mfa](docs/Mfa.md) - [JCAPIv2::OauthCodeInput](docs/OauthCodeInput.md) - [JCAPIv2::Office365BuiltinTranslation](docs/Office365BuiltinTranslation.md) - [JCAPIv2::Office365TranslationRule](docs/Office365TranslationRule.md) @@ -373,6 +378,8 @@ Class | Method | HTTP request | Description - [JCAPIv2::PolicyTemplateWithDetails](docs/PolicyTemplateWithDetails.md) - [JCAPIv2::PolicyValue](docs/PolicyValue.md) - [JCAPIv2::PolicyWithDetails](docs/PolicyWithDetails.md) + - [JCAPIv2::Provider](docs/Provider.md) + - [JCAPIv2::ProviderContact](docs/ProviderContact.md) - [JCAPIv2::SambaDomainInput](docs/SambaDomainInput.md) - [JCAPIv2::Sshkeylist](docs/Sshkeylist.md) - [JCAPIv2::SystemGraphManagementReq](docs/SystemGraphManagementReq.md) diff --git a/jcapiv2/docs/Administrator.md b/jcapiv2/docs/Administrator.md new file mode 100644 index 0000000..14cf663 --- /dev/null +++ b/jcapiv2/docs/Administrator.md @@ -0,0 +1,13 @@ +# JCAPIv2::Administrator + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**email** | **String** | | [optional] +**firstname** | **String** | | [optional] +**lastname** | **String** | | [optional] +**enable_multi_factor** | **BOOLEAN** | | [optional] +**registered** | **BOOLEAN** | | [optional] + + diff --git a/jcapiv2/docs/InlineResponse200.md b/jcapiv2/docs/InlineResponse200.md new file mode 100644 index 0000000..a9d5242 --- /dev/null +++ b/jcapiv2/docs/InlineResponse200.md @@ -0,0 +1,9 @@ +# JCAPIv2::InlineResponse200 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_count** | **Integer** | | [optional] +**results** | [**Array<Administrator>**](Administrator.md) | | [optional] + + diff --git a/jcapiv2/docs/InlineResponse401.md b/jcapiv2/docs/InlineResponse401.md new file mode 100644 index 0000000..30a8ef5 --- /dev/null +++ b/jcapiv2/docs/InlineResponse401.md @@ -0,0 +1,8 @@ +# JCAPIv2::InlineResponse401 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] + + diff --git a/jcapiv2/docs/Mfa.md b/jcapiv2/docs/Mfa.md new file mode 100644 index 0000000..d3caeb0 --- /dev/null +++ b/jcapiv2/docs/Mfa.md @@ -0,0 +1,10 @@ +# JCAPIv2::Mfa + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**exclusion** | **BOOLEAN** | | [optional] +**exclusion_until** | **DateTime** | | [optional] +**configured** | **BOOLEAN** | | [optional] + + diff --git a/jcapiv2/docs/PoliciesApi.md b/jcapiv2/docs/PoliciesApi.md index 7252a56..3ae453a 100644 --- a/jcapiv2/docs/PoliciesApi.md +++ b/jcapiv2/docs/PoliciesApi.md @@ -16,8 +16,8 @@ Method | HTTP request | Description [**policyresults_get**](PoliciesApi.md#policyresults_get) | **GET** /policyresults/{id} | Get a specific Policy Result. [**policyresults_list**](PoliciesApi.md#policyresults_list) | **GET** /policies/{policy_id}/policyresults | Lists all the policy results of a policy. [**policyresults_list_0**](PoliciesApi.md#policyresults_list_0) | **GET** /policyresults | Lists all the policy results for an organization. -[**policystatuses_list**](PoliciesApi.md#policystatuses_list) | **GET** /policies/{policy_id}/policystatuses | Lists the latest policy results of a policy. -[**policystatuses_list_0**](PoliciesApi.md#policystatuses_list_0) | **GET** /systems/{system_id}/policystatuses | List the policy statuses for a system +[**policystatuses_list**](PoliciesApi.md#policystatuses_list) | **GET** /systems/{system_id}/policystatuses | List the policy statuses for a system +[**policystatuses_list_0**](PoliciesApi.md#policystatuses_list_0) | **GET** /policies/{policy_id}/policystatuses | Lists the latest policy results of a policy. [**policytemplates_get**](PoliciesApi.md#policytemplates_get) | **GET** /policytemplates/{id} | Get a specific Policy Template [**policytemplates_list**](PoliciesApi.md#policytemplates_list) | **GET** /policytemplates | Lists all of the Policy Templates @@ -829,11 +829,11 @@ Name | Type | Description | Notes # **policystatuses_list** -> Array<PolicyResult> policystatuses_list(policy_id, content_type, accept, opts) +> Array<PolicyResult> policystatuses_list(system_id, content_type, accept, opts) -Lists the latest policy results of a policy. +List the policy statuses for a system -This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -849,7 +849,7 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | +system_id = "system_id_example" # String | ObjectID of the System. content_type = "application/json" # String | @@ -865,8 +865,8 @@ opts = { } begin - #Lists the latest policy results of a policy. - result = api_instance.policystatuses_list(policy_id, content_type, accept, opts) + #List the policy statuses for a system + result = api_instance.policystatuses_list(system_id, content_type, accept, opts) p result rescue JCAPIv2::ApiError => e puts "Exception when calling PoliciesApi->policystatuses_list: #{e}" @@ -877,7 +877,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **policy_id** | **String**| | + **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] @@ -903,11 +903,11 @@ Name | Type | Description | Notes # **policystatuses_list_0** -> Array<PolicyResult> policystatuses_list_0(system_id, content_type, accept, opts) +> Array<PolicyResult> policystatuses_list_0(policy_id, content_type, accept, opts) -List the policy statuses for a system +Lists the latest policy results of a policy. -This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -923,7 +923,7 @@ end api_instance = JCAPIv2::PoliciesApi.new -system_id = "system_id_example" # String | ObjectID of the System. +policy_id = "policy_id_example" # String | content_type = "application/json" # String | @@ -939,8 +939,8 @@ opts = { } begin - #List the policy statuses for a system - result = api_instance.policystatuses_list_0(system_id, content_type, accept, opts) + #Lists the latest policy results of a policy. + result = api_instance.policystatuses_list_0(policy_id, content_type, accept, opts) p result rescue JCAPIv2::ApiError => e puts "Exception when calling PoliciesApi->policystatuses_list_0: #{e}" @@ -951,7 +951,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **system_id** | **String**| ObjectID of the System. | + **policy_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] diff --git a/jcapiv2/docs/Provider.md b/jcapiv2/docs/Provider.md new file mode 100644 index 0000000..b7e3ca5 --- /dev/null +++ b/jcapiv2/docs/Provider.md @@ -0,0 +1,9 @@ +# JCAPIv2::Provider + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**contact** | [**ProviderContact**](ProviderContact.md) | | [optional] + + diff --git a/jcapiv2/docs/ProviderContact.md b/jcapiv2/docs/ProviderContact.md new file mode 100644 index 0000000..0089985 --- /dev/null +++ b/jcapiv2/docs/ProviderContact.md @@ -0,0 +1,9 @@ +# JCAPIv2::ProviderContact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] +**email** | **String** | | [optional] + + diff --git a/jcapiv2/docs/ProvidersApi.md b/jcapiv2/docs/ProvidersApi.md new file mode 100644 index 0000000..3d71c03 --- /dev/null +++ b/jcapiv2/docs/ProvidersApi.md @@ -0,0 +1,79 @@ +# JCAPIv2::ProvidersApi + +All URIs are relative to *https://console.jumpcloud.com/api/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**providers_list_administrators**](ProvidersApi.md#providers_list_administrators) | **GET** /providers/{provider_id}/administrators | providersadministrators + + +# **providers_list_administrators** +> InlineResponse200 providers_list_administrators(provider_id, content_type, accept, opts) + +providersadministrators + +### Example +```ruby +# load the gem +require 'jcapiv2' +# setup authorization +JCAPIv2.configure do |config| + # Configure API key authorization: x-api-key + config.api_key['x-api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['x-api-key'] = 'Bearer' +end + +api_instance = JCAPIv2::ProvidersApi.new + +provider_id = "provider_id_example" # String | + +content_type = "application/json" # String | + +accept = "application/json" # String | + +opts = { + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + limit: 10, # Integer | The number of records to return at once. Limited to 100. + skip: 0, # Integer | The offset into the records to return. + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. +} + +begin + #providersadministrators + result = api_instance.providers_list_administrators(provider_id, content_type, accept, opts) + p result +rescue JCAPIv2::ApiError => e + puts "Exception when calling ProvidersApi->providers_list_administrators: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider_id** | **String**| | + **content_type** | **String**| | [default to application/json] + **accept** | **String**| | [default to application/json] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] + **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[x-api-key](../README.md#x-api-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + diff --git a/jcapiv2/docs/Systemuser.md b/jcapiv2/docs/Systemuser.md index 81420cd..11b7908 100644 --- a/jcapiv2/docs/Systemuser.md +++ b/jcapiv2/docs/Systemuser.md @@ -42,5 +42,6 @@ Name | Type | Description | Notes **employee_identifier** | **String** | Must be unique per user. | [optional] **job_title** | **String** | | [optional] **department** | **String** | | [optional] +**mfa** | [**Mfa**](Mfa.md) | | [optional] diff --git a/jcapiv2/docs/Systemuserputpost.md b/jcapiv2/docs/Systemuserputpost.md index ca2716a..103a291 100644 --- a/jcapiv2/docs/Systemuserputpost.md +++ b/jcapiv2/docs/Systemuserputpost.md @@ -39,5 +39,6 @@ Name | Type | Description | Notes **employee_type** | **String** | | [optional] **company** | **String** | | [optional] **employee_identifier** | **String** | Must be unique per user. | [optional] +**mfa** | [**Mfa**](Mfa.md) | | [optional] diff --git a/jcapiv2/lib/jcapiv2.rb b/jcapiv2/lib/jcapiv2.rb index 4840a86..ad52280 100644 --- a/jcapiv2/lib/jcapiv2.rb +++ b/jcapiv2/lib/jcapiv2.rb @@ -18,6 +18,7 @@ # Models require 'jcapiv2/models/active_directory_input' +require 'jcapiv2/models/administrator' require 'jcapiv2/models/auth_info' require 'jcapiv2/models/auth_input' require 'jcapiv2/models/auth_input_object' @@ -39,10 +40,13 @@ require 'jcapiv2/models/graph_type' require 'jcapiv2/models/group' require 'jcapiv2/models/group_type' +require 'jcapiv2/models/inline_response_200' +require 'jcapiv2/models/inline_response_401' require 'jcapiv2/models/job_details' require 'jcapiv2/models/job_id' require 'jcapiv2/models/job_workresult' require 'jcapiv2/models/ldap_server_input' +require 'jcapiv2/models/mfa' require 'jcapiv2/models/oauth_code_input' require 'jcapiv2/models/office365_builtin_translation' require 'jcapiv2/models/office365_translation_rule' @@ -58,6 +62,8 @@ require 'jcapiv2/models/policy_template_with_details' require 'jcapiv2/models/policy_value' require 'jcapiv2/models/policy_with_details' +require 'jcapiv2/models/provider' +require 'jcapiv2/models/provider_contact' require 'jcapiv2/models/samba_domain_input' require 'jcapiv2/models/sshkeylist' require 'jcapiv2/models/system_graph_management_req' @@ -105,6 +111,7 @@ require 'jcapiv2/api/office365_api' require 'jcapiv2/api/policies_api' require 'jcapiv2/api/policytemplates_api' +require 'jcapiv2/api/providers_api' require 'jcapiv2/api/radius_servers_api' require 'jcapiv2/api/samba_domains_api' require 'jcapiv2/api/system_group_associations_api' diff --git a/jcapiv2/lib/jcapiv2/api/policies_api.rb b/jcapiv2/lib/jcapiv2/api/policies_api.rb index be775a7..fa2c429 100644 --- a/jcapiv2/lib/jcapiv2/api/policies_api.rb +++ b/jcapiv2/lib/jcapiv2/api/policies_api.rb @@ -932,9 +932,9 @@ def policyresults_list_0_with_http_info(content_type, accept, opts = {}) return data, status_code, headers end - # Lists the latest policy results of a policy. - # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` - # @param policy_id + # List the policy statuses for a system + # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -945,14 +945,14 @@ def policyresults_list_0_with_http_info(content_type, accept, opts = {}) # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] - def policystatuses_list(policy_id, content_type, accept, opts = {}) - data, _status_code, _headers = policystatuses_list_with_http_info(policy_id, content_type, accept, opts) + def policystatuses_list(system_id, content_type, accept, opts = {}) + data, _status_code, _headers = policystatuses_list_with_http_info(system_id, content_type, accept, opts) return data end - # Lists the latest policy results of a policy. - # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` - # @param policy_id + # List the policy statuses for a system + # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -963,13 +963,13 @@ def policystatuses_list(policy_id, content_type, accept, opts = {}) # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def policystatuses_list_with_http_info(policy_id, content_type, accept, opts = {}) + def policystatuses_list_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PoliciesApi.policystatuses_list ..." end - # verify the required parameter 'policy_id' is set - if @api_client.config.client_side_validation && policy_id.nil? - fail ArgumentError, "Missing the required parameter 'policy_id' when calling PoliciesApi.policystatuses_list" + # verify the required parameter 'system_id' is set + if @api_client.config.client_side_validation && system_id.nil? + fail ArgumentError, "Missing the required parameter 'system_id' when calling PoliciesApi.policystatuses_list" end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -980,7 +980,7 @@ def policystatuses_list_with_http_info(policy_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policystatuses_list" end # resource path - local_var_path = "/policies/{policy_id}/policystatuses".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/systems/{system_id}/policystatuses".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -1019,9 +1019,9 @@ def policystatuses_list_with_http_info(policy_id, content_type, accept, opts = { return data, status_code, headers end - # List the policy statuses for a system - # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` - # @param system_id ObjectID of the System. + # Lists the latest policy results of a policy. + # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -1032,14 +1032,14 @@ def policystatuses_list_with_http_info(policy_id, content_type, accept, opts = { # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] - def policystatuses_list_0(system_id, content_type, accept, opts = {}) - data, _status_code, _headers = policystatuses_list_0_with_http_info(system_id, content_type, accept, opts) + def policystatuses_list_0(policy_id, content_type, accept, opts = {}) + data, _status_code, _headers = policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts) return data end - # List the policy statuses for a system - # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` - # @param system_id ObjectID of the System. + # Lists the latest policy results of a policy. + # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -1050,13 +1050,13 @@ def policystatuses_list_0(system_id, content_type, accept, opts = {}) # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def policystatuses_list_0_with_http_info(system_id, content_type, accept, opts = {}) + def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: PoliciesApi.policystatuses_list_0 ..." end - # verify the required parameter 'system_id' is set - if @api_client.config.client_side_validation && system_id.nil? - fail ArgumentError, "Missing the required parameter 'system_id' when calling PoliciesApi.policystatuses_list_0" + # verify the required parameter 'policy_id' is set + if @api_client.config.client_side_validation && policy_id.nil? + fail ArgumentError, "Missing the required parameter 'policy_id' when calling PoliciesApi.policystatuses_list_0" end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1067,7 +1067,7 @@ def policystatuses_list_0_with_http_info(system_id, content_type, accept, opts = fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policystatuses_list_0" end # resource path - local_var_path = "/systems/{system_id}/policystatuses".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/policies/{policy_id}/policystatuses".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/providers_api.rb b/jcapiv2/lib/jcapiv2/api/providers_api.rb new file mode 100644 index 0000000..b650a1d --- /dev/null +++ b/jcapiv2/lib/jcapiv2/api/providers_api.rb @@ -0,0 +1,107 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require "uri" + +module JCAPIv2 + class ProvidersApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default) + @api_client = api_client + end + + # providersadministrators + # + # @param provider_id + # @param content_type + # @param accept + # @param [Hash] opts the optional parameters + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) + # @option opts [Integer] :skip The offset into the records to return. (default to 0) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @return [InlineResponse200] + def providers_list_administrators(provider_id, content_type, accept, opts = {}) + data, _status_code, _headers = providers_list_administrators_with_http_info(provider_id, content_type, accept, opts) + return data + end + + # providersadministrators + # + # @param provider_id + # @param content_type + # @param accept + # @param [Hash] opts the optional parameters + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Integer] :limit The number of records to return at once. Limited to 100. + # @option opts [Integer] :skip The offset into the records to return. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers + def providers_list_administrators_with_http_info(provider_id, content_type, accept, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug "Calling API: ProvidersApi.providers_list_administrators ..." + end + # verify the required parameter 'provider_id' is set + if @api_client.config.client_side_validation && provider_id.nil? + fail ArgumentError, "Missing the required parameter 'provider_id' when calling ProvidersApi.providers_list_administrators" + end + # verify the required parameter 'content_type' is set + if @api_client.config.client_side_validation && content_type.nil? + fail ArgumentError, "Missing the required parameter 'content_type' when calling ProvidersApi.providers_list_administrators" + end + # verify the required parameter 'accept' is set + if @api_client.config.client_side_validation && accept.nil? + fail ArgumentError, "Missing the required parameter 'accept' when calling ProvidersApi.providers_list_administrators" + end + # resource path + local_var_path = "/providers/{provider_id}/administrators".sub('{' + 'provider_id' + '}', provider_id.to_s) + + # query parameters + query_params = {} + query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil? + query_params[:'filter'] = @api_client.build_collection_param(opts[:'filter'], :csv) if !opts[:'filter'].nil? + query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? + query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? + query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :csv) if !opts[:'sort'].nil? + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + header_params[:'Content-Type'] = content_type + header_params[:'Accept'] = accept + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['x-api-key'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'InlineResponse200') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: ProvidersApi#providers_list_administrators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + end +end diff --git a/jcapiv2/lib/jcapiv2/models/administrator.rb b/jcapiv2/lib/jcapiv2/models/administrator.rb new file mode 100644 index 0000000..0cf9ad1 --- /dev/null +++ b/jcapiv2/lib/jcapiv2/models/administrator.rb @@ -0,0 +1,233 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv2 + + class Administrator + attr_accessor :id + + attr_accessor :email + + attr_accessor :firstname + + attr_accessor :lastname + + attr_accessor :enable_multi_factor + + attr_accessor :registered + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'email' => :'email', + :'firstname' => :'firstname', + :'lastname' => :'lastname', + :'enable_multi_factor' => :'enableMultiFactor', + :'registered' => :'registered' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'id' => :'String', + :'email' => :'String', + :'firstname' => :'String', + :'lastname' => :'String', + :'enable_multi_factor' => :'BOOLEAN', + :'registered' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.has_key?(:'email') + self.email = attributes[:'email'] + end + + if attributes.has_key?(:'firstname') + self.firstname = attributes[:'firstname'] + end + + if attributes.has_key?(:'lastname') + self.lastname = attributes[:'lastname'] + end + + if attributes.has_key?(:'enableMultiFactor') + self.enable_multi_factor = attributes[:'enableMultiFactor'] + end + + if attributes.has_key?(:'registered') + self.registered = attributes[:'registered'] + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + id == o.id && + email == o.email && + firstname == o.firstname && + lastname == o.lastname && + enable_multi_factor == o.enable_multi_factor && + registered == o.registered + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [id, email, firstname, lastname, enable_multi_factor, registered].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv2.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv2/lib/jcapiv2/models/inline_response_200.rb b/jcapiv2/lib/jcapiv2/models/inline_response_200.rb new file mode 100644 index 0000000..5086943 --- /dev/null +++ b/jcapiv2/lib/jcapiv2/models/inline_response_200.rb @@ -0,0 +1,199 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv2 + + class InlineResponse200 + attr_accessor :total_count + + attr_accessor :results + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'total_count' => :'totalCount', + :'results' => :'results' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'total_count' => :'Integer', + :'results' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'totalCount') + self.total_count = attributes[:'totalCount'] + end + + if attributes.has_key?(:'results') + if (value = attributes[:'results']).is_a?(Array) + self.results = value + end + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + total_count == o.total_count && + results == o.results + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [total_count, results].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv2.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv2/lib/jcapiv2/models/inline_response_401.rb b/jcapiv2/lib/jcapiv2/models/inline_response_401.rb new file mode 100644 index 0000000..0838eb9 --- /dev/null +++ b/jcapiv2/lib/jcapiv2/models/inline_response_401.rb @@ -0,0 +1,188 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv2 + + class InlineResponse401 + attr_accessor :message + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'message' => :'message' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'message' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'message') + self.message = attributes[:'message'] + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + message == o.message + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [message].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv2.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv2/lib/jcapiv2/models/mfa.rb b/jcapiv2/lib/jcapiv2/models/mfa.rb new file mode 100644 index 0000000..2e74ca5 --- /dev/null +++ b/jcapiv2/lib/jcapiv2/models/mfa.rb @@ -0,0 +1,206 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv2 + + class Mfa + attr_accessor :exclusion + + attr_accessor :exclusion_until + + attr_accessor :configured + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'exclusion' => :'exclusion', + :'exclusion_until' => :'exclusionUntil', + :'configured' => :'configured' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'exclusion' => :'BOOLEAN', + :'exclusion_until' => :'DateTime', + :'configured' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'exclusion') + self.exclusion = attributes[:'exclusion'] + end + + if attributes.has_key?(:'exclusionUntil') + self.exclusion_until = attributes[:'exclusionUntil'] + end + + if attributes.has_key?(:'configured') + self.configured = attributes[:'configured'] + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + exclusion == o.exclusion && + exclusion_until == o.exclusion_until && + configured == o.configured + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [exclusion, exclusion_until, configured].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv2.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv2/lib/jcapiv2/models/provider.rb b/jcapiv2/lib/jcapiv2/models/provider.rb new file mode 100644 index 0000000..b32e88b --- /dev/null +++ b/jcapiv2/lib/jcapiv2/models/provider.rb @@ -0,0 +1,197 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv2 + + class Provider + attr_accessor :name + + attr_accessor :contact + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'contact' => :'contact' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'name' => :'String', + :'contact' => :'ProviderContact' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'contact') + self.contact = attributes[:'contact'] + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + name == o.name && + contact == o.contact + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [name, contact].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv2.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv2/lib/jcapiv2/models/provider_contact.rb b/jcapiv2/lib/jcapiv2/models/provider_contact.rb new file mode 100644 index 0000000..5b086d2 --- /dev/null +++ b/jcapiv2/lib/jcapiv2/models/provider_contact.rb @@ -0,0 +1,197 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'date' + +module JCAPIv2 + + class ProviderContact + attr_accessor :name + + attr_accessor :email + + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name', + :'email' => :'email' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'name' => :'String', + :'email' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + + if attributes.has_key?(:'name') + self.name = attributes[:'name'] + end + + if attributes.has_key?(:'email') + self.email = attributes[:'email'] + end + + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + return invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + return true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + name == o.name && + email == o.email + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [name, email].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = JCAPIv2.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map{ |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/jcapiv2/lib/jcapiv2/models/systemuser.rb b/jcapiv2/lib/jcapiv2/models/systemuser.rb index 42af4a0..ed3b07c 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuser.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuser.rb @@ -94,6 +94,8 @@ class Systemuser attr_accessor :department + attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -136,7 +138,8 @@ def self.attribute_map :'company' => :'company', :'employee_identifier' => :'employeeIdentifier', :'job_title' => :'jobTitle', - :'department' => :'department' + :'department' => :'department', + :'mfa' => :'mfa' } end @@ -181,7 +184,8 @@ def self.swagger_types :'company' => :'String', :'employee_identifier' => :'String', :'job_title' => :'String', - :'department' => :'String' + :'department' => :'String', + :'mfa' => :'Mfa' } end @@ -355,6 +359,10 @@ def initialize(attributes = {}) self.department = attributes[:'department'] end + if attributes.has_key?(:'mfa') + self.mfa = attributes[:'mfa'] + end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -685,7 +693,8 @@ def ==(o) company == o.company && employee_identifier == o.employee_identifier && job_title == o.job_title && - department == o.department + department == o.department && + mfa == o.mfa end # @see the `==` method @@ -697,7 +706,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, password_expired, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, associated_tag_count, totp_enabled, password_expiration_date, attributes, created, samba_service_user, password_never_expires, _id, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, job_title, department].hash + [email, username, allow_public_key, public_key, ssh_keys, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, password_expired, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, associated_tag_count, totp_enabled, password_expiration_date, attributes, created, samba_service_user, password_never_expires, _id, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, job_title, department, mfa].hash end # Builds the object from hash diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb index 060b45f..5d8a0cd 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb @@ -88,6 +88,8 @@ class Systemuserputpost # Must be unique per user. attr_accessor :employee_identifier + attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -127,7 +129,8 @@ def self.attribute_map :'cost_center' => :'costCenter', :'employee_type' => :'employeeType', :'company' => :'company', - :'employee_identifier' => :'employeeIdentifier' + :'employee_identifier' => :'employeeIdentifier', + :'mfa' => :'mfa' } end @@ -169,7 +172,8 @@ def self.swagger_types :'cost_center' => :'String', :'employee_type' => :'String', :'company' => :'String', - :'employee_identifier' => :'String' + :'employee_identifier' => :'String', + :'mfa' => :'Mfa' } end @@ -335,6 +339,10 @@ def initialize(attributes = {}) self.employee_identifier = attributes[:'employeeIdentifier'] end + if attributes.has_key?(:'mfa') + self.mfa = attributes[:'mfa'] + end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -483,7 +491,8 @@ def ==(o) cost_center == o.cost_center && employee_type == o.employee_type && company == o.company && - employee_identifier == o.employee_identifier + employee_identifier == o.employee_identifier && + mfa == o.mfa end # @see the `==` method @@ -495,7 +504,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, username, allow_public_key, public_key, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, attributes, samba_service_user, addresses, job_title, department, phone_numbers, relationships, password, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier].hash + [email, username, allow_public_key, public_key, sudo, enable_managed_uid, unix_uid, unix_guid, activated, tags, account_locked, passwordless_sudo, externally_managed, external_dn, external_source_type, firstname, lastname, ldap_binding_user, enable_user_portal_multifactor, attributes, samba_service_user, addresses, job_title, department, phone_numbers, relationships, password, password_never_expires, middlename, displayname, description, location, cost_center, employee_type, company, employee_identifier, mfa].hash end # Builds the object from hash diff --git a/jcapiv2/lib/jcapiv2/version.rb b/jcapiv2/lib/jcapiv2/version.rb index f9a141f..5dcafff 100644 --- a/jcapiv2/lib/jcapiv2/version.rb +++ b/jcapiv2/lib/jcapiv2/version.rb @@ -11,5 +11,5 @@ =end module JCAPIv2 - VERSION = "1.3.0" + VERSION = "1.4.0" end diff --git a/jcapiv2/spec/api/policies_api_spec.rb b/jcapiv2/spec/api/policies_api_spec.rb index 7ab40ef..a2d71bc 100644 --- a/jcapiv2/spec/api/policies_api_spec.rb +++ b/jcapiv2/spec/api/policies_api_spec.rb @@ -235,9 +235,9 @@ end # unit tests for policystatuses_list - # Lists the latest policy results of a policy. - # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` - # @param policy_id + # List the policy statuses for a system + # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -255,9 +255,9 @@ end # unit tests for policystatuses_list_0 - # List the policy statuses for a system - # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` - # @param system_id ObjectID of the System. + # Lists the latest policy results of a policy. + # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv2/spec/api/providers_api_spec.rb b/jcapiv2/spec/api/providers_api_spec.rb new file mode 100644 index 0000000..3e47e69 --- /dev/null +++ b/jcapiv2/spec/api/providers_api_spec.rb @@ -0,0 +1,54 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' + +# Unit tests for JCAPIv2::ProvidersApi +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ProvidersApi' do + before do + # run before each test + @instance = JCAPIv2::ProvidersApi.new + end + + after do + # run after each test + end + + describe 'test an instance of ProvidersApi' do + it 'should create an instance of ProvidersApi' do + expect(@instance).to be_instance_of(JCAPIv2::ProvidersApi) + end + end + + # unit tests for providers_list_administrators + # providersadministrators + # + # @param provider_id + # @param content_type + # @param accept + # @param [Hash] opts the optional parameters + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Integer] :limit The number of records to return at once. Limited to 100. + # @option opts [Integer] :skip The offset into the records to return. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @return [InlineResponse200] + describe 'providers_list_administrators test' do + it "should work" do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/jcapiv2/spec/models/administrator_spec.rb b/jcapiv2/spec/models/administrator_spec.rb new file mode 100644 index 0000000..67b47dc --- /dev/null +++ b/jcapiv2/spec/models/administrator_spec.rb @@ -0,0 +1,72 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv2::Administrator +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Administrator' do + before do + # run before each test + @instance = JCAPIv2::Administrator.new + end + + after do + # run after each test + end + + describe 'test an instance of Administrator' do + it 'should create an instance of Administrator' do + expect(@instance).to be_instance_of(JCAPIv2::Administrator) + end + end + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "firstname"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "lastname"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "enable_multi_factor"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "registered"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv2/spec/models/inline_response_200_spec.rb b/jcapiv2/spec/models/inline_response_200_spec.rb new file mode 100644 index 0000000..941fd11 --- /dev/null +++ b/jcapiv2/spec/models/inline_response_200_spec.rb @@ -0,0 +1,48 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv2::InlineResponse200 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse200' do + before do + # run before each test + @instance = JCAPIv2::InlineResponse200.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse200' do + it 'should create an instance of InlineResponse200' do + expect(@instance).to be_instance_of(JCAPIv2::InlineResponse200) + end + end + describe 'test attribute "total_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "results"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv2/spec/models/inline_response_401_spec.rb b/jcapiv2/spec/models/inline_response_401_spec.rb new file mode 100644 index 0000000..f1b2445 --- /dev/null +++ b/jcapiv2/spec/models/inline_response_401_spec.rb @@ -0,0 +1,42 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv2::InlineResponse401 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse401' do + before do + # run before each test + @instance = JCAPIv2::InlineResponse401.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse401' do + it 'should create an instance of InlineResponse401' do + expect(@instance).to be_instance_of(JCAPIv2::InlineResponse401) + end + end + describe 'test attribute "message"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv2/spec/models/mfa_spec.rb b/jcapiv2/spec/models/mfa_spec.rb new file mode 100644 index 0000000..059c72b --- /dev/null +++ b/jcapiv2/spec/models/mfa_spec.rb @@ -0,0 +1,54 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv2::Mfa +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Mfa' do + before do + # run before each test + @instance = JCAPIv2::Mfa.new + end + + after do + # run after each test + end + + describe 'test an instance of Mfa' do + it 'should create an instance of Mfa' do + expect(@instance).to be_instance_of(JCAPIv2::Mfa) + end + end + describe 'test attribute "exclusion"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "exclusion_until"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "configured"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv2/spec/models/provider_contact_spec.rb b/jcapiv2/spec/models/provider_contact_spec.rb new file mode 100644 index 0000000..627f601 --- /dev/null +++ b/jcapiv2/spec/models/provider_contact_spec.rb @@ -0,0 +1,48 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv2::ProviderContact +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'ProviderContact' do + before do + # run before each test + @instance = JCAPIv2::ProviderContact.new + end + + after do + # run after each test + end + + describe 'test an instance of ProviderContact' do + it 'should create an instance of ProviderContact' do + expect(@instance).to be_instance_of(JCAPIv2::ProviderContact) + end + end + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv2/spec/models/provider_spec.rb b/jcapiv2/spec/models/provider_spec.rb new file mode 100644 index 0000000..ad425b0 --- /dev/null +++ b/jcapiv2/spec/models/provider_spec.rb @@ -0,0 +1,48 @@ +=begin +#JumpCloud APIs + +# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. + +OpenAPI spec version: 2.0 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.3.1 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for JCAPIv2::Provider +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'Provider' do + before do + # run before each test + @instance = JCAPIv2::Provider.new + end + + after do + # run after each test + end + + describe 'test an instance of Provider' do + it 'should create an instance of Provider' do + expect(@instance).to be_instance_of(JCAPIv2::Provider) + end + end + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "contact"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end + diff --git a/jcapiv2/spec/models/systemuser_spec.rb b/jcapiv2/spec/models/systemuser_spec.rb index d088dc1..fd34a08 100644 --- a/jcapiv2/spec/models/systemuser_spec.rb +++ b/jcapiv2/spec/models/systemuser_spec.rb @@ -266,5 +266,11 @@ end end + describe 'test attribute "mfa"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/jcapiv2/spec/models/systemuserputpost_spec.rb b/jcapiv2/spec/models/systemuserputpost_spec.rb index a459f28..706cca3 100644 --- a/jcapiv2/spec/models/systemuserputpost_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_spec.rb @@ -248,5 +248,11 @@ end end + describe 'test attribute "mfa"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end From 00b923d2b5e58bd9872f954012be80290ab35f85 Mon Sep 17 00:00:00 2001 From: Jon Casey Date: Tue, 19 Feb 2019 11:16:09 -0700 Subject: [PATCH 2/6] update to swagger-codegen-cli:2.4.2 and regenerate v1 and v2 apis --- docker-compose.yml | 2 +- jcapiv1/.gitignore | 2 +- jcapiv1/.rubocop.yml | 154 ++++ jcapiv1/.swagger-codegen/VERSION | 2 +- jcapiv1/README.md | 12 +- jcapiv1/docs/ApplicationsApi.md | 12 +- jcapiv1/docs/CommandResultsApi.md | 32 +- jcapiv1/docs/CommandTriggersApi.md | 8 +- jcapiv1/docs/CommandsApi.md | 56 +- jcapiv1/docs/OrganizationsApi.md | 12 +- jcapiv1/docs/RadiusServersApi.md | 24 +- jcapiv1/docs/SearchApi.md | 28 +- jcapiv1/docs/SystemsApi.md | 76 +- jcapiv1/docs/SystemusersApi.md | 104 +-- jcapiv1/docs/TagsApi.md | 38 +- jcapiv1/jcapiv1.gemspec | 9 +- jcapiv1/lib/jcapiv1.rb | 2 +- jcapiv1/lib/jcapiv1/api/applications_api.rb | 11 +- .../lib/jcapiv1/api/command_results_api.rb | 25 +- .../lib/jcapiv1/api/command_triggers_api.rb | 11 +- jcapiv1/lib/jcapiv1/api/commands_api.rb | 46 +- jcapiv1/lib/jcapiv1/api/organizations_api.rb | 11 +- jcapiv1/lib/jcapiv1/api/radius_servers_api.rb | 25 +- jcapiv1/lib/jcapiv1/api/search_api.rb | 25 +- jcapiv1/lib/jcapiv1/api/systems_api.rb | 46 +- jcapiv1/lib/jcapiv1/api/systemusers_api.rb | 88 +-- jcapiv1/lib/jcapiv1/api/tags_api.rb | 39 +- jcapiv1/lib/jcapiv1/api_client.rb | 18 +- jcapiv1/lib/jcapiv1/api_error.rb | 2 +- jcapiv1/lib/jcapiv1/configuration.rb | 4 +- jcapiv1/lib/jcapiv1/models/application.rb | 17 +- .../lib/jcapiv1/models/application_config.rb | 17 +- .../application_config_constant_attributes.rb | 17 +- ...cation_config_constant_attributes_value.rb | 17 +- .../application_config_database_attributes.rb | 17 +- .../application_config_idp_entity_id.rb | 17 +- ...pplication_config_idp_entity_id_tooltip.rb | 17 +- ..._config_idp_entity_id_tooltip_variables.rb | 17 +- .../lib/jcapiv1/models/applicationslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/body.rb | 21 +- jcapiv1/lib/jcapiv1/models/body_1.rb | 17 +- jcapiv1/lib/jcapiv1/models/command.rb | 21 +- .../lib/jcapiv1/models/commandfilereturn.rb | 17 +- .../models/commandfilereturn_results.rb | 17 +- jcapiv1/lib/jcapiv1/models/commandresult.rb | 17 +- .../jcapiv1/models/commandresult_response.rb | 17 +- .../models/commandresult_response_data.rb | 17 +- .../lib/jcapiv1/models/commandresultslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/commandslist.rb | 17 +- .../jcapiv1/models/commandslist_results.rb | 17 +- jcapiv1/lib/jcapiv1/models/errorresponse.rb | 17 +- jcapiv1/lib/jcapiv1/models/fde.rb | 17 +- jcapiv1/lib/jcapiv1/models/mfa.rb | 17 +- .../lib/jcapiv1/models/organizationslist.rb | 17 +- .../models/organizationslist_results.rb | 17 +- jcapiv1/lib/jcapiv1/models/radiusserver.rb | 17 +- .../lib/jcapiv1/models/radiusserverpost.rb | 23 +- jcapiv1/lib/jcapiv1/models/radiusserverput.rb | 17 +- .../lib/jcapiv1/models/radiusserverslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/search.rb | 17 +- jcapiv1/lib/jcapiv1/models/sshkeylist.rb | 17 +- jcapiv1/lib/jcapiv1/models/sshkeypost.rb | 21 +- jcapiv1/lib/jcapiv1/models/system.rb | 17 +- .../models/system_network_interfaces.rb | 17 +- .../lib/jcapiv1/models/system_sshd_params.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemput.rb | 17 +- .../models/systemput_agent_bound_messages.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemuser.rb | 102 +-- .../lib/jcapiv1/models/systemuserbinding.rb | 17 +- .../jcapiv1/models/systemuserbindingsput.rb | 21 +- jcapiv1/lib/jcapiv1/models/systemuserput.rb | 103 ++- .../jcapiv1/models/systemuserput_addresses.rb | 57 +- .../models/systemuserput_phone_numbers.rb | 27 +- .../lib/jcapiv1/models/systemuserputpost.rb | 47 +- .../models/systemuserputpost_addresses.rb | 17 +- .../models/systemuserputpost_phone_numbers.rb | 17 +- .../lib/jcapiv1/models/systemuserreturn.rb | 102 +-- .../models/systemuserreturn_addresses.rb | 57 +- .../models/systemuserreturn_phone_numbers.rb | 27 +- jcapiv1/lib/jcapiv1/models/systemuserslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/tag.rb | 17 +- jcapiv1/lib/jcapiv1/models/tagpost.rb | 19 +- jcapiv1/lib/jcapiv1/models/tagput.rb | 17 +- jcapiv1/lib/jcapiv1/models/tagslist.rb | 17 +- .../lib/jcapiv1/models/usersystembinding.rb | 17 +- .../jcapiv1/models/usersystembindingsput.rb | 21 +- jcapiv1/lib/jcapiv1/version.rb | 4 +- jcapiv1/spec/api/applications_api_spec.rb | 4 +- jcapiv1/spec/api/command_results_api_spec.rb | 8 +- jcapiv1/spec/api/command_triggers_api_spec.rb | 4 +- jcapiv1/spec/api/commands_api_spec.rb | 14 +- jcapiv1/spec/api/organizations_api_spec.rb | 4 +- jcapiv1/spec/api/radius_servers_api_spec.rb | 8 +- jcapiv1/spec/api/search_api_spec.rb | 8 +- jcapiv1/spec/api/systems_api_spec.rb | 14 +- jcapiv1/spec/api/systemusers_api_spec.rb | 26 +- jcapiv1/spec/api/tags_api_spec.rb | 12 +- jcapiv1/spec/api_client_spec.rb | 70 +- jcapiv1/spec/configuration_spec.rb | 18 +- ...ication_config_constant_attributes_spec.rb | 21 +- ...n_config_constant_attributes_value_spec.rb | 13 +- ...ication_config_database_attributes_spec.rb | 5 +- .../application_config_idp_entity_id_spec.rb | 19 +- ...ation_config_idp_entity_id_tooltip_spec.rb | 7 +- ...ig_idp_entity_id_tooltip_variables_spec.rb | 7 +- .../spec/models/application_config_spec.rb | 15 +- jcapiv1/spec/models/application_spec.rb | 21 +- jcapiv1/spec/models/applicationslist_spec.rb | 7 +- jcapiv1/spec/models/body_1_spec.rb | 7 +- jcapiv1/spec/models/body_spec.rb | 9 +- jcapiv1/spec/models/command_spec.rb | 31 +- .../models/commandfilereturn_results_spec.rb | 9 +- jcapiv1/spec/models/commandfilereturn_spec.rb | 7 +- .../commandresult_response_data_spec.rb | 7 +- .../models/commandresult_response_spec.rb | 9 +- jcapiv1/spec/models/commandresult_spec.rb | 31 +- .../spec/models/commandresultslist_spec.rb | 7 +- .../spec/models/commandslist_results_spec.rb | 23 +- jcapiv1/spec/models/commandslist_spec.rb | 7 +- jcapiv1/spec/models/errorresponse_spec.rb | 5 +- jcapiv1/spec/models/fde_spec.rb | 7 +- jcapiv1/spec/models/mfa_spec.rb | 9 +- .../models/organizationslist_results_spec.rb | 9 +- jcapiv1/spec/models/organizationslist_spec.rb | 7 +- jcapiv1/spec/models/radiusserver_spec.rb | 17 +- jcapiv1/spec/models/radiusserverpost_spec.rb | 11 +- jcapiv1/spec/models/radiusserverput_spec.rb | 11 +- jcapiv1/spec/models/radiusserverslist_spec.rb | 7 +- jcapiv1/spec/models/search_spec.rb | 7 +- jcapiv1/spec/models/sshkeylist_spec.rb | 11 +- jcapiv1/spec/models/sshkeypost_spec.rb | 7 +- .../models/system_network_interfaces_spec.rb | 11 +- jcapiv1/spec/models/system_spec.rb | 55 +- .../spec/models/system_sshd_params_spec.rb | 7 +- .../systemput_agent_bound_messages_spec.rb | 5 +- jcapiv1/spec/models/systemput_spec.rb | 17 +- jcapiv1/spec/models/systemslist_spec.rb | 7 +- jcapiv1/spec/models/systemuser_spec.rb | 83 +- jcapiv1/spec/models/systemuserbinding_spec.rb | 3 +- .../spec/models/systemuserbindingsput_spec.rb | 7 +- .../models/systemuserput_addresses_spec.rb | 19 +- .../systemuserput_phone_numbers_spec.rb | 7 +- jcapiv1/spec/models/systemuserput_spec.rb | 75 +- .../systemuserputpost_addresses_spec.rb | 19 +- .../systemuserputpost_phone_numbers_spec.rb | 7 +- jcapiv1/spec/models/systemuserputpost_spec.rb | 77 +- .../models/systemuserreturn_addresses_spec.rb | 21 +- .../systemuserreturn_phone_numbers_spec.rb | 9 +- jcapiv1/spec/models/systemuserreturn_spec.rb | 89 ++- jcapiv1/spec/models/systemuserslist_spec.rb | 7 +- jcapiv1/spec/models/tag_spec.rb | 27 +- jcapiv1/spec/models/tagpost_spec.rb | 23 +- jcapiv1/spec/models/tagput_spec.rb | 23 +- jcapiv1/spec/models/tagslist_spec.rb | 7 +- jcapiv1/spec/models/usersystembinding_spec.rb | 3 +- .../spec/models/usersystembindingsput_spec.rb | 7 +- jcapiv1/spec/spec_helper.rb | 2 +- jcapiv2/.gitignore | 2 +- jcapiv2/.rubocop.yml | 154 ++++ jcapiv2/.swagger-codegen/VERSION | 2 +- jcapiv2/README.md | 8 +- jcapiv2/docs/ActiveDirectoryApi.md | 66 +- jcapiv2/docs/ApplicationsApi.md | 34 +- jcapiv2/docs/BulkJobRequestsApi.md | 36 +- jcapiv2/docs/CommandsApi.md | 34 +- jcapiv2/docs/DirectoriesApi.md | 14 +- jcapiv2/docs/FdeApi.md | 4 +- jcapiv2/docs/GSuiteApi.md | 70 +- jcapiv2/docs/GraphApi.md | 712 +++++++++--------- jcapiv2/docs/GroupsApi.md | 18 +- jcapiv2/docs/LDAPServersApi.md | 60 +- jcapiv2/docs/Office365Api.md | 74 +- jcapiv2/docs/PoliciesApi.md | 198 ++--- jcapiv2/docs/PolicyTemplate.md | 2 +- jcapiv2/docs/PolicytemplatesApi.md | 26 +- jcapiv2/docs/ProvidersApi.md | 18 +- jcapiv2/docs/RADIUSServersApi.md | 34 +- jcapiv2/docs/SambaDomainsApi.md | 58 +- jcapiv2/docs/SystemGroupAssociationsApi.md | 50 +- .../docs/SystemGroupMembersMembershipApi.md | 52 +- jcapiv2/docs/SystemGroupsApi.md | 150 ++-- jcapiv2/docs/SystemsApi.md | 94 +-- jcapiv2/docs/UserGroupAssociationsApi.md | 90 +-- jcapiv2/docs/UserGroupMembersMembershipApi.md | 48 +- jcapiv2/docs/UserGroupsApi.md | 194 ++--- jcapiv2/docs/UsersApi.md | 110 +-- jcapiv2/docs/WorkdayImportApi.md | 102 +-- jcapiv2/jcapiv2.gemspec | 9 +- jcapiv2/lib/jcapiv2.rb | 2 +- .../lib/jcapiv2/api/active_directory_api.rb | 59 +- jcapiv2/lib/jcapiv2/api/applications_api.rb | 32 +- .../lib/jcapiv2/api/bulk_job_requests_api.rb | 39 +- jcapiv2/lib/jcapiv2/api/commands_api.rb | 32 +- jcapiv2/lib/jcapiv2/api/directories_api.rb | 15 +- jcapiv2/lib/jcapiv2/api/fde_api.rb | 11 +- jcapiv2/lib/jcapiv2/api/g_suite_api.rb | 66 +- jcapiv2/lib/jcapiv2/api/graph_api.rb | 563 ++++++-------- jcapiv2/lib/jcapiv2/api/groups_api.rb | 17 +- jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb | 52 +- jcapiv2/lib/jcapiv2/api/office365_api.rb | 66 +- jcapiv2/lib/jcapiv2/api/policies_api.rb | 156 ++-- .../lib/jcapiv2/api/policytemplates_api.rb | 24 +- jcapiv2/lib/jcapiv2/api/providers_api.rb | 19 +- jcapiv2/lib/jcapiv2/api/radius_servers_api.rb | 32 +- jcapiv2/lib/jcapiv2/api/samba_domains_api.rb | 45 +- .../api/system_group_associations_api.rb | 46 +- .../system_group_members_membership_api.rb | 40 +- jcapiv2/lib/jcapiv2/api/system_groups_api.rb | 123 ++- jcapiv2/lib/jcapiv2/api/systems_api.rb | 66 +- .../api/user_group_associations_api.rb | 81 +- .../api/user_group_members_membership_api.rb | 40 +- jcapiv2/lib/jcapiv2/api/user_groups_api.rb | 165 ++-- jcapiv2/lib/jcapiv2/api/users_api.rb | 94 +-- jcapiv2/lib/jcapiv2/api/workday_import_api.rb | 89 +-- jcapiv2/lib/jcapiv2/api_client.rb | 18 +- jcapiv2/lib/jcapiv2/api_error.rb | 2 +- jcapiv2/lib/jcapiv2/configuration.rb | 4 +- .../jcapiv2/models/active_directory_input.rb | 17 +- .../jcapiv2/models/active_directory_output.rb | 19 +- jcapiv2/lib/jcapiv2/models/administrator.rb | 17 +- jcapiv2/lib/jcapiv2/models/auth_info.rb | 17 +- jcapiv2/lib/jcapiv2/models/auth_input.rb | 17 +- .../lib/jcapiv2/models/auth_input_object.rb | 17 +- jcapiv2/lib/jcapiv2/models/authinput_basic.rb | 17 +- jcapiv2/lib/jcapiv2/models/authinput_oauth.rb | 17 +- .../lib/jcapiv2/models/bulk_user_create.rb | 16 +- .../lib/jcapiv2/models/bulk_user_update.rb | 16 +- jcapiv2/lib/jcapiv2/models/directory.rb | 28 +- jcapiv2/lib/jcapiv2/models/emailrequest.rb | 22 +- jcapiv2/lib/jcapiv2/models/error.rb | 17 +- jcapiv2/lib/jcapiv2/models/errorresponse.rb | 17 +- .../models/g_suite_builtin_translation.rb | 33 +- .../models/g_suite_translation_rule.rb | 17 +- .../g_suite_translation_rule_request.rb | 17 +- .../lib/jcapiv2/models/graph_connection.rb | 18 +- .../jcapiv2/models/graph_management_req.rb | 28 +- jcapiv2/lib/jcapiv2/models/graph_object.rb | 21 +- .../jcapiv2/models/graph_object_with_paths.rb | 23 +- jcapiv2/lib/jcapiv2/models/graph_type.rb | 29 +- jcapiv2/lib/jcapiv2/models/group.rb | 17 +- jcapiv2/lib/jcapiv2/models/group_type.rb | 9 +- .../lib/jcapiv2/models/inline_response_200.rb | 17 +- .../lib/jcapiv2/models/inline_response_401.rb | 17 +- jcapiv2/lib/jcapiv2/models/job_details.rb | 17 +- jcapiv2/lib/jcapiv2/models/job_id.rb | 17 +- jcapiv2/lib/jcapiv2/models/job_workresult.rb | 17 +- .../lib/jcapiv2/models/ldap_server_input.rb | 17 +- .../lib/jcapiv2/models/ldap_server_output.rb | 19 +- jcapiv2/lib/jcapiv2/models/mfa.rb | 17 +- .../lib/jcapiv2/models/oauth_code_input.rb | 17 +- .../models/office365_builtin_translation.rb | 25 +- .../models/office365_translation_rule.rb | 17 +- .../office365_translation_rule_request.rb | 17 +- jcapiv2/lib/jcapiv2/models/policy.rb | 16 +- jcapiv2/lib/jcapiv2/models/policy_request.rb | 18 +- .../jcapiv2/models/policy_request_template.rb | 17 +- jcapiv2/lib/jcapiv2/models/policy_result.rb | 17 +- jcapiv2/lib/jcapiv2/models/policy_template.rb | 23 +- .../models/policy_template_config_field.rb | 26 +- .../policy_template_config_field_tooltip.rb | 17 +- ...template_config_field_tooltip_variables.rb | 17 +- .../models/policy_template_with_details.rb | 21 +- jcapiv2/lib/jcapiv2/models/policy_value.rb | 17 +- .../lib/jcapiv2/models/policy_with_details.rb | 16 +- jcapiv2/lib/jcapiv2/models/provider.rb | 17 +- .../lib/jcapiv2/models/provider_contact.rb | 17 +- .../lib/jcapiv2/models/samba_domain_input.rb | 21 +- .../lib/jcapiv2/models/samba_domain_output.rb | 23 +- jcapiv2/lib/jcapiv2/models/sshkeylist.rb | 17 +- .../models/system_graph_management_req.rb | 34 +- .../system_graph_management_req_attributes.rb | 16 +- ...em_graph_management_req_attributes_sudo.rb | 17 +- jcapiv2/lib/jcapiv2/models/system_group.rb | 22 +- .../lib/jcapiv2/models/system_group_data.rb | 19 +- .../system_group_graph_management_req.rb | 34 +- .../models/system_group_members_req.rb | 34 +- jcapiv2/lib/jcapiv2/models/systemfdekey.rb | 19 +- jcapiv2/lib/jcapiv2/models/systemuser.rb | 102 +-- .../lib/jcapiv2/models/systemuserputpost.rb | 47 +- .../models/systemuserputpost_addresses.rb | 17 +- .../models/systemuserputpost_phone_numbers.rb | 17 +- .../models/user_graph_management_req.rb | 34 +- jcapiv2/lib/jcapiv2/models/user_group.rb | 22 +- .../models/user_group_graph_management_req.rb | 34 +- .../jcapiv2/models/user_group_members_req.rb | 34 +- jcapiv2/lib/jcapiv2/models/user_group_post.rb | 19 +- .../models/user_group_post_attributes.rb | 16 +- ...user_group_post_attributes_posix_groups.rb | 17 +- jcapiv2/lib/jcapiv2/models/user_group_put.rb | 19 +- .../models/user_group_put_attributes.rb | 16 +- jcapiv2/lib/jcapiv2/models/workday_fields.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_input.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_output.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_request.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_worker.rb | 17 +- .../lib/jcapiv2/models/workdayoutput_auth.rb | 17 +- jcapiv2/lib/jcapiv2/version.rb | 4 +- jcapiv2/spec/api/active_directory_api_spec.rb | 16 +- jcapiv2/spec/api/applications_api_spec.rb | 10 +- .../spec/api/bulk_job_requests_api_spec.rb | 12 +- jcapiv2/spec/api/commands_api_spec.rb | 10 +- jcapiv2/spec/api/directories_api_spec.rb | 4 +- jcapiv2/spec/api/fde_api_spec.rb | 4 +- jcapiv2/spec/api/g_suite_api_spec.rb | 18 +- jcapiv2/spec/api/graph_api_spec.rb | 152 ++-- jcapiv2/spec/api/groups_api_spec.rb | 4 +- jcapiv2/spec/api/ldap_servers_api_spec.rb | 14 +- jcapiv2/spec/api/office365_api_spec.rb | 18 +- jcapiv2/spec/api/policies_api_spec.rb | 34 +- jcapiv2/spec/api/policytemplates_api_spec.rb | 6 +- jcapiv2/spec/api/providers_api_spec.rb | 5 +- jcapiv2/spec/api/radius_servers_api_spec.rb | 10 +- jcapiv2/spec/api/samba_domains_api_spec.rb | 12 +- .../api/system_group_associations_api_spec.rb | 14 +- ...ystem_group_members_membership_api_spec.rb | 10 +- jcapiv2/spec/api/system_groups_api_spec.rb | 32 +- jcapiv2/spec/api/systems_api_spec.rb | 18 +- .../api/user_group_associations_api_spec.rb | 24 +- .../user_group_members_membership_api_spec.rb | 10 +- jcapiv2/spec/api/user_groups_api_spec.rb | 44 +- jcapiv2/spec/api/users_api_spec.rb | 26 +- jcapiv2/spec/api/workday_import_api_spec.rb | 24 +- jcapiv2/spec/api_client_spec.rb | 70 +- jcapiv2/spec/configuration_spec.rb | 18 +- .../models/active_directory_input_spec.rb | 5 +- .../models/active_directory_output_spec.rb | 7 +- jcapiv2/spec/models/administrator_spec.rb | 15 +- jcapiv2/spec/models/auth_info_spec.rb | 9 +- jcapiv2/spec/models/auth_input_object_spec.rb | 5 +- jcapiv2/spec/models/auth_input_spec.rb | 7 +- jcapiv2/spec/models/authinput_basic_spec.rb | 7 +- jcapiv2/spec/models/authinput_oauth_spec.rb | 5 +- jcapiv2/spec/models/bulk_user_create_spec.rb | 13 +- jcapiv2/spec/models/bulk_user_update_spec.rb | 15 +- jcapiv2/spec/models/directory_spec.rb | 17 +- jcapiv2/spec/models/emailrequest_spec.rb | 13 +- jcapiv2/spec/models/error_spec.rb | 9 +- jcapiv2/spec/models/errorresponse_spec.rb | 5 +- .../g_suite_builtin_translation_spec.rb | 3 +- .../g_suite_translation_rule_request_spec.rb | 5 +- .../models/g_suite_translation_rule_spec.rb | 7 +- jcapiv2/spec/models/graph_connection_spec.rb | 7 +- .../spec/models/graph_management_req_spec.rb | 17 +- jcapiv2/spec/models/graph_object_spec.rb | 7 +- .../models/graph_object_with_paths_spec.rb | 9 +- jcapiv2/spec/models/graph_type_spec.rb | 3 +- jcapiv2/spec/models/group_spec.rb | 9 +- jcapiv2/spec/models/group_type_spec.rb | 3 +- .../spec/models/inline_response_200_spec.rb | 7 +- .../spec/models/inline_response_401_spec.rb | 5 +- jcapiv2/spec/models/job_details_spec.rb | 19 +- jcapiv2/spec/models/job_id_spec.rb | 5 +- jcapiv2/spec/models/job_workresult_spec.rb | 5 +- jcapiv2/spec/models/ldap_server_input_spec.rb | 5 +- .../spec/models/ldap_server_output_spec.rb | 7 +- jcapiv2/spec/models/mfa_spec.rb | 9 +- jcapiv2/spec/models/oauth_code_input_spec.rb | 5 +- .../office365_builtin_translation_spec.rb | 3 +- ...office365_translation_rule_request_spec.rb | 5 +- .../models/office365_translation_rule_spec.rb | 7 +- jcapiv2/spec/models/policy_request_spec.rb | 9 +- .../models/policy_request_template_spec.rb | 5 +- jcapiv2/spec/models/policy_result_spec.rb | 25 +- jcapiv2/spec/models/policy_spec.rb | 9 +- .../policy_template_config_field_spec.rb | 27 +- ...licy_template_config_field_tooltip_spec.rb | 7 +- ...ate_config_field_tooltip_variables_spec.rb | 7 +- jcapiv2/spec/models/policy_template_spec.rb | 27 +- .../policy_template_with_details_spec.rb | 27 +- jcapiv2/spec/models/policy_value_spec.rb | 5 +- .../spec/models/policy_with_details_spec.rb | 13 +- jcapiv2/spec/models/provider_contact_spec.rb | 7 +- jcapiv2/spec/models/provider_spec.rb | 7 +- .../spec/models/samba_domain_input_spec.rb | 7 +- .../spec/models/samba_domain_output_spec.rb | 9 +- jcapiv2/spec/models/sshkeylist_spec.rb | 11 +- ...em_graph_management_req_attributes_spec.rb | 5 +- ...aph_management_req_attributes_sudo_spec.rb | 7 +- .../system_graph_management_req_spec.rb | 27 +- jcapiv2/spec/models/system_group_data_spec.rb | 5 +- .../system_group_graph_management_req_spec.rb | 25 +- .../models/system_group_members_req_spec.rb | 25 +- jcapiv2/spec/models/system_group_spec.rb | 17 +- jcapiv2/spec/models/systemfdekey_spec.rb | 5 +- jcapiv2/spec/models/systemuser_spec.rb | 83 +- .../systemuserputpost_addresses_spec.rb | 19 +- .../systemuserputpost_phone_numbers_spec.rb | 7 +- jcapiv2/spec/models/systemuserputpost_spec.rb | 77 +- .../models/user_graph_management_req_spec.rb | 27 +- .../user_group_graph_management_req_spec.rb | 25 +- .../models/user_group_members_req_spec.rb | 25 +- ...group_post_attributes_posix_groups_spec.rb | 7 +- .../models/user_group_post_attributes_spec.rb | 7 +- jcapiv2/spec/models/user_group_post_spec.rb | 7 +- .../models/user_group_put_attributes_spec.rb | 5 +- jcapiv2/spec/models/user_group_put_spec.rb | 7 +- jcapiv2/spec/models/user_group_spec.rb | 17 +- jcapiv2/spec/models/workday_fields_spec.rb | 7 +- jcapiv2/spec/models/workday_input_spec.rb | 9 +- jcapiv2/spec/models/workday_output_spec.rb | 13 +- jcapiv2/spec/models/workday_request_spec.rb | 7 +- jcapiv2/spec/models/workday_worker_spec.rb | 13 +- .../spec/models/workdayoutput_auth_spec.rb | 7 +- jcapiv2/spec/spec_helper.rb | 2 +- 405 files changed, 5215 insertions(+), 6061 deletions(-) create mode 100644 jcapiv1/.rubocop.yml create mode 100644 jcapiv2/.rubocop.yml diff --git a/docker-compose.yml b/docker-compose.yml index 8b71bcf..ff7f9b6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: swagger-codegen: - image: jimschubert/swagger-codegen-cli:2.3.1 + image: swaggerapi/swagger-codegen-cli:2.4.2 volumes: - ./input:/swagger-api/yaml # volume for input yaml files - ./output:/swagger-api/out # volume for generated files diff --git a/jcapiv1/.gitignore b/jcapiv1/.gitignore index 4b91271..c021594 100644 --- a/jcapiv1/.gitignore +++ b/jcapiv1/.gitignore @@ -1,5 +1,5 @@ # Generated by: https://github.com/swagger-api/swagger-codegen.git -# +# *.gem *.rbc diff --git a/jcapiv1/.rubocop.yml b/jcapiv1/.rubocop.yml new file mode 100644 index 0000000..19a777e --- /dev/null +++ b/jcapiv1/.rubocop.yml @@ -0,0 +1,154 @@ +# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) +# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen) +AllCops: + TargetRubyVersion: 2.2 + # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop + # to ignore them, so only the ones explicitly set in this file are enabled. + DisabledByDefault: true + Exclude: + - '**/templates/**/*' + - '**/vendor/**/*' + - 'actionpack/lib/action_dispatch/journey/parser.rb' + +# Prefer &&/|| over and/or. +Style/AndOr: + Enabled: true + +# Do not use braces for hash literals when they are the last argument of a +# method call. +Style/BracesAroundHashParameters: + Enabled: true + EnforcedStyle: context_dependent + +# Align `when` with `case`. +Layout/CaseIndentation: + Enabled: true + +# Align comments with method definitions. +Layout/CommentIndentation: + Enabled: true + +Layout/ElseAlignment: + Enabled: true + +Layout/EmptyLineAfterMagicComment: + Enabled: true + +# In a regular class definition, no empty lines around the body. +Layout/EmptyLinesAroundClassBody: + Enabled: true + +# In a regular method definition, no empty lines around the body. +Layout/EmptyLinesAroundMethodBody: + Enabled: true + +# In a regular module definition, no empty lines around the body. +Layout/EmptyLinesAroundModuleBody: + Enabled: true + +Layout/FirstParameterIndentation: + Enabled: true + +# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. +Style/HashSyntax: + Enabled: false + +# Method definitions after `private` or `protected` isolated calls need one +# extra level of indentation. +Layout/IndentationConsistency: + Enabled: true + EnforcedStyle: rails + +# Two spaces, no tabs (for indentation). +Layout/IndentationWidth: + Enabled: true + +Layout/LeadingCommentSpace: + Enabled: true + +Layout/SpaceAfterColon: + Enabled: true + +Layout/SpaceAfterComma: + Enabled: true + +Layout/SpaceAroundEqualsInParameterDefault: + Enabled: true + +Layout/SpaceAroundKeyword: + Enabled: true + +Layout/SpaceAroundOperators: + Enabled: true + +Layout/SpaceBeforeComma: + Enabled: true + +Layout/SpaceBeforeFirstArg: + Enabled: true + +Style/DefWithParentheses: + Enabled: true + +# Defining a method with parameters needs parentheses. +Style/MethodDefParentheses: + Enabled: true + +Style/FrozenStringLiteralComment: + Enabled: false + EnforcedStyle: always + +# Use `foo {}` not `foo{}`. +Layout/SpaceBeforeBlockBraces: + Enabled: true + +# Use `foo { bar }` not `foo {bar}`. +Layout/SpaceInsideBlockBraces: + Enabled: true + +# Use `{ a: 1 }` not `{a:1}`. +Layout/SpaceInsideHashLiteralBraces: + Enabled: true + +Layout/SpaceInsideParens: + Enabled: true + +# Check quotes usage according to lint rule below. +#Style/StringLiterals: +# Enabled: true +# EnforcedStyle: single_quotes + +# Detect hard tabs, no hard tabs. +Layout/Tab: + Enabled: true + +# Blank lines should not have any spaces. +Layout/TrailingBlankLines: + Enabled: true + +# No trailing whitespace. +Layout/TrailingWhitespace: + Enabled: false + +# Use quotes for string literals when they are enough. +Style/UnneededPercentQ: + Enabled: true + +# Align `end` with the matching keyword or starting expression except for +# assignments, where it should be aligned with the LHS. +Lint/EndAlignment: + Enabled: true + EnforcedStyleAlignWith: variable + AutoCorrect: true + +# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. +Lint/RequireParentheses: + Enabled: true + +Style/RedundantReturn: + Enabled: true + AllowMultipleReturnValues: true + +Style/Semicolon: + Enabled: true + AllowAsExpressionSeparator: true diff --git a/jcapiv1/.swagger-codegen/VERSION b/jcapiv1/.swagger-codegen/VERSION index a625450..acdc3f1 100644 --- a/jcapiv1/.swagger-codegen/VERSION +++ b/jcapiv1/.swagger-codegen/VERSION @@ -1 +1 @@ -2.3.1 \ No newline at end of file +2.4.2 \ No newline at end of file diff --git a/jcapiv1/README.md b/jcapiv1/README.md index 6131bb6..10a42f5 100644 --- a/jcapiv1/README.md +++ b/jcapiv1/README.md @@ -64,17 +64,17 @@ end api_instance = JCAPIv1::ApplicationsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "fields_example", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: 'fields_example', # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 56, # Integer | The number of records to return at once. skip: 56, # Integer | The offset into the records to return. - sort: "The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.", # String | - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + sort: 'The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.', # String | + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/ApplicationsApi.md b/jcapiv1/docs/ApplicationsApi.md index 2188421..58ca045 100644 --- a/jcapiv1/docs/ApplicationsApi.md +++ b/jcapiv1/docs/ApplicationsApi.md @@ -28,17 +28,17 @@ end api_instance = JCAPIv1::ApplicationsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "fields_example", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: 'fields_example', # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 56, # Integer | The number of records to return at once. skip: 56, # Integer | The offset into the records to return. - sort: "The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.", # String | - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + sort: 'The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.', # String | + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/CommandResultsApi.md b/jcapiv1/docs/CommandResultsApi.md index 70b47b7..7ac9ad3 100644 --- a/jcapiv1/docs/CommandResultsApi.md +++ b/jcapiv1/docs/CommandResultsApi.md @@ -30,14 +30,14 @@ end api_instance = JCAPIv1::CommandResultsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -94,16 +94,16 @@ end api_instance = JCAPIv1::CommandResultsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin @@ -162,17 +162,17 @@ end api_instance = JCAPIv1::CommandResultsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/CommandTriggersApi.md b/jcapiv1/docs/CommandTriggersApi.md index 7e5fea3..7ee13ab 100644 --- a/jcapiv1/docs/CommandTriggersApi.md +++ b/jcapiv1/docs/CommandTriggersApi.md @@ -28,14 +28,14 @@ end api_instance = JCAPIv1::CommandTriggersApi.new -triggername = "triggername_example" # String | +triggername = 'triggername_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/CommandsApi.md b/jcapiv1/docs/CommandsApi.md index 9fb7fb0..3f422e8 100644 --- a/jcapiv1/docs/CommandsApi.md +++ b/jcapiv1/docs/CommandsApi.md @@ -33,17 +33,17 @@ end api_instance = JCAPIv1::CommandsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -103,14 +103,14 @@ end api_instance = JCAPIv1::CommandsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -166,16 +166,16 @@ end api_instance = JCAPIv1::CommandsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin @@ -234,17 +234,17 @@ end api_instance = JCAPIv1::CommandsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { skip: 0, # Integer | The offset into the records to return. - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin @@ -305,13 +305,13 @@ end api_instance = JCAPIv1::CommandsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Command.new, # Command | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -368,15 +368,15 @@ end api_instance = JCAPIv1::CommandsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Command.new, # Command | - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/OrganizationsApi.md b/jcapiv1/docs/OrganizationsApi.md index 7e9d074..c303ae1 100644 --- a/jcapiv1/docs/OrganizationsApi.md +++ b/jcapiv1/docs/OrganizationsApi.md @@ -28,17 +28,17 @@ end api_instance = JCAPIv1::OrganizationsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + search: 'search_example', # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. } begin diff --git a/jcapiv1/docs/RadiusServersApi.md b/jcapiv1/docs/RadiusServersApi.md index 23c61d1..a4cee3a 100644 --- a/jcapiv1/docs/RadiusServersApi.md +++ b/jcapiv1/docs/RadiusServersApi.md @@ -30,17 +30,17 @@ end api_instance = JCAPIv1::RadiusServersApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - x_org_id: "" # String | + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -101,13 +101,13 @@ end api_instance = JCAPIv1::RadiusServersApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Radiusserverpost.new, # Radiusserverpost | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -164,13 +164,13 @@ end api_instance = JCAPIv1::RadiusServersApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Body.new, # Body | - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/SearchApi.md b/jcapiv1/docs/SearchApi.md index ca75470..1fc6751 100644 --- a/jcapiv1/docs/SearchApi.md +++ b/jcapiv1/docs/SearchApi.md @@ -30,14 +30,14 @@ end api_instance = JCAPIv1::SearchApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Search.new, # Search | - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. } @@ -99,17 +99,17 @@ end api_instance = JCAPIv1::SearchApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Search.new, # Search | - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: "" # String | + x_org_id: '' # String | skip: 0, # Integer | The offset into the records to return. - filter: "filter_example" # String | A filter to apply to the query. + filter: 'filter_example' # String | A filter to apply to the query. } begin @@ -170,17 +170,17 @@ end api_instance = JCAPIv1::SearchApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Search.new, # Search | - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/SystemsApi.md b/jcapiv1/docs/SystemsApi.md index f1e53db..638a54c 100644 --- a/jcapiv1/docs/SystemsApi.md +++ b/jcapiv1/docs/SystemsApi.md @@ -33,16 +33,16 @@ end api_instance = JCAPIv1::SystemsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -101,18 +101,18 @@ end api_instance = JCAPIv1::SystemsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -173,18 +173,18 @@ end api_instance = JCAPIv1::SystemsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: "" # String | - search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + x_org_id: '' # String | + search: 'search_example', # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. } begin @@ -246,17 +246,17 @@ end api_instance = JCAPIv1::SystemsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Systemput.new, # Systemput | - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -315,19 +315,19 @@ end api_instance = JCAPIv1::SystemsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin @@ -389,15 +389,15 @@ end api_instance = JCAPIv1::SystemsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Systemuserbindingsput.new, # Systemuserbindingsput | - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/SystemusersApi.md b/jcapiv1/docs/SystemusersApi.md index 6342e86..752a445 100644 --- a/jcapiv1/docs/SystemusersApi.md +++ b/jcapiv1/docs/SystemusersApi.md @@ -39,14 +39,14 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -102,14 +102,14 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -166,15 +166,15 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Sshkeypost.new, # Sshkeypost | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -232,14 +232,14 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -296,16 +296,16 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin @@ -364,18 +364,18 @@ end api_instance = JCAPIv1::SystemusersApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - fields: "", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - x_org_id: "" # String | - search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. - filter: "filter_example" # String | A filter to apply to the query. + sort: '', # String | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + fields: '', # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + x_org_id: '' # String | + search: 'search_example', # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + filter: 'filter_example' # String | A filter to apply to the query. } begin @@ -437,13 +437,13 @@ end api_instance = JCAPIv1::SystemusersApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Systemuserputpost.new, # Systemuserputpost | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -500,15 +500,15 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Systemuserput.new, # Systemuserput | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -566,13 +566,13 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -x_api_key = "x_api_key_example" # String | +x_api_key = 'x_api_key_example' # String | opts = { body: JCAPIv1::Body1.new, # Body1 | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -629,19 +629,19 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. - x_org_id: "" # String | + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. + x_org_id: '' # String | } begin @@ -703,15 +703,15 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Usersystembindingsput.new, # Usersystembindingsput | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -769,10 +769,10 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = "id_example" # String | +id = 'id_example' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv1/docs/TagsApi.md b/jcapiv1/docs/TagsApi.md index 798acd8..4c42692 100644 --- a/jcapiv1/docs/TagsApi.md +++ b/jcapiv1/docs/TagsApi.md @@ -32,11 +32,11 @@ end api_instance = JCAPIv1::TagsApi.new -name = "name_example" # String | +name = 'name_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | begin @@ -92,18 +92,18 @@ end api_instance = JCAPIv1::TagsApi.new -name = "name_example" # String | +name = 'name_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. } begin @@ -164,16 +164,16 @@ end api_instance = JCAPIv1::TagsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: "filter_example" # String | A filter to apply to the query. + sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: 'filter_example' # String | A filter to apply to the query. } begin @@ -233,9 +233,9 @@ end api_instance = JCAPIv1::TagsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Tagpost.new # Tagpost | @@ -294,11 +294,11 @@ end api_instance = JCAPIv1::TagsApi.new -name = "name_example" # String | +name = 'name_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv1::Tagput.new # Tagput | diff --git a/jcapiv1/jcapiv1.gemspec b/jcapiv1/jcapiv1.gemspec index 1102153..852c9d8 100644 --- a/jcapiv1/jcapiv1.gemspec +++ b/jcapiv1/jcapiv1.gemspec @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# + =begin #JumpCloud APIs @@ -8,7 +8,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -24,8 +24,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/swagger-api/swagger-codegen" s.summary = "JumpCloud APIs Ruby Gem" s.description = " JumpCloud's V1 API. This set of endpoints allows JumpCloud customers to manage commands, systems, & system users." - # TODO uncommnet and update below with a proper license - #s.license = "Apache 2.0" + s.license = "Unlicense" s.required_ruby_version = ">= 1.9" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' @@ -39,7 +38,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16' s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12' - s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? } + s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] s.require_paths = ["lib"] diff --git a/jcapiv1/lib/jcapiv1.rb b/jcapiv1/lib/jcapiv1.rb index eced466..c3b06be 100644 --- a/jcapiv1/lib/jcapiv1.rb +++ b/jcapiv1/lib/jcapiv1.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end diff --git a/jcapiv1/lib/jcapiv1/api/applications_api.rb b/jcapiv1/lib/jcapiv1/api/applications_api.rb index bd0659f..6464d62 100644 --- a/jcapiv1/lib/jcapiv1/api/applications_api.rb +++ b/jcapiv1/lib/jcapiv1/api/applications_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class ApplicationsApi @@ -19,7 +19,6 @@ class ApplicationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Applications # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -34,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Applicationslist] def applications_list(content_type, accept, opts = {}) data, _status_code, _headers = applications_list_with_http_info(content_type, accept, opts) - return data + data end # Applications @@ -51,7 +50,7 @@ def applications_list(content_type, accept, opts = {}) # @return [Array<(Applicationslist, Fixnum, Hash)>] Applicationslist data, response status code and response headers def applications_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ApplicationsApi.applications_list ..." + @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -62,7 +61,7 @@ def applications_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.applications_list" end # resource path - local_var_path = "/applications" + local_var_path = '/applications' # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/command_results_api.rb b/jcapiv1/lib/jcapiv1/api/command_results_api.rb index 8a3722f..97269cd 100644 --- a/jcapiv1/lib/jcapiv1/api/command_results_api.rb +++ b/jcapiv1/lib/jcapiv1/api/command_results_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class CommandResultsApi @@ -19,7 +19,6 @@ class CommandResultsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete a Command result # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [Commandresult] def command_results_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = command_results_delete_with_http_info(id, content_type, accept, opts) - return data + data end # Delete a Command result @@ -43,7 +42,7 @@ def command_results_delete(id, content_type, accept, opts = {}) # @return [Array<(Commandresult, Fixnum, Hash)>] Commandresult data, response status code and response headers def command_results_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandResultsApi.command_results_delete ..." + @api_client.config.logger.debug 'Calling API: CommandResultsApi.command_results_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -58,7 +57,7 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandResultsApi.command_results_delete" end # resource path - local_var_path = "/commandresults/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/commandresults/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -91,7 +90,6 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List an individual Command result # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -104,7 +102,7 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Commandresult] def command_results_get(id, content_type, accept, opts = {}) data, _status_code, _headers = command_results_get_with_http_info(id, content_type, accept, opts) - return data + data end # List an individual Command result @@ -119,7 +117,7 @@ def command_results_get(id, content_type, accept, opts = {}) # @return [Array<(Commandresult, Fixnum, Hash)>] Commandresult data, response status code and response headers def command_results_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandResultsApi.command_results_get ..." + @api_client.config.logger.debug 'Calling API: CommandResultsApi.command_results_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -134,7 +132,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandResultsApi.command_results_get" end # resource path - local_var_path = "/commandresults/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/commandresults/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -169,7 +167,6 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List all Command Results # This endpoint returns all command results. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key:{API_KEY}' ``` # @param content_type @@ -184,7 +181,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) # @return [Commandresultslist] def command_results_list(content_type, accept, opts = {}) data, _status_code, _headers = command_results_list_with_http_info(content_type, accept, opts) - return data + data end # List all Command Results @@ -201,7 +198,7 @@ def command_results_list(content_type, accept, opts = {}) # @return [Array<(Commandresultslist, Fixnum, Hash)>] Commandresultslist data, response status code and response headers def command_results_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandResultsApi.command_results_list ..." + @api_client.config.logger.debug 'Calling API: CommandResultsApi.command_results_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -212,7 +209,7 @@ def command_results_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandResultsApi.command_results_list" end # resource path - local_var_path = "/commandresults" + local_var_path = '/commandresults' # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb b/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb index fa5d935..4b2a6cf 100644 --- a/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class CommandTriggersApi @@ -19,7 +19,6 @@ class CommandTriggersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Launch a command via a Trigger # This endpoint allows you to launch a command based on a defined trigger. #### Sample Requests **Launch a Command via a Trigger** ``` curl --silent \\ -X 'POST' \\ -H \"x-api-key: {API_KEY}\" \\ \"https://console.jumpcloud.com/api/command/trigger/{TriggerName}\" ``` **Launch a Command via a Trigger passing a JSON object to the command** ``` curl --silent \\ -X 'POST' \\ -H \"x-api-key: {API_KEY}\" \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -d '{ \"srcip\":\"192.168.2.32\", \"attack\":\"Cross Site Scripting Attempt\" }' \\ \"https://console.jumpcloud.com/api/command/trigger/{TriggerName}\" ``` # @param triggername @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def command_trigger_webhook_post(triggername, content_type, accept, opts = {}) command_trigger_webhook_post_with_http_info(triggername, content_type, accept, opts) - return nil + nil end # Launch a command via a Trigger @@ -43,7 +42,7 @@ def command_trigger_webhook_post(triggername, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def command_trigger_webhook_post_with_http_info(triggername, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandTriggersApi.command_trigger_webhook_post ..." + @api_client.config.logger.debug 'Calling API: CommandTriggersApi.command_trigger_webhook_post ...' end # verify the required parameter 'triggername' is set if @api_client.config.client_side_validation && triggername.nil? @@ -58,7 +57,7 @@ def command_trigger_webhook_post_with_http_info(triggername, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling CommandTriggersApi.command_trigger_webhook_post" end # resource path - local_var_path = "/command/trigger/{triggername}".sub('{' + 'triggername' + '}', triggername.to_s) + local_var_path = '/command/trigger/{triggername}'.sub('{' + 'triggername' + '}', triggername.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/commands_api.rb b/jcapiv1/lib/jcapiv1/api/commands_api.rb index 0f47162..d90f837 100644 --- a/jcapiv1/lib/jcapiv1/api/commands_api.rb +++ b/jcapiv1/lib/jcapiv1/api/commands_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class CommandsApi @@ -19,7 +19,6 @@ class CommandsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a Command File # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Commandfilereturn] def command_file_get(id, content_type, accept, opts = {}) data, _status_code, _headers = command_file_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get a Command File @@ -49,7 +48,7 @@ def command_file_get(id, content_type, accept, opts = {}) # @return [Array<(Commandfilereturn, Fixnum, Hash)>] Commandfilereturn data, response status code and response headers def command_file_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.command_file_get ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.command_file_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -64,7 +63,7 @@ def command_file_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.command_file_get" end # resource path - local_var_path = "/files/command/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/files/command/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -100,7 +99,6 @@ def command_file_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Delete a Command # This endpoint deletes a specific command based on the Command ID. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -111,7 +109,7 @@ def command_file_get_with_http_info(id, content_type, accept, opts = {}) # @return [nil] def commands_delete(id, content_type, accept, opts = {}) commands_delete_with_http_info(id, content_type, accept, opts) - return nil + nil end # Delete a Command @@ -124,7 +122,7 @@ def commands_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def commands_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.commands_delete ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.commands_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -139,7 +137,7 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_delete" end # resource path - local_var_path = "/commands/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/commands/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -171,7 +169,6 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List an individual Command # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -184,7 +181,7 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Command] def commands_get(id, content_type, accept, opts = {}) data, _status_code, _headers = commands_get_with_http_info(id, content_type, accept, opts) - return data + data end # List an individual Command @@ -199,7 +196,7 @@ def commands_get(id, content_type, accept, opts = {}) # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.commands_get ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.commands_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -214,7 +211,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_get" end # resource path - local_var_path = "/commands/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/commands/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -249,7 +246,6 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List All Commands # This endpoint returns all commands. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -264,7 +260,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) # @return [Commandslist] def commands_list(content_type, accept, opts = {}) data, _status_code, _headers = commands_list_with_http_info(content_type, accept, opts) - return data + data end # List All Commands @@ -281,7 +277,7 @@ def commands_list(content_type, accept, opts = {}) # @return [Array<(Commandslist, Fixnum, Hash)>] Commandslist data, response status code and response headers def commands_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.commands_list ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.commands_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -292,7 +288,7 @@ def commands_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_list" end # resource path - local_var_path = "/commands/" + local_var_path = '/commands/' # query parameters query_params = {} @@ -330,7 +326,6 @@ def commands_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create A Command # This endpoint allows you to create a new command. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/commands/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\":\"Test API Command\", \"command\":\"String\", \"user\":\"{UserID}\", \"schedule\":\"\", \"timeout\":\"100\" }' ``` # @param content_type @@ -341,7 +336,7 @@ def commands_list_with_http_info(content_type, accept, opts = {}) # @return [Command] def commands_post(content_type, accept, opts = {}) data, _status_code, _headers = commands_post_with_http_info(content_type, accept, opts) - return data + data end # Create A Command @@ -354,7 +349,7 @@ def commands_post(content_type, accept, opts = {}) # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.commands_post ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.commands_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -365,7 +360,7 @@ def commands_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_post" end # resource path - local_var_path = "/commands/" + local_var_path = '/commands/' # query parameters query_params = {} @@ -398,7 +393,6 @@ def commands_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update a Command # This endpoint Updates a command based on the command ID and returns the modified command record. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\":\"Test API Command\", \"command\":\"String\", \"user\":\"{UserID}\", \"schedule\":\"\", \"timeout\":\"100\" }' ``` # @param id @@ -410,7 +404,7 @@ def commands_post_with_http_info(content_type, accept, opts = {}) # @return [Command] def commands_put(id, content_type, accept, opts = {}) data, _status_code, _headers = commands_put_with_http_info(id, content_type, accept, opts) - return data + data end # Update a Command @@ -424,7 +418,7 @@ def commands_put(id, content_type, accept, opts = {}) # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.commands_put ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.commands_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -439,7 +433,7 @@ def commands_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_put" end # resource path - local_var_path = "/commands/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/commands/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/organizations_api.rb b/jcapiv1/lib/jcapiv1/api/organizations_api.rb index 891e138..20e3d32 100644 --- a/jcapiv1/lib/jcapiv1/api/organizations_api.rb +++ b/jcapiv1/lib/jcapiv1/api/organizations_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class OrganizationsApi @@ -19,7 +19,6 @@ class OrganizationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get Organization Details # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -34,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Organizationslist] def organization_list(content_type, accept, opts = {}) data, _status_code, _headers = organization_list_with_http_info(content_type, accept, opts) - return data + data end # Get Organization Details @@ -51,7 +50,7 @@ def organization_list(content_type, accept, opts = {}) # @return [Array<(Organizationslist, Fixnum, Hash)>] Organizationslist data, response status code and response headers def organization_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: OrganizationsApi.organization_list ..." + @api_client.config.logger.debug 'Calling API: OrganizationsApi.organization_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -62,7 +61,7 @@ def organization_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling OrganizationsApi.organization_list" end # resource path - local_var_path = "/organizations" + local_var_path = '/organizations' # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb index 5c77ee8..6fb41ad 100644 --- a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class RadiusServersApi @@ -19,7 +19,6 @@ class RadiusServersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List Radius Servers # This endpoint allows you to get a list of all RADIUS servers in your organization. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/radiusservers/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ ``` # @param content_type @@ -34,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Radiusserverslist] def radius_servers_list(content_type, accept, opts = {}) data, _status_code, _headers = radius_servers_list_with_http_info(content_type, accept, opts) - return data + data end # List Radius Servers @@ -51,7 +50,7 @@ def radius_servers_list(content_type, accept, opts = {}) # @return [Array<(Radiusserverslist, Fixnum, Hash)>] Radiusserverslist data, response status code and response headers def radius_servers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RadiusServersApi.radius_servers_list ..." + @api_client.config.logger.debug 'Calling API: RadiusServersApi.radius_servers_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -62,7 +61,7 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling RadiusServersApi.radius_servers_list" end # resource path - local_var_path = "/radiusservers" + local_var_path = '/radiusservers' # query parameters query_params = {} @@ -100,7 +99,6 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create a Radius Server # This endpoint allows you to create RADIUS servers in your organization. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/radiusservers/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{test_radius}\", \"networkSourceIp\": \"{0.0.0.0}\", \"sharedSecret\":\"{secretpassword}\" }' ``` # @param content_type @@ -111,7 +109,7 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) # @return [Radiusserverslist] def radius_servers_post(content_type, accept, opts = {}) data, _status_code, _headers = radius_servers_post_with_http_info(content_type, accept, opts) - return data + data end # Create a Radius Server @@ -124,7 +122,7 @@ def radius_servers_post(content_type, accept, opts = {}) # @return [Array<(Radiusserverslist, Fixnum, Hash)>] Radiusserverslist data, response status code and response headers def radius_servers_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RadiusServersApi.radius_servers_post ..." + @api_client.config.logger.debug 'Calling API: RadiusServersApi.radius_servers_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -135,7 +133,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling RadiusServersApi.radius_servers_post" end # resource path - local_var_path = "/radiusservers" + local_var_path = '/radiusservers' # query parameters query_params = {} @@ -168,7 +166,6 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update Radius Servers # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type @@ -179,7 +176,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) # @return [Radiusserverput] def radius_servers_put(content_type, accept, opts = {}) data, _status_code, _headers = radius_servers_put_with_http_info(content_type, accept, opts) - return data + data end # Update Radius Servers @@ -192,7 +189,7 @@ def radius_servers_put(content_type, accept, opts = {}) # @return [Array<(Radiusserverput, Fixnum, Hash)>] Radiusserverput data, response status code and response headers def radius_servers_put_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RadiusServersApi.radius_servers_put ..." + @api_client.config.logger.debug 'Calling API: RadiusServersApi.radius_servers_put ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -203,7 +200,7 @@ def radius_servers_put_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling RadiusServersApi.radius_servers_put" end # resource path - local_var_path = "/radiusservers:id" + local_var_path = '/radiusservers:id' # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/search_api.rb b/jcapiv1/lib/jcapiv1/api/search_api.rb index 874b6c7..1436134 100644 --- a/jcapiv1/lib/jcapiv1/api/search_api.rb +++ b/jcapiv1/lib/jcapiv1/api/search_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class SearchApi @@ -19,7 +19,6 @@ class SearchApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Search Organizations # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Organizationslist] def search_organizations_post(content_type, accept, opts = {}) data, _status_code, _headers = search_organizations_post_with_http_info(content_type, accept, opts) - return data + data end # Search Organizations @@ -49,7 +48,7 @@ def search_organizations_post(content_type, accept, opts = {}) # @return [Array<(Organizationslist, Fixnum, Hash)>] Organizationslist data, response status code and response headers def search_organizations_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SearchApi.search_organizations_post ..." + @api_client.config.logger.debug 'Calling API: SearchApi.search_organizations_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -60,7 +59,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SearchApi.search_organizations_post" end # resource path - local_var_path = "/search/organizations" + local_var_path = '/search/organizations' # query parameters query_params = {} @@ -96,7 +95,6 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Search Systems # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type @@ -111,7 +109,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) # @return [Systemslist] def search_systems_post(content_type, accept, opts = {}) data, _status_code, _headers = search_systems_post_with_http_info(content_type, accept, opts) - return data + data end # Search Systems @@ -128,7 +126,7 @@ def search_systems_post(content_type, accept, opts = {}) # @return [Array<(Systemslist, Fixnum, Hash)>] Systemslist data, response status code and response headers def search_systems_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SearchApi.search_systems_post ..." + @api_client.config.logger.debug 'Calling API: SearchApi.search_systems_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -139,7 +137,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SearchApi.search_systems_post" end # resource path - local_var_path = "/search/systems" + local_var_path = '/search/systems' # query parameters query_params = {} @@ -176,7 +174,6 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Search System Users # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type @@ -191,7 +188,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) # @return [Systemuserslist] def search_systemusers_post(content_type, accept, opts = {}) data, _status_code, _headers = search_systemusers_post_with_http_info(content_type, accept, opts) - return data + data end # Search System Users @@ -208,7 +205,7 @@ def search_systemusers_post(content_type, accept, opts = {}) # @return [Array<(Systemuserslist, Fixnum, Hash)>] Systemuserslist data, response status code and response headers def search_systemusers_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SearchApi.search_systemusers_post ..." + @api_client.config.logger.debug 'Calling API: SearchApi.search_systemusers_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -219,7 +216,7 @@ def search_systemusers_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SearchApi.search_systemusers_post" end # resource path - local_var_path = "/search/systemusers" + local_var_path = '/search/systemusers' # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/systems_api.rb b/jcapiv1/lib/jcapiv1/api/systems_api.rb index c792ab2..d619ea8 100644 --- a/jcapiv1/lib/jcapiv1/api/systems_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systems_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class SystemsApi @@ -19,7 +19,6 @@ class SystemsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete a System # This endpoint allows you to delete a system. This command will cause the system to uninstall the JumpCloud agent from its self which can can take about a minute. If the system is not connected to JumpCloud the system record will simply be removed. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -32,7 +31,7 @@ def initialize(api_client = ApiClient.default) # @return [System] def systems_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = systems_delete_with_http_info(id, content_type, accept, opts) - return data + data end # Delete a System @@ -47,7 +46,7 @@ def systems_delete(id, content_type, accept, opts = {}) # @return [Array<(System, Fixnum, Hash)>] System data, response status code and response headers def systems_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_delete ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -62,7 +61,7 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_delete" end # resource path - local_var_path = "/systems/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systems/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -97,7 +96,6 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List an individual system # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -112,7 +110,7 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) # @return [System] def systems_get(id, content_type, accept, opts = {}) data, _status_code, _headers = systems_get_with_http_info(id, content_type, accept, opts) - return data + data end # List an individual system @@ -129,7 +127,7 @@ def systems_get(id, content_type, accept, opts = {}) # @return [Array<(System, Fixnum, Hash)>] System data, response status code and response headers def systems_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_get ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -144,7 +142,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_get" end # resource path - local_var_path = "/systems/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systems/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -181,7 +179,6 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List All Systems # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -197,7 +194,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) # @return [Systemslist] def systems_list(content_type, accept, opts = {}) data, _status_code, _headers = systems_list_with_http_info(content_type, accept, opts) - return data + data end # List All Systems @@ -215,7 +212,7 @@ def systems_list(content_type, accept, opts = {}) # @return [Array<(Systemslist, Fixnum, Hash)>] Systemslist data, response status code and response headers def systems_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_list ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -226,7 +223,7 @@ def systems_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_list" end # resource path - local_var_path = "/systems" + local_var_path = '/systems' # query parameters query_params = {} @@ -265,7 +262,6 @@ def systems_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update a system # This endpoint allows you to update a system. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"displayName\":\"Name_Update\", \"allowSshPasswordAuthentication\":\"true\", \"allowSshRootLogin\":\"true\", \"allowMultiFactorAuthentication\":\"true\", \"allowPublicKeyAuthentication\":\"false\" }' ``` # @param id @@ -279,7 +275,7 @@ def systems_list_with_http_info(content_type, accept, opts = {}) # @return [nil] def systems_put(id, content_type, accept, opts = {}) systems_put_with_http_info(id, content_type, accept, opts) - return nil + nil end # Update a system @@ -295,7 +291,7 @@ def systems_put(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def systems_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_put ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -310,7 +306,7 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_put" end # resource path - local_var_path = "/systems/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systems/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -344,7 +340,6 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List system user bindings # Hidden as Tags is deprecated List system user bindings for a specific system in a system and user binding format. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). #### Sample Request *List system user bindings for specific system* ``` curl -X https://console.jumpcloud.com/api/systems/{SystemID}/systemusers\\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ \" ``` # @param id @@ -360,7 +355,7 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserbinding] def systems_systemusers_binding_list(id, content_type, accept, opts = {}) data, _status_code, _headers = systems_systemusers_binding_list_with_http_info(id, content_type, accept, opts) - return data + data end # List system user bindings @@ -378,7 +373,7 @@ def systems_systemusers_binding_list(id, content_type, accept, opts = {}) # @return [Array<(Systemuserbinding, Fixnum, Hash)>] Systemuserbinding data, response status code and response headers def systems_systemusers_binding_list_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_systemusers_binding_list ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_systemusers_binding_list ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -393,7 +388,7 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_systemusers_binding_list" end # resource path - local_var_path = "/systems/{id}/systemusers".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systems/{id}/systemusers'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -431,7 +426,6 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op end return data, status_code, headers end - # Update a system's or user's binding # Hidden as Tags is deprecated Adds or removes a user binding for a system. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). #### Sample Request *Add (or remove) a system user to (from) a system* ``` curl \\ -d '{ \"add\": [\"[SYSTEM_USER_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_USER_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systems/[SYSTEM_ID_HERE]/systemusers # @param id @@ -443,7 +437,7 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op # @return [nil] def systems_systemusers_binding_put(id, content_type, accept, opts = {}) systems_systemusers_binding_put_with_http_info(id, content_type, accept, opts) - return nil + nil end # Update a system's or user's binding @@ -457,7 +451,7 @@ def systems_systemusers_binding_put(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def systems_systemusers_binding_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_systemusers_binding_put ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_systemusers_binding_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -472,7 +466,7 @@ def systems_systemusers_binding_put_with_http_info(id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_systemusers_binding_put" end # resource path - local_var_path = "/systems/{id}/systemusers".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systems/{id}/systemusers'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb index 97395a1..4c4e383 100644 --- a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class SystemusersApi @@ -19,7 +19,6 @@ class SystemusersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete a system user's Public SSH Keys # This endpoint will delete a specific System User's SSH Key. # @param id @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def sshkey_delete(id, content_type, accept, opts = {}) sshkey_delete_with_http_info(id, content_type, accept, opts) - return nil + nil end # Delete a system user's Public SSH Keys @@ -43,7 +42,7 @@ def sshkey_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.sshkey_delete ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.sshkey_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -58,7 +57,7 @@ def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.sshkey_delete" end # resource path - local_var_path = "/systemusers/{id}/sshkeys/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/sshkeys/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -90,7 +89,6 @@ def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List a system user's public SSH keys # This endpoint will return a specific System User's public SSH key. # @param id @@ -101,7 +99,7 @@ def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Sshkeylist] def sshkey_list(id, content_type, accept, opts = {}) data, _status_code, _headers = sshkey_list_with_http_info(id, content_type, accept, opts) - return data + data end # List a system user's public SSH keys @@ -114,7 +112,7 @@ def sshkey_list(id, content_type, accept, opts = {}) # @return [Array<(Sshkeylist, Fixnum, Hash)>] Sshkeylist data, response status code and response headers def sshkey_list_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.sshkey_list ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.sshkey_list ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -129,7 +127,7 @@ def sshkey_list_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.sshkey_list" end # resource path - local_var_path = "/systemusers/{id}/sshkeys".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/sshkeys'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -162,7 +160,6 @@ def sshkey_list_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Create a system user's Public SSH Key # This endpoint will create a specific System User's Public SSH Key. # @param id @@ -174,7 +171,7 @@ def sshkey_list_with_http_info(id, content_type, accept, opts = {}) # @return [Sshkeylist] def sshkey_post(id, content_type, accept, opts = {}) data, _status_code, _headers = sshkey_post_with_http_info(id, content_type, accept, opts) - return data + data end # Create a system user's Public SSH Key @@ -188,7 +185,7 @@ def sshkey_post(id, content_type, accept, opts = {}) # @return [Array<(Sshkeylist, Fixnum, Hash)>] Sshkeylist data, response status code and response headers def sshkey_post_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.sshkey_post ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.sshkey_post ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -203,7 +200,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.sshkey_post" end # resource path - local_var_path = "/systemusers/{id}/sshkeys".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/sshkeys'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -236,7 +233,6 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Delete a system user # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -247,7 +243,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_delete_with_http_info(id, content_type, accept, opts) - return data + data end # Delete a system user @@ -260,7 +256,7 @@ def systemusers_delete(id, content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_delete ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -275,7 +271,7 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_delete" end # resource path - local_var_path = "/systemusers/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -308,7 +304,6 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List a system user # This endpoint returns a particular System User. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -321,7 +316,7 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_get(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_get_with_http_info(id, content_type, accept, opts) - return data + data end # List a system user @@ -336,7 +331,7 @@ def systemusers_get(id, content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_get ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -351,7 +346,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_get" end # resource path - local_var_path = "/systemusers/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -386,7 +381,6 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List all system users # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -402,7 +396,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserslist] def systemusers_list(content_type, accept, opts = {}) data, _status_code, _headers = systemusers_list_with_http_info(content_type, accept, opts) - return data + data end # List all system users @@ -420,7 +414,7 @@ def systemusers_list(content_type, accept, opts = {}) # @return [Array<(Systemuserslist, Fixnum, Hash)>] Systemuserslist data, response status code and response headers def systemusers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_list ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -431,7 +425,7 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_list" end # resource path - local_var_path = "/systemusers" + local_var_path = '/systemusers' # query parameters query_params = {} @@ -470,7 +464,6 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create a system user # This endpoint allows you to create a new system user. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"username\":\"{username}\", \"email\":\"{email_address}\", \"firstname\":\"{Name}\", \"lastname\":\"{Name}\" }' ``` # @param content_type @@ -481,7 +474,7 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_post(content_type, accept, opts = {}) data, _status_code, _headers = systemusers_post_with_http_info(content_type, accept, opts) - return data + data end # Create a system user @@ -494,7 +487,7 @@ def systemusers_post(content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_post ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -505,7 +498,7 @@ def systemusers_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_post" end # resource path - local_var_path = "/systemusers" + local_var_path = '/systemusers' # query parameters query_params = {} @@ -538,7 +531,6 @@ def systemusers_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update a system user # This endpoint allows you to update a system user. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"email\":\"{email_address}\", \"firstname\":\"{Name}\", \"lastname\":\"{Name}\" }' ``` # @param id @@ -550,7 +542,7 @@ def systemusers_post_with_http_info(content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_put(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_put_with_http_info(id, content_type, accept, opts) - return data + data end # Update a system user @@ -564,7 +556,7 @@ def systemusers_put(id, content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_put ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -579,7 +571,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_put" end # resource path - local_var_path = "/systemusers/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -612,7 +604,6 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Reset a system user's MFA token # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id @@ -623,7 +614,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) # @return [String] def systemusers_resetmfa(id, x_api_key, opts = {}) data, _status_code, _headers = systemusers_resetmfa_with_http_info(id, x_api_key, opts) - return data + data end # Reset a system user's MFA token @@ -636,7 +627,7 @@ def systemusers_resetmfa(id, x_api_key, opts = {}) # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_resetmfa ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_resetmfa ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -647,7 +638,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) fail ArgumentError, "Missing the required parameter 'x_api_key' when calling SystemusersApi.systemusers_resetmfa" end # resource path - local_var_path = "/systemusers/{id}/resetmfa".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/resetmfa'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -679,7 +670,6 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) end return data, status_code, headers end - # List system user binding # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id @@ -695,7 +685,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) # @return [Object] def systemusers_systems_binding_list(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_systems_binding_list_with_http_info(id, content_type, accept, opts) - return data + data end # List system user binding @@ -713,7 +703,7 @@ def systemusers_systems_binding_list(id, content_type, accept, opts = {}) # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def systemusers_systems_binding_list_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_systems_binding_list ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_systems_binding_list ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -728,7 +718,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_systems_binding_list" end # resource path - local_var_path = "/systemusers/{id}/systems".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/systems'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -766,7 +756,6 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op end return data, status_code, headers end - # Update a system user binding # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id @@ -778,7 +767,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op # @return [Usersystembinding] def systemusers_systems_binding_put(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_systems_binding_put_with_http_info(id, content_type, accept, opts) - return data + data end # Update a system user binding @@ -792,7 +781,7 @@ def systemusers_systems_binding_put(id, content_type, accept, opts = {}) # @return [Array<(Usersystembinding, Fixnum, Hash)>] Usersystembinding data, response status code and response headers def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_systems_binding_put ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_systems_binding_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -807,7 +796,7 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_systems_binding_put" end # resource path - local_var_path = "/systemusers/{id}/systems".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/systems'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -840,7 +829,6 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt end return data, status_code, headers end - # Unlock a system user # This endpoint allows you to unlock a user's account. # @param id @@ -849,7 +837,7 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt # @return [nil] def systemusers_unlock(id, opts = {}) systemusers_unlock_with_http_info(id, opts) - return nil + nil end # Unlock a system user @@ -860,14 +848,14 @@ def systemusers_unlock(id, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def systemusers_unlock_with_http_info(id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_unlock ..." + @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_unlock ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SystemusersApi.systemusers_unlock" end # resource path - local_var_path = "/systemusers/{id}/unlock".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemusers/{id}/unlock'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/tags_api.rb b/jcapiv1/lib/jcapiv1/api/tags_api.rb index d8fb907..b8d0404 100644 --- a/jcapiv1/lib/jcapiv1/api/tags_api.rb +++ b/jcapiv1/lib/jcapiv1/api/tags_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv1 class TagsApi @@ -19,7 +19,6 @@ class TagsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete a Tag # Hidden as Tags is deprecated Delete a Tag. # @param name @@ -29,7 +28,7 @@ def initialize(api_client = ApiClient.default) # @return [Tag] def tags_delete(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_delete_with_http_info(name, content_type, accept, opts) - return data + data end # Delete a Tag @@ -41,7 +40,7 @@ def tags_delete(name, content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_delete_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: TagsApi.tags_delete ..." + @api_client.config.logger.debug 'Calling API: TagsApi.tags_delete ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? @@ -56,7 +55,7 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_delete" end # resource path - local_var_path = "/tags/{name}".sub('{' + 'name' + '}', name.to_s) + local_var_path = '/tags/{name}'.sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} @@ -88,7 +87,6 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) end return data, status_code, headers end - # List a Tag # Hidden as Tags is deprecated Returns a specific tag. # @param name @@ -103,7 +101,7 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) # @return [Tag] def tags_get(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_get_with_http_info(name, content_type, accept, opts) - return data + data end # List a Tag @@ -120,7 +118,7 @@ def tags_get(name, content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_get_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: TagsApi.tags_get ..." + @api_client.config.logger.debug 'Calling API: TagsApi.tags_get ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? @@ -135,7 +133,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_get" end # resource path - local_var_path = "/Tags/{name}".sub('{' + 'name' + '}', name.to_s) + local_var_path = '/Tags/{name}'.sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} @@ -172,7 +170,6 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) end return data, status_code, headers end - # List All Tags # Hidden as Tags is deprecated Returns all Tags. # @param content_type @@ -186,7 +183,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) # @return [Tagslist] def tags_list(content_type, accept, opts = {}) data, _status_code, _headers = tags_list_with_http_info(content_type, accept, opts) - return data + data end # List All Tags @@ -202,7 +199,7 @@ def tags_list(content_type, accept, opts = {}) # @return [Array<(Tagslist, Fixnum, Hash)>] Tagslist data, response status code and response headers def tags_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: TagsApi.tags_list ..." + @api_client.config.logger.debug 'Calling API: TagsApi.tags_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -213,7 +210,7 @@ def tags_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_list" end # resource path - local_var_path = "/tags" + local_var_path = '/tags' # query parameters query_params = {} @@ -250,7 +247,6 @@ def tags_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create a Tag # Hidden as Tags is deprecated Create a tag. ### Examples #### Create a new Tag ``` curl \\ -d '{\"name\" : \"Developers\"}' \\ -X 'POST' \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/tags\" ``` # @param content_type @@ -260,7 +256,7 @@ def tags_list_with_http_info(content_type, accept, opts = {}) # @return [Tag] def tags_post(content_type, accept, opts = {}) data, _status_code, _headers = tags_post_with_http_info(content_type, accept, opts) - return data + data end # Create a Tag @@ -272,7 +268,7 @@ def tags_post(content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: TagsApi.tags_post ..." + @api_client.config.logger.debug 'Calling API: TagsApi.tags_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -283,7 +279,7 @@ def tags_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_post" end # resource path - local_var_path = "/tags" + local_var_path = '/tags' # query parameters query_params = {} @@ -315,7 +311,6 @@ def tags_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update a Tag # Hidden as Tags is deprecated Update a specific tag. # @param name @@ -326,7 +321,7 @@ def tags_post_with_http_info(content_type, accept, opts = {}) # @return [Tag] def tags_put(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_put_with_http_info(name, content_type, accept, opts) - return data + data end # Update a Tag @@ -339,7 +334,7 @@ def tags_put(name, content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_put_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: TagsApi.tags_put ..." + @api_client.config.logger.debug 'Calling API: TagsApi.tags_put ...' end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? @@ -354,7 +349,7 @@ def tags_put_with_http_info(name, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_put" end # resource path - local_var_path = "/Tag/{name}".sub('{' + 'name' + '}', name.to_s) + local_var_path = '/Tag/{name}'.sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api_client.rb b/jcapiv1/lib/jcapiv1/api_client.rb index 90a6d66..029dfb0 100644 --- a/jcapiv1/lib/jcapiv1/api_client.rb +++ b/jcapiv1/lib/jcapiv1/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,7 +33,7 @@ def initialize(config = Configuration.default) @config = config @user_agent = "Swagger-Codegen/#{VERSION}/ruby" @default_headers = { - 'Content-Type' => "application/json", + 'Content-Type' => 'application/json', 'User-Agent' => @user_agent } end @@ -137,7 +137,7 @@ def build_request(http_method, path, opts = {}) # @param [String] mime MIME # @return [Boolean] True if the MIME is application/json def json_mime?(mime) - (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? + (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? end # Deserialize the response to the given return type. @@ -201,12 +201,12 @@ def convert_to_type(data, return_type) when /\AArray<(.+)>\z/ # e.g. Array sub_type = $1 - data.map {|item| convert_to_type(item, sub_type) } + data.map { |item| convert_to_type(item, sub_type) } when /\AHash\\z/ # e.g. Hash sub_type = $1 {}.tap do |hash| - data.each {|k, v| hash[k] = convert_to_type(v, sub_type) } + data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else # models, e.g. Pet @@ -228,7 +228,7 @@ def download_file(request) encoding = nil request.on_headers do |response| content_disposition = response.headers['Content-Disposition'] - if content_disposition and content_disposition =~ /filename=/i + if content_disposition && content_disposition =~ /filename=/i filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] prefix = sanitize_filename(filename) else @@ -327,7 +327,7 @@ def select_header_accept(accepts) return nil if accepts.nil? || accepts.empty? # use JSON when present, otherwise use all of the provided json_accept = accepts.find { |s| json_mime?(s) } - return json_accept || accepts.join(',') + json_accept || accepts.join(',') end # Return Content-Type header based on an array of content types provided. @@ -338,7 +338,7 @@ def select_header_content_type(content_types) return 'application/json' if content_types.nil? || content_types.empty? # use JSON when present, otherwise use the first one json_content_type = content_types.find { |s| json_mime?(s) } - return json_content_type || content_types.first + json_content_type || content_types.first end # Convert object (array, hash, object, etc) to JSON string. @@ -348,7 +348,7 @@ def object_to_http_body(model) return model if model.nil? || model.is_a?(String) local_body = nil if model.is_a?(Array) - local_body = model.map{|m| object_to_hash(m) } + local_body = model.map { |m| object_to_hash(m) } else local_body = object_to_hash(model) end diff --git a/jcapiv1/lib/jcapiv1/api_error.rb b/jcapiv1/lib/jcapiv1/api_error.rb index d8dbd8d..340c7bf 100644 --- a/jcapiv1/lib/jcapiv1/api_error.rb +++ b/jcapiv1/lib/jcapiv1/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end diff --git a/jcapiv1/lib/jcapiv1/configuration.rb b/jcapiv1/lib/jcapiv1/configuration.rb index cc16ca8..4daf4ef 100644 --- a/jcapiv1/lib/jcapiv1/configuration.rb +++ b/jcapiv1/lib/jcapiv1/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -170,7 +170,7 @@ def host=(host) def base_path=(base_path) # Add leading and trailing slashes to base_path @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = "" if @base_path == "/" + @base_path = '' if @base_path == '/' end def base_url diff --git a/jcapiv1/lib/jcapiv1/models/application.rb b/jcapiv1/lib/jcapiv1/models/application.rb index caad2e3..caa8fa3 100644 --- a/jcapiv1/lib/jcapiv1/models/application.rb +++ b/jcapiv1/lib/jcapiv1/models/application.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Application attr_accessor :_id @@ -33,7 +32,6 @@ class Application attr_accessor :config - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -70,7 +68,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -107,20 +105,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'config') self.config = attributes[:'config'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -161,7 +158,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -243,7 +240,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -254,7 +251,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config.rb b/jcapiv1/lib/jcapiv1/models/application_config.rb index 23abcb0..0d67140 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfig attr_accessor :idp_entity_id @@ -27,7 +26,6 @@ class ApplicationConfig attr_accessor :database_attributes - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -58,7 +56,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'idpEntityId') self.idp_entity_id = attributes[:'idpEntityId'] @@ -83,20 +81,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'databaseAttributes') self.database_attributes = attributes[:'databaseAttributes'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -134,7 +131,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -216,7 +213,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -227,7 +224,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb index c9efc9e..e0f83fd 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfigConstantAttributes attr_accessor :label @@ -33,7 +32,6 @@ class ApplicationConfigConstantAttributes attr_accessor :position - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -70,7 +68,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'label') self.label = attributes[:'label'] @@ -109,20 +107,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'position') self.position = attributes[:'position'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -163,7 +160,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -245,7 +242,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -256,7 +253,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb index d9f88a0..8a62e77 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfigConstantAttributesValue attr_accessor :name @@ -25,7 +24,6 @@ class ApplicationConfigConstantAttributesValue attr_accessor :read_only - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -75,20 +73,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'readOnly') self.read_only = attributes[:'readOnly'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -125,7 +122,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -218,7 +215,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb b/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb index 43d2d84..879ff16 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfigDatabaseAttributes attr_accessor :position - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'position') self.position = attributes[:'position'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb index e11eaf9..4cb088a 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfigIdpEntityId attr_accessor :label @@ -31,7 +30,6 @@ class ApplicationConfigIdpEntityId attr_accessor :position - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -66,7 +64,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'label') self.label = attributes[:'label'] @@ -99,20 +97,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'position') self.position = attributes[:'position'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -152,7 +149,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -234,7 +231,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb index 446864e..cba842a 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfigIdpEntityIdTooltip attr_accessor :template attr_accessor :variables - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'template') self.template = attributes[:'template'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'variables') self.variables = attributes[:'variables'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb index bfccb4a..6ea607e 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class ApplicationConfigIdpEntityIdTooltipVariables attr_accessor :icon attr_accessor :message - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'icon') self.icon = attributes[:'icon'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'message') self.message = attributes[:'message'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/applicationslist.rb b/jcapiv1/lib/jcapiv1/models/applicationslist.rb index 6edd545..c960a58 100644 --- a/jcapiv1/lib/jcapiv1/models/applicationslist.rb +++ b/jcapiv1/lib/jcapiv1/models/applicationslist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Applicationslist # The total number of applications. attr_accessor :total_count @@ -21,7 +20,6 @@ class Applicationslist # The list of applications. attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -55,20 +53,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -102,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,7 +192,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/body.rb b/jcapiv1/lib/jcapiv1/models/body.rb index 482836f..801bdfc 100644 --- a/jcapiv1/lib/jcapiv1/models/body.rb +++ b/jcapiv1/lib/jcapiv1/models/body.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Body attr_accessor :name @@ -21,7 +20,6 @@ class Body attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -61,7 +59,6 @@ def initialize(attributes = {}) self.tags = value end end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -69,14 +66,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @network_source_ip.nil? - invalid_properties.push("invalid value for 'network_source_ip', network_source_ip cannot be nil.") + invalid_properties.push('invalid value for "network_source_ip", network_source_ip cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -84,7 +81,7 @@ def list_invalid_properties def valid? return false if @name.nil? return false if @network_source_ip.nil? - return true + true end # Checks equality by comparing each attribute. @@ -119,7 +116,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -201,7 +198,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -212,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/body_1.rb b/jcapiv1/lib/jcapiv1/models/body_1.rb index e6e9173..38de6fa 100644 --- a/jcapiv1/lib/jcapiv1/models/body_1.rb +++ b/jcapiv1/lib/jcapiv1/models/body_1.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Body1 attr_accessor :exclusion attr_accessor :exclusion_until - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'exclusion') self.exclusion = attributes[:'exclusion'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'exclusionUntil') self.exclusion_until = attributes[:'exclusionUntil'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/command.rb b/jcapiv1/lib/jcapiv1/models/command.rb index 1b3b685..d15d977 100644 --- a/jcapiv1/lib/jcapiv1/models/command.rb +++ b/jcapiv1/lib/jcapiv1/models/command.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Command attr_accessor :name @@ -56,7 +55,6 @@ class Command # The ID of the organization. attr_accessor :organization - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -103,7 +101,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -166,7 +164,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'organization') self.organization = attributes[:'organization'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -174,14 +171,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @command.nil? - invalid_properties.push("invalid value for 'command', command cannot be nil.") + invalid_properties.push('invalid value for "command", command cannot be nil.') end if @user.nil? - invalid_properties.push("invalid value for 'user', user cannot be nil.") + invalid_properties.push('invalid value for "user", user cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -189,7 +186,7 @@ def list_invalid_properties def valid? return false if @command.nil? return false if @user.nil? - return true + true end # Checks equality by comparing each attribute. @@ -235,7 +232,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -317,7 +314,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -328,7 +325,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb b/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb index 208d744..4a47ef2 100644 --- a/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb +++ b/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb @@ -6,21 +6,19 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Commandfilereturn # The total number of commands files attr_accessor :total_count attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -43,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -52,20 +50,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'results') self.results = attributes[:'results'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -99,7 +96,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +178,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,7 +189,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb b/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb index 206f655..021aafc 100644 --- a/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb +++ b/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class CommandfilereturnResults # The file name. attr_accessor :name @@ -24,7 +23,6 @@ class CommandfilereturnResults # The ID of the file. attr_accessor :_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -62,20 +60,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'_id') self._id = attributes[:'_id'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -110,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -203,7 +200,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandresult.rb b/jcapiv1/lib/jcapiv1/models/commandresult.rb index 70a9d34..d8e318e 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresult.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresult.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Commandresult # The command that was executed on the system. attr_accessor :command @@ -54,7 +53,6 @@ class Commandresult # The ID of the command. attr_accessor :_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -101,7 +99,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'command') self.command = attributes[:'command'] @@ -160,20 +158,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'_id') self._id = attributes[:'_id'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -219,7 +216,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -301,7 +298,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -312,7 +309,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandresult_response.rb b/jcapiv1/lib/jcapiv1/models/commandresult_response.rb index 04364b7..ceb3c82 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresult_response.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresult_response.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class CommandresultResponse # ID of the response. attr_accessor :id @@ -23,7 +22,6 @@ class CommandresultResponse attr_accessor :data - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -61,20 +59,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'data') self.data = attributes[:'data'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -109,7 +106,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -191,7 +188,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -202,7 +199,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb b/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb index 3f5bfc7..72affde 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class CommandresultResponseData # The output of the command that was executed. attr_accessor :output @@ -21,7 +20,6 @@ class CommandresultResponseData # The stderr output from the command that ran. attr_accessor :exit_code - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'output') self.output = attributes[:'output'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'exitCode') self.exit_code = attributes[:'exitCode'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -100,7 +97,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -193,7 +190,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandresultslist.rb b/jcapiv1/lib/jcapiv1/models/commandresultslist.rb index 261dc6e..79f8403 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresultslist.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresultslist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Commandresultslist # The total number of command results attr_accessor :total_count @@ -21,7 +20,6 @@ class Commandresultslist # The list of command results attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -55,20 +53,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -102,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,7 +192,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandslist.rb b/jcapiv1/lib/jcapiv1/models/commandslist.rb index b2d0a09..7fe76b0 100644 --- a/jcapiv1/lib/jcapiv1/models/commandslist.rb +++ b/jcapiv1/lib/jcapiv1/models/commandslist.rb @@ -6,21 +6,19 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Commandslist # The total number of commands attr_accessor :total_count attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -43,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -52,20 +50,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'results') self.results = attributes[:'results'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -99,7 +96,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +178,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,7 +189,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/commandslist_results.rb b/jcapiv1/lib/jcapiv1/models/commandslist_results.rb index 7c21ae6..36528ce 100644 --- a/jcapiv1/lib/jcapiv1/models/commandslist_results.rb +++ b/jcapiv1/lib/jcapiv1/models/commandslist_results.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class CommandslistResults # The name of the Command. attr_accessor :name @@ -45,7 +44,6 @@ class CommandslistResults # The ID of the command. attr_accessor :_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -84,7 +82,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -125,20 +123,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'_id') self._id = attributes[:'_id'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -180,7 +177,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -262,7 +259,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -273,7 +270,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/errorresponse.rb b/jcapiv1/lib/jcapiv1/models/errorresponse.rb index 15391f6..8f586ba 100644 --- a/jcapiv1/lib/jcapiv1/models/errorresponse.rb +++ b/jcapiv1/lib/jcapiv1/models/errorresponse.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Errorresponse attr_accessor :message - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'message') self.message = attributes[:'message'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/fde.rb b/jcapiv1/lib/jcapiv1/models/fde.rb index af8d80d..3124040 100644 --- a/jcapiv1/lib/jcapiv1/models/fde.rb +++ b/jcapiv1/lib/jcapiv1/models/fde.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Fde attr_accessor :key_present attr_accessor :active - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'keyPresent') self.key_present = attributes[:'keyPresent'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'active') self.active = attributes[:'active'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/mfa.rb b/jcapiv1/lib/jcapiv1/models/mfa.rb index 88d5e6a..8704c81 100644 --- a/jcapiv1/lib/jcapiv1/models/mfa.rb +++ b/jcapiv1/lib/jcapiv1/models/mfa.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Mfa attr_accessor :exclusion @@ -21,7 +20,6 @@ class Mfa attr_accessor :configured - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'exclusion') self.exclusion = attributes[:'exclusion'] @@ -59,20 +57,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'configured') self.configured = attributes[:'configured'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -107,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,7 +197,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/organizationslist.rb b/jcapiv1/lib/jcapiv1/models/organizationslist.rb index 5567184..7e3cbed 100644 --- a/jcapiv1/lib/jcapiv1/models/organizationslist.rb +++ b/jcapiv1/lib/jcapiv1/models/organizationslist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Organizationslist # The total number of organizations. attr_accessor :total_count @@ -21,7 +20,6 @@ class Organizationslist # The list of organizations. attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -55,20 +53,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -102,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,7 +192,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb b/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb index 3e73dd9..1eefe6a 100644 --- a/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb +++ b/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class OrganizationslistResults # The ID of the organization. attr_accessor :_id @@ -24,7 +23,6 @@ class OrganizationslistResults # The organization logo image URL. attr_accessor :logo_url - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -62,20 +60,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'logoUrl') self.logo_url = attributes[:'logoUrl'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -110,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -203,7 +200,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserver.rb b/jcapiv1/lib/jcapiv1/models/radiusserver.rb index c1ac4a4..d8e0080 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserver.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserver.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Radiusserver attr_accessor :_id @@ -29,7 +28,6 @@ class Radiusserver attr_accessor :tag_names - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -62,7 +60,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -95,20 +93,19 @@ def initialize(attributes = {}) self.tag_names = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -147,7 +144,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -229,7 +226,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -240,7 +237,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb b/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb index 06f5601..567fa79 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Radiusserverpost attr_accessor :network_source_ip @@ -24,7 +23,6 @@ class Radiusserverpost # RADIUS shared secret between the server and client. attr_accessor :shared_secret - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -51,7 +49,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'networkSourceIp') self.network_source_ip = attributes[:'networkSourceIp'] @@ -70,7 +68,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'sharedSecret') self.shared_secret = attributes[:'sharedSecret'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -78,18 +75,18 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @network_source_ip.nil? - invalid_properties.push("invalid value for 'network_source_ip', network_source_ip cannot be nil.") + invalid_properties.push('invalid value for "network_source_ip", network_source_ip cannot be nil.') end if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @shared_secret.nil? - invalid_properties.push("invalid value for 'shared_secret', shared_secret cannot be nil.") + invalid_properties.push('invalid value for "shared_secret", shared_secret cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -98,7 +95,7 @@ def valid? return false if @network_source_ip.nil? return false if @name.nil? return false if @shared_secret.nil? - return true + true end # Checks equality by comparing each attribute. @@ -134,7 +131,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -216,7 +213,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -227,7 +224,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserverput.rb b/jcapiv1/lib/jcapiv1/models/radiusserverput.rb index 6c6e37d..4a3b849 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserverput.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserverput.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Radiusserverput attr_accessor :_id @@ -23,7 +22,6 @@ class Radiusserverput attr_accessor :tag_names - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -50,7 +48,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -69,20 +67,19 @@ def initialize(attributes = {}) self.tag_names = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -118,7 +115,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -200,7 +197,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -211,7 +208,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb b/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb index 4b8ab89..bb0c057 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Radiusserverslist attr_accessor :total_count attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -100,7 +97,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -193,7 +190,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/search.rb b/jcapiv1/lib/jcapiv1/models/search.rb index 88256e8..4165550 100644 --- a/jcapiv1/lib/jcapiv1/models/search.rb +++ b/jcapiv1/lib/jcapiv1/models/search.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Search attr_accessor :filter attr_accessor :fields - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'filter') self.filter = attributes[:'filter'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'fields') self.fields = attributes[:'fields'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/sshkeylist.rb b/jcapiv1/lib/jcapiv1/models/sshkeylist.rb index 4f57c6a..5b61759 100644 --- a/jcapiv1/lib/jcapiv1/models/sshkeylist.rb +++ b/jcapiv1/lib/jcapiv1/models/sshkeylist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Sshkeylist # The date the SSH key was created. attr_accessor :create_date @@ -27,7 +26,6 @@ class Sshkeylist # The name of the SSH key. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'create_date') self.create_date = attributes[:'create_date'] @@ -71,20 +69,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -120,7 +117,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -202,7 +199,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -213,7 +210,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/sshkeypost.rb b/jcapiv1/lib/jcapiv1/models/sshkeypost.rb index 8a550db..a1021c9 100644 --- a/jcapiv1/lib/jcapiv1/models/sshkeypost.rb +++ b/jcapiv1/lib/jcapiv1/models/sshkeypost.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Sshkeypost # The Public SSH key. attr_accessor :public_key @@ -21,7 +20,6 @@ class Sshkeypost # The name of the SSH key. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'public_key') self.public_key = attributes[:'public_key'] @@ -53,7 +51,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -61,14 +58,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @public_key.nil? - invalid_properties.push("invalid value for 'public_key', public_key cannot be nil.") + invalid_properties.push('invalid value for "public_key", public_key cannot be nil.') end if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -76,7 +73,7 @@ def list_invalid_properties def valid? return false if @public_key.nil? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -110,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -203,7 +200,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/system.rb b/jcapiv1/lib/jcapiv1/models/system.rb index ba58d39..bd4780e 100644 --- a/jcapiv1/lib/jcapiv1/models/system.rb +++ b/jcapiv1/lib/jcapiv1/models/system.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class System attr_accessor :organization @@ -67,7 +66,6 @@ class System attr_accessor :amazon_instance_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -138,7 +136,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'organization') self.organization = attributes[:'organization'] @@ -251,20 +249,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'amazonInstanceID') self.amazon_instance_id = attributes[:'amazonInstanceID'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -322,7 +319,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -404,7 +401,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -415,7 +412,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb b/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb index 3e77097..c0153d3 100644 --- a/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb +++ b/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemNetworkInterfaces attr_accessor :address @@ -23,7 +22,6 @@ class SystemNetworkInterfaces attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -50,7 +48,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'address') self.address = attributes[:'address'] @@ -67,20 +65,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -116,7 +113,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -198,7 +195,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -209,7 +206,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb b/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb index 698842a..e99160d 100644 --- a/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb +++ b/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemSshdParams attr_accessor :name attr_accessor :value - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'value') self.value = attributes[:'value'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemput.rb b/jcapiv1/lib/jcapiv1/models/systemput.rb index dd56217..30b07ab 100644 --- a/jcapiv1/lib/jcapiv1/models/systemput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemput.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemput attr_accessor :display_name @@ -29,7 +28,6 @@ class Systemput attr_accessor :tags - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -62,7 +60,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'displayName') self.display_name = attributes[:'displayName'] @@ -95,20 +93,19 @@ def initialize(attributes = {}) self.tags = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -147,7 +144,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -229,7 +226,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -240,7 +237,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb b/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb index 64a28f0..7c1030b 100644 --- a/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb +++ b/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemputAgentBoundMessages attr_accessor :cmd - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'cmd') self.cmd = attributes[:'cmd'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemslist.rb b/jcapiv1/lib/jcapiv1/models/systemslist.rb index 22cf813..567bbb3 100644 --- a/jcapiv1/lib/jcapiv1/models/systemslist.rb +++ b/jcapiv1/lib/jcapiv1/models/systemslist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemslist # The total number of systems. attr_accessor :total_count @@ -21,7 +20,6 @@ class Systemslist # The list of systems. attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -55,20 +53,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -102,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,7 +192,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuser.rb b/jcapiv1/lib/jcapiv1/models/systemuser.rb index fe24828..019880d 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuser.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuser.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuser attr_accessor :email @@ -96,7 +95,6 @@ class Systemuser attr_accessor :mfa - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -195,7 +193,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -362,7 +360,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -370,74 +367,74 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@email.nil? && @email.to_s.length > 1024 - invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') end if !@username.nil? && @username.to_s.length > 1024 - invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') end if !@associated_tag_count.nil? && @associated_tag_count < 0 - invalid_properties.push("invalid value for 'associated_tag_count', must be greater than or equal to 0.") + invalid_properties.push('invalid value for "associated_tag_count", must be greater than or equal to 0.') end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") + invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -460,15 +457,14 @@ def valid? return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 return false if !@job_title.nil? && @job_title.to_s.length > 1024 return false if !@department.nil? && @department.to_s.length > 1024 - return true + true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) - if !email.nil? && email.to_s.length > 1024 - fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' end @email = email @@ -477,9 +473,8 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] username Value to be assigned def username=(username) - if !username.nil? && username.to_s.length > 1024 - fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' end @username = username @@ -488,9 +483,8 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) - if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' end @unix_uid = unix_uid @@ -499,9 +493,8 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) - if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' end @unix_guid = unix_guid @@ -510,9 +503,8 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) - if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' end @firstname = firstname @@ -521,9 +513,8 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) - if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' end @lastname = lastname @@ -532,9 +523,8 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] associated_tag_count Value to be assigned def associated_tag_count=(associated_tag_count) - if !associated_tag_count.nil? && associated_tag_count < 0 - fail ArgumentError, "invalid value for 'associated_tag_count', must be greater than or equal to 0." + fail ArgumentError, 'invalid value for "associated_tag_count", must be greater than or equal to 0.' end @associated_tag_count = associated_tag_count @@ -543,9 +533,8 @@ def associated_tag_count=(associated_tag_count) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) - if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' end @middlename = middlename @@ -554,9 +543,8 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) - if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' end @displayname = displayname @@ -565,9 +553,8 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) - if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' end @description = description @@ -576,9 +563,8 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) - if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' end @location = location @@ -587,9 +573,8 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) - if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' end @cost_center = cost_center @@ -598,9 +583,8 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) - if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' end @employee_type = employee_type @@ -609,9 +593,8 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) - if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' end @company = company @@ -620,9 +603,8 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) - if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." + fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' end @employee_identifier = employee_identifier @@ -631,9 +613,8 @@ def employee_identifier=(employee_identifier) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) - if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' end @job_title = job_title @@ -642,9 +623,8 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) - if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' end @department = department @@ -719,7 +699,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -801,7 +781,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -812,7 +792,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb b/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb index 4ea0f81..2295a36 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb @@ -6,16 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuserbinding - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -34,21 +32,20 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} - + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -80,7 +77,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -162,7 +159,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -173,7 +170,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb b/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb index 0239ed3..dff498a 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuserbindingsput # The list of systemuser ids to be added to this system. attr_accessor :add @@ -21,7 +20,6 @@ class Systemuserbindingsput # The list of systemuser ids to be removed from this system. attr_accessor :remove - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'add') if (value = attributes[:'add']).is_a?(Array) @@ -57,7 +55,6 @@ def initialize(attributes = {}) self.remove = value end end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -65,14 +62,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @add.nil? - invalid_properties.push("invalid value for 'add', add cannot be nil.") + invalid_properties.push('invalid value for "add", add cannot be nil.') end if @remove.nil? - invalid_properties.push("invalid value for 'remove', remove cannot be nil.") + invalid_properties.push('invalid value for "remove", remove cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -80,7 +77,7 @@ def list_invalid_properties def valid? return false if @add.nil? return false if @remove.nil? - return true + true end # Checks equality by comparing each attribute. @@ -114,7 +111,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -196,7 +193,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -207,7 +204,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput.rb b/jcapiv1/lib/jcapiv1/models/systemuserput.rb index fb6aa6f..40748af 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuserput attr_accessor :email @@ -89,7 +88,6 @@ class Systemuserput attr_accessor :mfa - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -180,7 +178,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -337,7 +335,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -345,78 +342,78 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @email.nil? - invalid_properties.push("invalid value for 'email', email cannot be nil.") + invalid_properties.push('invalid value for "email", email cannot be nil.') end if @email.to_s.length > 1024 - invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') end if @username.nil? - invalid_properties.push("invalid value for 'username', username cannot be nil.") + invalid_properties.push('invalid value for "username", username cannot be nil.') end if @username.to_s.length > 1024 - invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") + invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -440,18 +437,18 @@ def valid? return false if !@employee_type.nil? && @employee_type.to_s.length > 1024 return false if !@company.nil? && @company.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - return true + true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) if email.nil? - fail ArgumentError, "email cannot be nil" + fail ArgumentError, 'email cannot be nil' end if email.to_s.length > 1024 - fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' end @email = email @@ -461,11 +458,11 @@ def email=(email) # @param [Object] username Value to be assigned def username=(username) if username.nil? - fail ArgumentError, "username cannot be nil" + fail ArgumentError, 'username cannot be nil' end if username.to_s.length > 1024 - fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' end @username = username @@ -474,9 +471,8 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) - if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' end @unix_uid = unix_uid @@ -485,9 +481,8 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) - if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' end @unix_guid = unix_guid @@ -496,9 +491,8 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) - if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' end @firstname = firstname @@ -507,9 +501,8 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) - if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' end @lastname = lastname @@ -518,9 +511,8 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) - if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' end @job_title = job_title @@ -529,9 +521,8 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) - if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' end @department = department @@ -540,9 +531,8 @@ def department=(department) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) - if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' end @middlename = middlename @@ -551,9 +541,8 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) - if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' end @displayname = displayname @@ -562,9 +551,8 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) - if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' end @description = description @@ -573,9 +561,8 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) - if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' end @location = location @@ -584,9 +571,8 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) - if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' end @cost_center = cost_center @@ -595,9 +581,8 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) - if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' end @employee_type = employee_type @@ -606,9 +591,8 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) - if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' end @company = company @@ -617,9 +601,8 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) - if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." + fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' end @employee_identifier = employee_identifier @@ -690,7 +673,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -772,7 +755,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -783,7 +766,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb b/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb index ce06e00..4042d0f 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemuserputAddresses attr_accessor :type @@ -31,7 +30,6 @@ class SystemuserputAddresses attr_accessor :country - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -66,7 +64,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -99,7 +97,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -107,38 +104,38 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') end if !@po_box.nil? && @po_box.to_s.length > 1024 - invalid_properties.push("invalid value for 'po_box', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "po_box", the character length must be smaller than or equal to 1024.') end if !@extended_address.nil? && @extended_address.to_s.length > 1024 - invalid_properties.push("invalid value for 'extended_address', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "extended_address", the character length must be smaller than or equal to 1024.') end if !@street_address.nil? && @street_address.to_s.length > 1024 - invalid_properties.push("invalid value for 'street_address', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "street_address", the character length must be smaller than or equal to 1024.') end if !@locality.nil? && @locality.to_s.length > 1024 - invalid_properties.push("invalid value for 'locality', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 1024.') end if !@region.nil? && @region.to_s.length > 1024 - invalid_properties.push("invalid value for 'region', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "region", the character length must be smaller than or equal to 1024.') end if !@postal_code.nil? && @postal_code.to_s.length > 1024 - invalid_properties.push("invalid value for 'postal_code', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 1024.') end if !@country.nil? && @country.to_s.length > 1024 - invalid_properties.push("invalid value for 'country', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 1024.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -152,15 +149,14 @@ def valid? return false if !@region.nil? && @region.to_s.length > 1024 return false if !@postal_code.nil? && @postal_code.to_s.length > 1024 return false if !@country.nil? && @country.to_s.length > 1024 - return true + true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) - if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' end @type = type @@ -169,9 +165,8 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] po_box Value to be assigned def po_box=(po_box) - if !po_box.nil? && po_box.to_s.length > 1024 - fail ArgumentError, "invalid value for 'po_box', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "po_box", the character length must be smaller than or equal to 1024.' end @po_box = po_box @@ -180,9 +175,8 @@ def po_box=(po_box) # Custom attribute writer method with validation # @param [Object] extended_address Value to be assigned def extended_address=(extended_address) - if !extended_address.nil? && extended_address.to_s.length > 1024 - fail ArgumentError, "invalid value for 'extended_address', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "extended_address", the character length must be smaller than or equal to 1024.' end @extended_address = extended_address @@ -191,9 +185,8 @@ def extended_address=(extended_address) # Custom attribute writer method with validation # @param [Object] street_address Value to be assigned def street_address=(street_address) - if !street_address.nil? && street_address.to_s.length > 1024 - fail ArgumentError, "invalid value for 'street_address', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "street_address", the character length must be smaller than or equal to 1024.' end @street_address = street_address @@ -202,9 +195,8 @@ def street_address=(street_address) # Custom attribute writer method with validation # @param [Object] locality Value to be assigned def locality=(locality) - if !locality.nil? && locality.to_s.length > 1024 - fail ArgumentError, "invalid value for 'locality', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "locality", the character length must be smaller than or equal to 1024.' end @locality = locality @@ -213,9 +205,8 @@ def locality=(locality) # Custom attribute writer method with validation # @param [Object] region Value to be assigned def region=(region) - if !region.nil? && region.to_s.length > 1024 - fail ArgumentError, "invalid value for 'region', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "region", the character length must be smaller than or equal to 1024.' end @region = region @@ -224,9 +215,8 @@ def region=(region) # Custom attribute writer method with validation # @param [Object] postal_code Value to be assigned def postal_code=(postal_code) - if !postal_code.nil? && postal_code.to_s.length > 1024 - fail ArgumentError, "invalid value for 'postal_code', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 1024.' end @postal_code = postal_code @@ -235,9 +225,8 @@ def postal_code=(postal_code) # Custom attribute writer method with validation # @param [Object] country Value to be assigned def country=(country) - if !country.nil? && country.to_s.length > 1024 - fail ArgumentError, "invalid value for 'country', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 1024.' end @country = country @@ -280,7 +269,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -362,7 +351,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -373,7 +362,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb b/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb index f957312..f042113 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemuserputPhoneNumbers attr_accessor :type attr_accessor :number - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -51,7 +49,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -59,14 +56,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') end if !@number.nil? && @number.to_s.length > 1024 - invalid_properties.push("invalid value for 'number', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "number", the character length must be smaller than or equal to 1024.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -74,15 +71,14 @@ def list_invalid_properties def valid? return false if !@type.nil? && @type.to_s.length > 1024 return false if !@number.nil? && @number.to_s.length > 1024 - return true + true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) - if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' end @type = type @@ -91,9 +87,8 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] number Value to be assigned def number=(number) - if !number.nil? && number.to_s.length > 1024 - fail ArgumentError, "invalid value for 'number', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "number", the character length must be smaller than or equal to 1024.' end @number = number @@ -130,7 +125,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -212,7 +207,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -223,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb index 9ab5ade..2007582 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuserputpost attr_accessor :email @@ -90,7 +89,6 @@ class Systemuserputpost attr_accessor :mfa - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -183,7 +181,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -342,7 +340,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -350,34 +347,34 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @email.nil? - invalid_properties.push("invalid value for 'email', email cannot be nil.") + invalid_properties.push('invalid value for "email", email cannot be nil.') end if @email.to_s.length > 1024 - invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') end if @username.nil? - invalid_properties.push("invalid value for 'username', username cannot be nil.") + invalid_properties.push('invalid value for "username", username cannot be nil.') end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") + invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -390,18 +387,18 @@ def valid? return false if !@unix_guid.nil? && @unix_guid < 1 return false if !@description.nil? && @description.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - return true + true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) if email.nil? - fail ArgumentError, "email cannot be nil" + fail ArgumentError, 'email cannot be nil' end if email.to_s.length > 1024 - fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' end @email = email @@ -410,9 +407,8 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) - if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' end @unix_uid = unix_uid @@ -421,9 +417,8 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) - if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' end @unix_guid = unix_guid @@ -432,9 +427,8 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) - if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' end @description = description @@ -443,9 +437,8 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) - if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." + fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' end @employee_identifier = employee_identifier @@ -517,7 +510,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -599,7 +592,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -610,7 +603,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb index 6b53277..d524dc8 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemuserputpostAddresses attr_accessor :type @@ -31,7 +30,6 @@ class SystemuserputpostAddresses attr_accessor :country - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -66,7 +64,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -99,20 +97,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -152,7 +149,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -234,7 +231,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb index 62346d7..ad221a9 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemuserputpostPhoneNumbers attr_accessor :type attr_accessor :number - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb index 76bf886..4c9bf0c 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuserreturn attr_accessor :email @@ -102,7 +101,6 @@ class Systemuserreturn attr_accessor :mfa - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -207,7 +205,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -392,7 +390,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -400,74 +397,74 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@email.nil? && @email.to_s.length > 1024 - invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') end if !@username.nil? && @username.to_s.length > 1024 - invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') end if !@bad_login_attempts.nil? && @bad_login_attempts < 0 - invalid_properties.push("invalid value for 'bad_login_attempts', must be greater than or equal to 0.") + invalid_properties.push('invalid value for "bad_login_attempts", must be greater than or equal to 0.') end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") + invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -490,15 +487,14 @@ def valid? return false if !@employee_type.nil? && @employee_type.to_s.length > 1024 return false if !@company.nil? && @company.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - return true + true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) - if !email.nil? && email.to_s.length > 1024 - fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' end @email = email @@ -507,9 +503,8 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] username Value to be assigned def username=(username) - if !username.nil? && username.to_s.length > 1024 - fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' end @username = username @@ -518,9 +513,8 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) - if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' end @unix_uid = unix_uid @@ -529,9 +523,8 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) - if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' end @unix_guid = unix_guid @@ -540,9 +533,8 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) - if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' end @firstname = firstname @@ -551,9 +543,8 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) - if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' end @lastname = lastname @@ -562,9 +553,8 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) - if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' end @job_title = job_title @@ -573,9 +563,8 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) - if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' end @department = department @@ -584,9 +573,8 @@ def department=(department) # Custom attribute writer method with validation # @param [Object] bad_login_attempts Value to be assigned def bad_login_attempts=(bad_login_attempts) - if !bad_login_attempts.nil? && bad_login_attempts < 0 - fail ArgumentError, "invalid value for 'bad_login_attempts', must be greater than or equal to 0." + fail ArgumentError, 'invalid value for "bad_login_attempts", must be greater than or equal to 0.' end @bad_login_attempts = bad_login_attempts @@ -595,9 +583,8 @@ def bad_login_attempts=(bad_login_attempts) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) - if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' end @middlename = middlename @@ -606,9 +593,8 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) - if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' end @displayname = displayname @@ -617,9 +603,8 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) - if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' end @description = description @@ -628,9 +613,8 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) - if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' end @location = location @@ -639,9 +623,8 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) - if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' end @cost_center = cost_center @@ -650,9 +633,8 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) - if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' end @employee_type = employee_type @@ -661,9 +643,8 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) - if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' end @company = company @@ -672,9 +653,8 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) - if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." + fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' end @employee_identifier = employee_identifier @@ -752,7 +732,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -834,7 +814,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -845,7 +825,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb index 05b7e2e..16bb92a 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemuserreturnAddresses attr_accessor :id @@ -33,7 +32,6 @@ class SystemuserreturnAddresses attr_accessor :country - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -70,7 +68,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -107,7 +105,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -115,38 +112,38 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') end if !@po_box.nil? && @po_box.to_s.length > 1024 - invalid_properties.push("invalid value for 'po_box', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "po_box", the character length must be smaller than or equal to 1024.') end if !@extended_address.nil? && @extended_address.to_s.length > 1024 - invalid_properties.push("invalid value for 'extended_address', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "extended_address", the character length must be smaller than or equal to 1024.') end if !@street_address.nil? && @street_address.to_s.length > 1024 - invalid_properties.push("invalid value for 'street_address', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "street_address", the character length must be smaller than or equal to 1024.') end if !@locality.nil? && @locality.to_s.length > 1024 - invalid_properties.push("invalid value for 'locality', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 1024.') end if !@region.nil? && @region.to_s.length > 1024 - invalid_properties.push("invalid value for 'region', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "region", the character length must be smaller than or equal to 1024.') end if !@postal_code.nil? && @postal_code.to_s.length > 1024 - invalid_properties.push("invalid value for 'postal_code', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 1024.') end if !@country.nil? && @country.to_s.length > 1024 - invalid_properties.push("invalid value for 'country', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 1024.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -160,15 +157,14 @@ def valid? return false if !@region.nil? && @region.to_s.length > 1024 return false if !@postal_code.nil? && @postal_code.to_s.length > 1024 return false if !@country.nil? && @country.to_s.length > 1024 - return true + true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) - if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' end @type = type @@ -177,9 +173,8 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] po_box Value to be assigned def po_box=(po_box) - if !po_box.nil? && po_box.to_s.length > 1024 - fail ArgumentError, "invalid value for 'po_box', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "po_box", the character length must be smaller than or equal to 1024.' end @po_box = po_box @@ -188,9 +183,8 @@ def po_box=(po_box) # Custom attribute writer method with validation # @param [Object] extended_address Value to be assigned def extended_address=(extended_address) - if !extended_address.nil? && extended_address.to_s.length > 1024 - fail ArgumentError, "invalid value for 'extended_address', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "extended_address", the character length must be smaller than or equal to 1024.' end @extended_address = extended_address @@ -199,9 +193,8 @@ def extended_address=(extended_address) # Custom attribute writer method with validation # @param [Object] street_address Value to be assigned def street_address=(street_address) - if !street_address.nil? && street_address.to_s.length > 1024 - fail ArgumentError, "invalid value for 'street_address', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "street_address", the character length must be smaller than or equal to 1024.' end @street_address = street_address @@ -210,9 +203,8 @@ def street_address=(street_address) # Custom attribute writer method with validation # @param [Object] locality Value to be assigned def locality=(locality) - if !locality.nil? && locality.to_s.length > 1024 - fail ArgumentError, "invalid value for 'locality', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "locality", the character length must be smaller than or equal to 1024.' end @locality = locality @@ -221,9 +213,8 @@ def locality=(locality) # Custom attribute writer method with validation # @param [Object] region Value to be assigned def region=(region) - if !region.nil? && region.to_s.length > 1024 - fail ArgumentError, "invalid value for 'region', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "region", the character length must be smaller than or equal to 1024.' end @region = region @@ -232,9 +223,8 @@ def region=(region) # Custom attribute writer method with validation # @param [Object] postal_code Value to be assigned def postal_code=(postal_code) - if !postal_code.nil? && postal_code.to_s.length > 1024 - fail ArgumentError, "invalid value for 'postal_code', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 1024.' end @postal_code = postal_code @@ -243,9 +233,8 @@ def postal_code=(postal_code) # Custom attribute writer method with validation # @param [Object] country Value to be assigned def country=(country) - if !country.nil? && country.to_s.length > 1024 - fail ArgumentError, "invalid value for 'country', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 1024.' end @country = country @@ -289,7 +278,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -371,7 +360,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -382,7 +371,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb index 462aea9..e5d6eaf 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class SystemuserreturnPhoneNumbers attr_accessor :id @@ -21,7 +20,6 @@ class SystemuserreturnPhoneNumbers attr_accessor :number - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -59,7 +57,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -67,14 +64,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') end if !@number.nil? && @number.to_s.length > 1024 - invalid_properties.push("invalid value for 'number', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "number", the character length must be smaller than or equal to 1024.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -82,15 +79,14 @@ def list_invalid_properties def valid? return false if !@type.nil? && @type.to_s.length > 1024 return false if !@number.nil? && @number.to_s.length > 1024 - return true + true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) - if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' end @type = type @@ -99,9 +95,8 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] number Value to be assigned def number=(number) - if !number.nil? && number.to_s.length > 1024 - fail ArgumentError, "invalid value for 'number', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "number", the character length must be smaller than or equal to 1024.' end @number = number @@ -139,7 +134,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -221,7 +216,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -232,7 +227,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserslist.rb b/jcapiv1/lib/jcapiv1/models/systemuserslist.rb index ad68c65..66cf70b 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserslist.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserslist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Systemuserslist # The total number of system users. attr_accessor :total_count @@ -21,7 +20,6 @@ class Systemuserslist # The list of system users. attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -55,20 +53,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -102,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,7 +192,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/tag.rb b/jcapiv1/lib/jcapiv1/models/tag.rb index 893878e..cb40d22 100644 --- a/jcapiv1/lib/jcapiv1/models/tag.rb +++ b/jcapiv1/lib/jcapiv1/models/tag.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Tag attr_accessor :_id @@ -42,7 +41,6 @@ class Tag attr_accessor :group_name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -85,7 +83,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -140,20 +138,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'groupName') self.group_name = attributes[:'groupName'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -197,7 +194,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -279,7 +276,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -290,7 +287,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/tagpost.rb b/jcapiv1/lib/jcapiv1/models/tagpost.rb index ebd8ae1..244fe70 100644 --- a/jcapiv1/lib/jcapiv1/models/tagpost.rb +++ b/jcapiv1/lib/jcapiv1/models/tagpost.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Tagpost # A unique name for the Tag. attr_accessor :name @@ -38,7 +37,6 @@ class Tagpost attr_accessor :group_name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -77,7 +75,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -124,7 +122,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'groupName') self.group_name = attributes[:'groupName'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -132,17 +129,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -184,7 +181,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -266,7 +263,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -277,7 +274,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/tagput.rb b/jcapiv1/lib/jcapiv1/models/tagput.rb index a78af12..d2d0b0f 100644 --- a/jcapiv1/lib/jcapiv1/models/tagput.rb +++ b/jcapiv1/lib/jcapiv1/models/tagput.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Tagput # A unique name for the Tag. attr_accessor :name @@ -38,7 +37,6 @@ class Tagput attr_accessor :group_name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -77,7 +75,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -124,20 +122,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'groupName') self.group_name = attributes[:'groupName'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -179,7 +176,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -261,7 +258,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -272,7 +269,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/tagslist.rb b/jcapiv1/lib/jcapiv1/models/tagslist.rb index 9924d7e..6d648ee 100644 --- a/jcapiv1/lib/jcapiv1/models/tagslist.rb +++ b/jcapiv1/lib/jcapiv1/models/tagslist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Tagslist # The total number of tags. attr_accessor :total_count @@ -21,7 +20,6 @@ class Tagslist # The list of tags. attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -55,20 +53,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -102,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,7 +192,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/usersystembinding.rb b/jcapiv1/lib/jcapiv1/models/usersystembinding.rb index f164990..28d2f30 100644 --- a/jcapiv1/lib/jcapiv1/models/usersystembinding.rb +++ b/jcapiv1/lib/jcapiv1/models/usersystembinding.rb @@ -6,16 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Usersystembinding - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -34,21 +32,20 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} - + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -80,7 +77,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -162,7 +159,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -173,7 +170,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb b/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb index a87a555..cb1d240 100644 --- a/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb +++ b/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv1 - class Usersystembindingsput # The list of system ids to be added to this user. attr_accessor :add @@ -21,7 +20,6 @@ class Usersystembindingsput # The list of system ids to be removed from this user. attr_accessor :remove - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'add') if (value = attributes[:'add']).is_a?(Array) @@ -57,7 +55,6 @@ def initialize(attributes = {}) self.remove = value end end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -65,14 +62,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @add.nil? - invalid_properties.push("invalid value for 'add', add cannot be nil.") + invalid_properties.push('invalid value for "add", add cannot be nil.') end if @remove.nil? - invalid_properties.push("invalid value for 'remove', remove cannot be nil.") + invalid_properties.push('invalid value for "remove", remove cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -80,7 +77,7 @@ def list_invalid_properties def valid? return false if @add.nil? return false if @remove.nil? - return true + true end # Checks equality by comparing each attribute. @@ -114,7 +111,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -196,7 +193,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -207,7 +204,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv1/lib/jcapiv1/version.rb b/jcapiv1/lib/jcapiv1/version.rb index 7987a08..70dcae1 100644 --- a/jcapiv1/lib/jcapiv1/version.rb +++ b/jcapiv1/lib/jcapiv1/version.rb @@ -6,10 +6,10 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end module JCAPIv1 - VERSION = "1.4.0" + VERSION = '1.4.0' end diff --git a/jcapiv1/spec/api/applications_api_spec.rb b/jcapiv1/spec/api/applications_api_spec.rb index 740eeb4..dc08084 100644 --- a/jcapiv1/spec/api/applications_api_spec.rb +++ b/jcapiv1/spec/api/applications_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Applicationslist] describe 'applications_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/command_results_api_spec.rb b/jcapiv1/spec/api/command_results_api_spec.rb index ec2aeaf..f815362 100644 --- a/jcapiv1/spec/api/command_results_api_spec.rb +++ b/jcapiv1/spec/api/command_results_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [Commandresult] describe 'command_results_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [Commandresult] describe 'command_results_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Commandresultslist] describe 'command_results_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/command_triggers_api_spec.rb b/jcapiv1/spec/api/command_triggers_api_spec.rb index d03a105..5a88697 100644 --- a/jcapiv1/spec/api/command_triggers_api_spec.rb +++ b/jcapiv1/spec/api/command_triggers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'command_trigger_webhook_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/commands_api_spec.rb b/jcapiv1/spec/api/commands_api_spec.rb index 62e012d..a4e7c9a 100644 --- a/jcapiv1/spec/api/commands_api_spec.rb +++ b/jcapiv1/spec/api/commands_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Commandfilereturn] describe 'command_file_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -60,7 +60,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'commands_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -77,7 +77,7 @@ # @option opts [String] :x_org_id # @return [Command] describe 'commands_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -96,7 +96,7 @@ # @option opts [String] :x_org_id # @return [Commandslist] describe 'commands_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -111,7 +111,7 @@ # @option opts [String] :x_org_id # @return [Command] describe 'commands_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -127,7 +127,7 @@ # @option opts [String] :x_org_id # @return [Command] describe 'commands_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/organizations_api_spec.rb b/jcapiv1/spec/api/organizations_api_spec.rb index 445f6b9..9617dc8 100644 --- a/jcapiv1/spec/api/organizations_api_spec.rb +++ b/jcapiv1/spec/api/organizations_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -46,7 +46,7 @@ # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @return [Organizationslist] describe 'organization_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/radius_servers_api_spec.rb b/jcapiv1/spec/api/radius_servers_api_spec.rb index 5190fe5..5921518 100644 --- a/jcapiv1/spec/api/radius_servers_api_spec.rb +++ b/jcapiv1/spec/api/radius_servers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Radiusserverslist] describe 'radius_servers_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [Radiusserverslist] describe 'radius_servers_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -76,7 +76,7 @@ # @option opts [String] :x_org_id # @return [Radiusserverput] describe 'radius_servers_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/search_api_spec.rb b/jcapiv1/spec/api/search_api_spec.rb index d60c962..cffa414 100644 --- a/jcapiv1/spec/api/search_api_spec.rb +++ b/jcapiv1/spec/api/search_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [Integer] :skip The offset into the records to return. # @return [Organizationslist] describe 'search_organizations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -64,7 +64,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] describe 'search_systems_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -83,7 +83,7 @@ # @option opts [String] :x_org_id # @return [Systemuserslist] describe 'search_systemusers_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/systems_api_spec.rb b/jcapiv1/spec/api/systems_api_spec.rb index 3dc1a99..9e378e9 100644 --- a/jcapiv1/spec/api/systems_api_spec.rb +++ b/jcapiv1/spec/api/systems_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -44,7 +44,7 @@ # @option opts [String] :x_org_id # @return [System] describe 'systems_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @option opts [String] :x_org_id # @return [System] describe 'systems_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -83,7 +83,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] describe 'systems_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -101,7 +101,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'systems_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -121,7 +121,7 @@ # @option opts [String] :x_org_id # @return [Systemuserbinding] describe 'systems_systemusers_binding_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -137,7 +137,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'systems_systemusers_binding_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/systemusers_api_spec.rb b/jcapiv1/spec/api/systemusers_api_spec.rb index 383955b..37f7d77 100644 --- a/jcapiv1/spec/api/systemusers_api_spec.rb +++ b/jcapiv1/spec/api/systemusers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'sshkey_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -57,7 +57,7 @@ # @option opts [String] :x_org_id # @return [Sshkeylist] describe 'sshkey_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -73,7 +73,7 @@ # @option opts [String] :x_org_id # @return [Sshkeylist] describe 'sshkey_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -88,7 +88,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -105,7 +105,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Systemuserslist] describe 'systemusers_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -140,7 +140,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -156,7 +156,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -171,7 +171,7 @@ # @option opts [String] :x_org_id # @return [String] describe 'systemusers_resetmfa test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -191,7 +191,7 @@ # @option opts [String] :x_org_id # @return [Object] describe 'systemusers_systems_binding_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -207,7 +207,7 @@ # @option opts [String] :x_org_id # @return [Usersystembinding] describe 'systemusers_systems_binding_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -220,7 +220,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'systemusers_unlock test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/tags_api_spec.rb b/jcapiv1/spec/api/tags_api_spec.rb index 4a4ac91..c082386 100644 --- a/jcapiv1/spec/api/tags_api_spec.rb +++ b/jcapiv1/spec/api/tags_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -41,7 +41,7 @@ # @param [Hash] opts the optional parameters # @return [Tag] describe 'tags_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -60,7 +60,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Tag] describe 'tags_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Tagslist] describe 'tags_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -92,7 +92,7 @@ # @option opts [Tagpost] :body # @return [Tag] describe 'tags_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -107,7 +107,7 @@ # @option opts [Tagput] :body # @return [Tag] describe 'tags_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api_client_spec.rb b/jcapiv1/spec/api_client_spec.rb index 1fd9533..045b7ec 100644 --- a/jcapiv1/spec/api_client_spec.rb +++ b/jcapiv1/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -51,11 +51,11 @@ end end - describe "params_encoding in #build_request" do + describe 'params_encoding in #build_request' do let(:config) { JCAPIv1::Configuration.new } let(:api_client) { JCAPIv1::ApiClient.new(config) } - it "defaults to nil" do + it 'defaults to nil' do expect(JCAPIv1::Configuration.default.params_encoding).to eq(nil) expect(config.params_encoding).to eq(nil) @@ -63,18 +63,18 @@ expect(request.options[:params_encoding]).to eq(nil) end - it "can be customized" do + it 'can be customized' do config.params_encoding = :multi request = api_client.build_request(:get, '/test') expect(request.options[:params_encoding]).to eq(:multi) end end - describe "timeout in #build_request" do + describe 'timeout in #build_request' do let(:config) { JCAPIv1::Configuration.new } let(:api_client) { JCAPIv1::ApiClient.new(config) } - it "defaults to 0" do + it 'defaults to 0' do expect(JCAPIv1::Configuration.default.timeout).to eq(0) expect(config.timeout).to eq(0) @@ -82,88 +82,88 @@ expect(request.options[:timeout]).to eq(0) end - it "can be customized" do + it 'can be customized' do config.timeout = 100 request = api_client.build_request(:get, '/test') expect(request.options[:timeout]).to eq(100) end end - describe "#deserialize" do + describe '#deserialize' do it "handles Array" do api_client = JCAPIv1::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '[12, 34]') data = api_client.deserialize(response, 'Array') expect(data).to be_instance_of(Array) expect(data).to eq([12, 34]) end - it "handles Array>" do + it 'handles Array>' do api_client = JCAPIv1::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '[[12, 34], [56]]') data = api_client.deserialize(response, 'Array>') expect(data).to be_instance_of(Array) expect(data).to eq([[12, 34], [56]]) end - it "handles Hash" do + it 'handles Hash' do api_client = JCAPIv1::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '{"message": "Hello"}') data = api_client.deserialize(response, 'Hash') expect(data).to be_instance_of(Hash) - expect(data).to eq({:message => 'Hello'}) + expect(data).to eq(:message => 'Hello') end end describe "#object_to_hash" do - it "ignores nils and includes empty arrays" do + it 'ignores nils and includes empty arrays' do # uncomment below to test object_to_hash for model - #api_client = JCAPIv1::ApiClient.new - #_model = JCAPIv1::ModelName.new + # api_client = JCAPIv1::ApiClient.new + # _model = JCAPIv1::ModelName.new # update the model attribute below - #_model.id = 1 + # _model.id = 1 # update the expected value (hash) below - #expected = {id: 1, name: '', tags: []} - #expect(api_client.object_to_hash(_model)).to eq(expected) + # expected = {id: 1, name: '', tags: []} + # expect(api_client.object_to_hash(_model)).to eq(expected) end end - describe "#build_collection_param" do + describe '#build_collection_param' do let(:param) { ['aa', 'bb', 'cc'] } let(:api_client) { JCAPIv1::ApiClient.new } - it "works for csv" do + it 'works for csv' do expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') end - it "works for ssv" do + it 'works for ssv' do expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') end - it "works for tsv" do + it 'works for tsv' do expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") end - it "works for pipes" do + it 'works for pipes' do expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') end - it "works for multi" do + it 'works for multi' do expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) end - it "fails for invalid collection format" do + it 'fails for invalid collection format' do expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end - describe "#json_mime?" do + describe '#json_mime?' do let(:api_client) { JCAPIv1::ApiClient.new } - it "works" do + it 'works' do expect(api_client.json_mime?(nil)).to eq false expect(api_client.json_mime?('')).to eq false @@ -177,10 +177,10 @@ end end - describe "#select_header_accept" do + describe '#select_header_accept' do let(:api_client) { JCAPIv1::ApiClient.new } - it "works" do + it 'works' do expect(api_client.select_header_accept(nil)).to be_nil expect(api_client.select_header_accept([])).to be_nil @@ -193,10 +193,10 @@ end end - describe "#select_header_content_type" do + describe '#select_header_content_type' do let(:api_client) { JCAPIv1::ApiClient.new } - it "works" do + it 'works' do expect(api_client.select_header_content_type(nil)).to eq('application/json') expect(api_client.select_header_content_type([])).to eq('application/json') @@ -208,10 +208,10 @@ end end - describe "#sanitize_filename" do + describe '#sanitize_filename' do let(:api_client) { JCAPIv1::ApiClient.new } - it "works" do + it 'works' do expect(api_client.sanitize_filename('sun')).to eq('sun') expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') diff --git a/jcapiv1/spec/configuration_spec.rb b/jcapiv1/spec/configuration_spec.rb index ad301f7..0267f51 100644 --- a/jcapiv1/spec/configuration_spec.rb +++ b/jcapiv1/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -17,25 +17,25 @@ before(:each) do # uncomment below to setup host and base_path - #require 'URI' - #uri = URI.parse("https://console.jumpcloud.com/api") - #JCAPIv1.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - #end + # require 'URI' + # uri = URI.parse("https://console.jumpcloud.com/api") + # JCAPIv1.configure do |c| + # c.host = uri.host + # c.base_path = uri.path + # end end describe '#base_url' do it 'should have the default value' do # uncomment below to test default value of the base path - #expect(config.base_url).to eq("https://console.jumpcloud.com/api") + # expect(config.base_url).to eq("https://console.jumpcloud.com/api") end it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path # uncomment below to test trailing slashes - #expect(config.base_url).to eq("https://console.jumpcloud.com/api") + # expect(config.base_url).to eq("https://console.jumpcloud.com/api") end end end diff --git a/jcapiv1/spec/models/application_config_constant_attributes_spec.rb b/jcapiv1/spec/models/application_config_constant_attributes_spec.rb index ce6f2c4..2621f5c 100644 --- a/jcapiv1/spec/models/application_config_constant_attributes_spec.rb +++ b/jcapiv1/spec/models/application_config_constant_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,57 +34,56 @@ end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tooltip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visible"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb b/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb index 2be21d8..70c8df4 100644 --- a/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb +++ b/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,33 +34,32 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visible"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_config_database_attributes_spec.rb b/jcapiv1/spec/models/application_config_database_attributes_spec.rb index 3d44294..c4ccf32 100644 --- a/jcapiv1/spec/models/application_config_database_attributes_spec.rb +++ b/jcapiv1/spec/models/application_config_database_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb b/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb index d2bfe93..634ff75 100644 --- a/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb +++ b/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,51 +34,50 @@ end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tooltip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visible"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb index f3170a1..0fe7d27 100644 --- a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb +++ b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "variables"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb index 5b4488a..d45dbd6 100644 --- a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb +++ b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "icon"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_config_spec.rb b/jcapiv1/spec/models/application_config_spec.rb index e28a08f..a5565bd 100644 --- a/jcapiv1/spec/models/application_config_spec.rb +++ b/jcapiv1/spec/models/application_config_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,39 +34,38 @@ end describe 'test attribute "idp_entity_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "idp_certificate"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sp_entity_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "acs_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "constant_attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "database_attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/application_spec.rb b/jcapiv1/spec/models/application_spec.rb index 9a4df17..597b7e2 100644 --- a/jcapiv1/spec/models/application_spec.rb +++ b/jcapiv1/spec/models/application_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,57 +34,56 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sso_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "learn_more"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/applicationslist_spec.rb b/jcapiv1/spec/models/applicationslist_spec.rb index b8d0ef3..2ad3c9d 100644 --- a/jcapiv1/spec/models/applicationslist_spec.rb +++ b/jcapiv1/spec/models/applicationslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/body_1_spec.rb b/jcapiv1/spec/models/body_1_spec.rb index 7cf1e67..fb7d5d9 100644 --- a/jcapiv1/spec/models/body_1_spec.rb +++ b/jcapiv1/spec/models/body_1_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "exclusion"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exclusion_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/body_spec.rb b/jcapiv1/spec/models/body_spec.rb index 51b52b5..7228cf3 100644 --- a/jcapiv1/spec/models/body_spec.rb +++ b/jcapiv1/spec/models/body_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/command_spec.rb b/jcapiv1/spec/models/command_spec.rb index 66479a9..131b5dc 100644 --- a/jcapiv1/spec/models/command_spec.rb +++ b/jcapiv1/spec/models/command_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,87 +34,86 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command_runners"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "launch_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "listens_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule_repeat_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "timeout"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandfilereturn_results_spec.rb b/jcapiv1/spec/models/commandfilereturn_results_spec.rb index f290225..8f662a3 100644 --- a/jcapiv1/spec/models/commandfilereturn_results_spec.rb +++ b/jcapiv1/spec/models/commandfilereturn_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "destination"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandfilereturn_spec.rb b/jcapiv1/spec/models/commandfilereturn_spec.rb index a671bea..cbc341d 100644 --- a/jcapiv1/spec/models/commandfilereturn_spec.rb +++ b/jcapiv1/spec/models/commandfilereturn_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandresult_response_data_spec.rb b/jcapiv1/spec/models/commandresult_response_data_spec.rb index 8830fb4..50113ed 100644 --- a/jcapiv1/spec/models/commandresult_response_data_spec.rb +++ b/jcapiv1/spec/models/commandresult_response_data_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "output"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exit_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandresult_response_spec.rb b/jcapiv1/spec/models/commandresult_response_spec.rb index cfdcb15..9f1ee5d 100644 --- a/jcapiv1/spec/models/commandresult_response_spec.rb +++ b/jcapiv1/spec/models/commandresult_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "data"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandresult_spec.rb b/jcapiv1/spec/models/commandresult_spec.rb index 85102ae..c3d3aae 100644 --- a/jcapiv1/spec/models/commandresult_spec.rb +++ b/jcapiv1/spec/models/commandresult_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,87 +34,86 @@ end describe 'test attribute "command"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "workflow_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "workflow_instance_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_time"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "response_time"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "response"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandresultslist_spec.rb b/jcapiv1/spec/models/commandresultslist_spec.rb index df2ca51..c36a779 100644 --- a/jcapiv1/spec/models/commandresultslist_spec.rb +++ b/jcapiv1/spec/models/commandresultslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandslist_results_spec.rb b/jcapiv1/spec/models/commandslist_results_spec.rb index 213adad..b7d25a0 100644 --- a/jcapiv1/spec/models/commandslist_results_spec.rb +++ b/jcapiv1/spec/models/commandslist_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,63 +34,62 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "launch_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "listens_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "trigger"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule_repeat_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/commandslist_spec.rb b/jcapiv1/spec/models/commandslist_spec.rb index 6a75c52..e81e98c 100644 --- a/jcapiv1/spec/models/commandslist_spec.rb +++ b/jcapiv1/spec/models/commandslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/errorresponse_spec.rb b/jcapiv1/spec/models/errorresponse_spec.rb index c788cba..fc9a398 100644 --- a/jcapiv1/spec/models/errorresponse_spec.rb +++ b/jcapiv1/spec/models/errorresponse_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/fde_spec.rb b/jcapiv1/spec/models/fde_spec.rb index f29b5ce..675edfc 100644 --- a/jcapiv1/spec/models/fde_spec.rb +++ b/jcapiv1/spec/models/fde_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "key_present"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/mfa_spec.rb b/jcapiv1/spec/models/mfa_spec.rb index 1b00ab8..a0d3683 100644 --- a/jcapiv1/spec/models/mfa_spec.rb +++ b/jcapiv1/spec/models/mfa_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "exclusion"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exclusion_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "configured"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/organizationslist_results_spec.rb b/jcapiv1/spec/models/organizationslist_results_spec.rb index 73ca272..b005c97 100644 --- a/jcapiv1/spec/models/organizationslist_results_spec.rb +++ b/jcapiv1/spec/models/organizationslist_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "logo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/organizationslist_spec.rb b/jcapiv1/spec/models/organizationslist_spec.rb index b695aab..282faba 100644 --- a/jcapiv1/spec/models/organizationslist_spec.rb +++ b/jcapiv1/spec/models/organizationslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/radiusserver_spec.rb b/jcapiv1/spec/models/radiusserver_spec.rb index e7807c3..7f68f19 100644 --- a/jcapiv1/spec/models/radiusserver_spec.rb +++ b/jcapiv1/spec/models/radiusserver_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,45 +34,44 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "shared_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag_names"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/radiusserverpost_spec.rb b/jcapiv1/spec/models/radiusserverpost_spec.rb index c68705d..38a90f5 100644 --- a/jcapiv1/spec/models/radiusserverpost_spec.rb +++ b/jcapiv1/spec/models/radiusserverpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,27 +34,26 @@ end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag_names"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "shared_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/radiusserverput_spec.rb b/jcapiv1/spec/models/radiusserverput_spec.rb index 3b9c5aa..043e079 100644 --- a/jcapiv1/spec/models/radiusserverput_spec.rb +++ b/jcapiv1/spec/models/radiusserverput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,27 +34,26 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag_names"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/radiusserverslist_spec.rb b/jcapiv1/spec/models/radiusserverslist_spec.rb index df35d80..e9c4297 100644 --- a/jcapiv1/spec/models/radiusserverslist_spec.rb +++ b/jcapiv1/spec/models/radiusserverslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/search_spec.rb b/jcapiv1/spec/models/search_spec.rb index fe893b2..36d1b43 100644 --- a/jcapiv1/spec/models/search_spec.rb +++ b/jcapiv1/spec/models/search_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "filter"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/sshkeylist_spec.rb b/jcapiv1/spec/models/sshkeylist_spec.rb index 40489ce..a4731d3 100644 --- a/jcapiv1/spec/models/sshkeylist_spec.rb +++ b/jcapiv1/spec/models/sshkeylist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,27 +34,26 @@ end describe 'test attribute "create_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/sshkeypost_spec.rb b/jcapiv1/spec/models/sshkeypost_spec.rb index 8b68f08..cb24d72 100644 --- a/jcapiv1/spec/models/sshkeypost_spec.rb +++ b/jcapiv1/spec/models/sshkeypost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/system_network_interfaces_spec.rb b/jcapiv1/spec/models/system_network_interfaces_spec.rb index 441982e..8926c64 100644 --- a/jcapiv1/spec/models/system_network_interfaces_spec.rb +++ b/jcapiv1/spec/models/system_network_interfaces_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,27 +34,26 @@ end describe 'test attribute "address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "family"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "internal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/system_spec.rb b/jcapiv1/spec/models/system_spec.rb index 3243881..73f3c27 100644 --- a/jcapiv1/spec/models/system_spec.rb +++ b/jcapiv1/spec/models/system_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,159 +34,158 @@ end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_contact"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "os"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "arch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_interfaces"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "hostname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system_timezone"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "remote_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sshd_params"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_password_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_root_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_multi_factor_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "modify_sshd_config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "agent_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "connection_history"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_root_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fde"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "amazon_instance_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/system_sshd_params_spec.rb b/jcapiv1/spec/models/system_sshd_params_spec.rb index 05fc918..7a4ef27 100644 --- a/jcapiv1/spec/models/system_sshd_params_spec.rb +++ b/jcapiv1/spec/models/system_sshd_params_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb b/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb index 780b439..e39c570 100644 --- a/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb +++ b/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "cmd"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemput_spec.rb b/jcapiv1/spec/models/systemput_spec.rb index c5b00f8..b3c8ad6 100644 --- a/jcapiv1/spec/models/systemput_spec.rb +++ b/jcapiv1/spec/models/systemput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,45 +34,44 @@ end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_password_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_root_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_multi_factor_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "agent_bound_messages"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemslist_spec.rb b/jcapiv1/spec/models/systemslist_spec.rb index 0f10f15..94d88ac 100644 --- a/jcapiv1/spec/models/systemslist_spec.rb +++ b/jcapiv1/spec/models/systemslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuser_spec.rb b/jcapiv1/spec/models/systemuser_spec.rb index c945b3e..80b8705 100644 --- a/jcapiv1/spec/models/systemuser_spec.rb +++ b/jcapiv1/spec/models/systemuser_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,243 +34,242 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "associated_tag_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expiration_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserbinding_spec.rb b/jcapiv1/spec/models/systemuserbinding_spec.rb index aae3081..ace5e12 100644 --- a/jcapiv1/spec/models/systemuserbinding_spec.rb +++ b/jcapiv1/spec/models/systemuserbinding_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,4 +33,3 @@ end end end - diff --git a/jcapiv1/spec/models/systemuserbindingsput_spec.rb b/jcapiv1/spec/models/systemuserbindingsput_spec.rb index d8f29a3..14ab892 100644 --- a/jcapiv1/spec/models/systemuserbindingsput_spec.rb +++ b/jcapiv1/spec/models/systemuserbindingsput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "add"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "remove"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserput_addresses_spec.rb b/jcapiv1/spec/models/systemuserput_addresses_spec.rb index 71e7d3b..14f3d97 100644 --- a/jcapiv1/spec/models/systemuserput_addresses_spec.rb +++ b/jcapiv1/spec/models/systemuserput_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,51 +34,50 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb b/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb index f1dd1c2..94867cd 100644 --- a/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb +++ b/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserput_spec.rb b/jcapiv1/spec/models/systemuserput_spec.rb index 8a697e4..669fa8d 100644 --- a/jcapiv1/spec/models/systemuserput_spec.rb +++ b/jcapiv1/spec/models/systemuserput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,219 +34,218 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb b/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb index 18db032..1840ed0 100644 --- a/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,51 +34,50 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb b/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb index 5df6fa4..50ba2cc 100644 --- a/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserputpost_spec.rb b/jcapiv1/spec/models/systemuserputpost_spec.rb index ddd57b8..f8ff999 100644 --- a/jcapiv1/spec/models/systemuserputpost_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,225 +34,224 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb b/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb index e2c6200..1f2dc57 100644 --- a/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,57 +34,56 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb b/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb index 099a495..1f737a2 100644 --- a/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserreturn_spec.rb b/jcapiv1/spec/models/systemuserreturn_spec.rb index 0f9d4f7..7b2e1d9 100644 --- a/jcapiv1/spec/models/systemuserreturn_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,261 +34,260 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "bad_login_attempts"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/systemuserslist_spec.rb b/jcapiv1/spec/models/systemuserslist_spec.rb index 97a3f4e..ab9a352 100644 --- a/jcapiv1/spec/models/systemuserslist_spec.rb +++ b/jcapiv1/spec/models/systemuserslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/tag_spec.rb b/jcapiv1/spec/models/tag_spec.rb index fb63c25..6657eab 100644 --- a/jcapiv1/spec/models/tag_spec.rb +++ b/jcapiv1/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,75 +34,74 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systemusers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "regular_expressions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "send_to_ldap"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_gid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/tagpost_spec.rb b/jcapiv1/spec/models/tagpost_spec.rb index 3bc4aba..8fd0259 100644 --- a/jcapiv1/spec/models/tagpost_spec.rb +++ b/jcapiv1/spec/models/tagpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,63 +34,62 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systemusers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "regular_expressions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "send_to_ldap"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_gid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/tagput_spec.rb b/jcapiv1/spec/models/tagput_spec.rb index e3e2adc..081c4ac 100644 --- a/jcapiv1/spec/models/tagput_spec.rb +++ b/jcapiv1/spec/models/tagput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,63 +34,62 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systemusers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "regular_expressions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "send_to_ldap"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_gid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/tagslist_spec.rb b/jcapiv1/spec/models/tagslist_spec.rb index 75260e0..3992acf 100644 --- a/jcapiv1/spec/models/tagslist_spec.rb +++ b/jcapiv1/spec/models/tagslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/models/usersystembinding_spec.rb b/jcapiv1/spec/models/usersystembinding_spec.rb index b450497..0d7f001 100644 --- a/jcapiv1/spec/models/usersystembinding_spec.rb +++ b/jcapiv1/spec/models/usersystembinding_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,4 +33,3 @@ end end end - diff --git a/jcapiv1/spec/models/usersystembindingsput_spec.rb b/jcapiv1/spec/models/usersystembindingsput_spec.rb index 824773f..22aff63 100644 --- a/jcapiv1/spec/models/usersystembindingsput_spec.rb +++ b/jcapiv1/spec/models/usersystembindingsput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "add"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "remove"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv1/spec/spec_helper.rb b/jcapiv1/spec/spec_helper.rb index ac7cdd8..ba605ef 100644 --- a/jcapiv1/spec/spec_helper.rb +++ b/jcapiv1/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end diff --git a/jcapiv2/.gitignore b/jcapiv2/.gitignore index 4b91271..c021594 100644 --- a/jcapiv2/.gitignore +++ b/jcapiv2/.gitignore @@ -1,5 +1,5 @@ # Generated by: https://github.com/swagger-api/swagger-codegen.git -# +# *.gem *.rbc diff --git a/jcapiv2/.rubocop.yml b/jcapiv2/.rubocop.yml new file mode 100644 index 0000000..19a777e --- /dev/null +++ b/jcapiv2/.rubocop.yml @@ -0,0 +1,154 @@ +# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) +# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen) +AllCops: + TargetRubyVersion: 2.2 + # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop + # to ignore them, so only the ones explicitly set in this file are enabled. + DisabledByDefault: true + Exclude: + - '**/templates/**/*' + - '**/vendor/**/*' + - 'actionpack/lib/action_dispatch/journey/parser.rb' + +# Prefer &&/|| over and/or. +Style/AndOr: + Enabled: true + +# Do not use braces for hash literals when they are the last argument of a +# method call. +Style/BracesAroundHashParameters: + Enabled: true + EnforcedStyle: context_dependent + +# Align `when` with `case`. +Layout/CaseIndentation: + Enabled: true + +# Align comments with method definitions. +Layout/CommentIndentation: + Enabled: true + +Layout/ElseAlignment: + Enabled: true + +Layout/EmptyLineAfterMagicComment: + Enabled: true + +# In a regular class definition, no empty lines around the body. +Layout/EmptyLinesAroundClassBody: + Enabled: true + +# In a regular method definition, no empty lines around the body. +Layout/EmptyLinesAroundMethodBody: + Enabled: true + +# In a regular module definition, no empty lines around the body. +Layout/EmptyLinesAroundModuleBody: + Enabled: true + +Layout/FirstParameterIndentation: + Enabled: true + +# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. +Style/HashSyntax: + Enabled: false + +# Method definitions after `private` or `protected` isolated calls need one +# extra level of indentation. +Layout/IndentationConsistency: + Enabled: true + EnforcedStyle: rails + +# Two spaces, no tabs (for indentation). +Layout/IndentationWidth: + Enabled: true + +Layout/LeadingCommentSpace: + Enabled: true + +Layout/SpaceAfterColon: + Enabled: true + +Layout/SpaceAfterComma: + Enabled: true + +Layout/SpaceAroundEqualsInParameterDefault: + Enabled: true + +Layout/SpaceAroundKeyword: + Enabled: true + +Layout/SpaceAroundOperators: + Enabled: true + +Layout/SpaceBeforeComma: + Enabled: true + +Layout/SpaceBeforeFirstArg: + Enabled: true + +Style/DefWithParentheses: + Enabled: true + +# Defining a method with parameters needs parentheses. +Style/MethodDefParentheses: + Enabled: true + +Style/FrozenStringLiteralComment: + Enabled: false + EnforcedStyle: always + +# Use `foo {}` not `foo{}`. +Layout/SpaceBeforeBlockBraces: + Enabled: true + +# Use `foo { bar }` not `foo {bar}`. +Layout/SpaceInsideBlockBraces: + Enabled: true + +# Use `{ a: 1 }` not `{a:1}`. +Layout/SpaceInsideHashLiteralBraces: + Enabled: true + +Layout/SpaceInsideParens: + Enabled: true + +# Check quotes usage according to lint rule below. +#Style/StringLiterals: +# Enabled: true +# EnforcedStyle: single_quotes + +# Detect hard tabs, no hard tabs. +Layout/Tab: + Enabled: true + +# Blank lines should not have any spaces. +Layout/TrailingBlankLines: + Enabled: true + +# No trailing whitespace. +Layout/TrailingWhitespace: + Enabled: false + +# Use quotes for string literals when they are enough. +Style/UnneededPercentQ: + Enabled: true + +# Align `end` with the matching keyword or starting expression except for +# assignments, where it should be aligned with the LHS. +Lint/EndAlignment: + Enabled: true + EnforcedStyleAlignWith: variable + AutoCorrect: true + +# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. +Lint/RequireParentheses: + Enabled: true + +Style/RedundantReturn: + Enabled: true + AllowMultipleReturnValues: true + +Style/Semicolon: + Enabled: true + AllowAsExpressionSeparator: true diff --git a/jcapiv2/.swagger-codegen/VERSION b/jcapiv2/.swagger-codegen/VERSION index a625450..acdc3f1 100644 --- a/jcapiv2/.swagger-codegen/VERSION +++ b/jcapiv2/.swagger-codegen/VERSION @@ -1 +1 @@ -2.3.1 \ No newline at end of file +2.4.2 \ No newline at end of file diff --git a/jcapiv2/README.md b/jcapiv2/README.md index 9a3b1bc..69f96b0 100644 --- a/jcapiv2/README.md +++ b/jcapiv2/README.md @@ -64,14 +64,14 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -id = "id_example" # String | ObjectID of this Active Directory instance. +id = 'id_example' # String | ObjectID of this Active Directory instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/ActiveDirectoryApi.md b/jcapiv2/docs/ActiveDirectoryApi.md index 02e943f..18de4e8 100644 --- a/jcapiv2/docs/ActiveDirectoryApi.md +++ b/jcapiv2/docs/ActiveDirectoryApi.md @@ -34,14 +34,14 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -id = "id_example" # String | ObjectID of this Active Directory instance. +id = 'id_example' # String | ObjectID of this Active Directory instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -97,14 +97,14 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -id = "id_example" # String | ObjectID of this Active Directory instance. +id = 'id_example' # String | ObjectID of this Active Directory instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -161,17 +161,17 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -189,11 +189,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -232,13 +232,13 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::ActiveDirectoryInput.new, # ActiveDirectoryInput | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -295,18 +295,18 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -activedirectory_id = "activedirectory_id_example" # String | +activedirectory_id = 'activedirectory_id_example' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -366,15 +366,15 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -activedirectory_id = "activedirectory_id_example" # String | +activedirectory_id = 'activedirectory_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -431,16 +431,16 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -activedirectory_id = "activedirectory_id_example" # String | ObjectID of the Active Directory instance. +activedirectory_id = 'activedirectory_id_example' # String | ObjectID of the Active Directory instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/ApplicationsApi.md b/jcapiv2/docs/ApplicationsApi.md index d89c967..1f8c8ce 100644 --- a/jcapiv2/docs/ApplicationsApi.md +++ b/jcapiv2/docs/ApplicationsApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -102,15 +102,15 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -167,16 +167,16 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -235,16 +235,16 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/BulkJobRequestsApi.md b/jcapiv2/docs/BulkJobRequestsApi.md index f0265fd..6a907f5 100644 --- a/jcapiv2/docs/BulkJobRequestsApi.md +++ b/jcapiv2/docs/BulkJobRequestsApi.md @@ -32,13 +32,13 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: [JCAPIv2::BulkUserCreate.new], # Array | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -95,16 +95,16 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -job_id = "job_id_example" # String | +job_id = 'job_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -163,13 +163,13 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: [JCAPIv2::BulkUserUpdate.new], # Array | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -226,14 +226,14 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -290,16 +290,16 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/CommandsApi.md b/jcapiv2/docs/CommandsApi.md index e6ba995..3ba7501 100644 --- a/jcapiv2/docs/CommandsApi.md +++ b/jcapiv2/docs/CommandsApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -102,15 +102,15 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -167,16 +167,16 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -235,16 +235,16 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/DirectoriesApi.md b/jcapiv2/docs/DirectoriesApi.md index 59271eb..0b5e91f 100644 --- a/jcapiv2/docs/DirectoriesApi.md +++ b/jcapiv2/docs/DirectoriesApi.md @@ -28,16 +28,16 @@ end api_instance = JCAPIv2::DirectoriesApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -55,9 +55,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **x_org_id** | **String**| | [optional] [default to ] diff --git a/jcapiv2/docs/FdeApi.md b/jcapiv2/docs/FdeApi.md index e393dbd..eddd8fa 100644 --- a/jcapiv2/docs/FdeApi.md +++ b/jcapiv2/docs/FdeApi.md @@ -28,10 +28,10 @@ end api_instance = JCAPIv2::FdeApi.new -system_id = "system_id_example" # String | +system_id = 'system_id_example' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/GSuiteApi.md b/jcapiv2/docs/GSuiteApi.md index e3b7032..f0db2f1 100644 --- a/jcapiv2/docs/GSuiteApi.md +++ b/jcapiv2/docs/GSuiteApi.md @@ -35,18 +35,18 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -106,11 +106,11 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -165,16 +165,16 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -233,16 +233,16 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -301,13 +301,13 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | +gsuite_id = 'gsuite_id_example' # String | -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | begin @@ -363,13 +363,13 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | +gsuite_id = 'gsuite_id_example' # String | -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | begin @@ -426,18 +426,18 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | +gsuite_id = 'gsuite_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. } begin @@ -456,11 +456,11 @@ Name | Type | Description | Notes **gsuite_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] ### Return type @@ -498,11 +498,11 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = "gsuite_id_example" # String | +gsuite_id = 'gsuite_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GSuiteTranslationRuleRequest.new # GSuiteTranslationRuleRequest | diff --git a/jcapiv2/docs/GraphApi.md b/jcapiv2/docs/GraphApi.md index d50ed3a..7fa4803 100644 --- a/jcapiv2/docs/GraphApi.md +++ b/jcapiv2/docs/GraphApi.md @@ -102,18 +102,18 @@ end api_instance = JCAPIv2::GraphApi.new -activedirectory_id = "activedirectory_id_example" # String | +activedirectory_id = 'activedirectory_id_example' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -173,15 +173,15 @@ end api_instance = JCAPIv2::GraphApi.new -activedirectory_id = "activedirectory_id_example" # String | +activedirectory_id = 'activedirectory_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -238,16 +238,16 @@ end api_instance = JCAPIv2::GraphApi.new -activedirectory_id = "activedirectory_id_example" # String | ObjectID of the Active Directory instance. +activedirectory_id = 'activedirectory_id_example' # String | ObjectID of the Active Directory instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -306,18 +306,18 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -377,15 +377,15 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -442,16 +442,16 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -510,16 +510,16 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = "application_id_example" # String | ObjectID of the Application. +application_id = 'application_id_example' # String | ObjectID of the Application. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -578,18 +578,18 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -649,15 +649,15 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -714,16 +714,16 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -782,16 +782,16 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = "command_id_example" # String | ObjectID of the Command. +command_id = 'command_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -850,18 +850,18 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -921,11 +921,11 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -980,16 +980,16 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1048,16 +1048,16 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. +gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1116,18 +1116,18 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1187,15 +1187,15 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1252,16 +1252,16 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1320,16 +1320,16 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1388,18 +1388,18 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1459,15 +1459,15 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1524,16 +1524,16 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1592,16 +1592,16 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1660,18 +1660,18 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = "policy_id_example" # String | ObjectID of the Policy. +policy_id = 'policy_id_example' # String | ObjectID of the Policy. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1731,15 +1731,15 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = "policy_id_example" # String | ObjectID of the Policy. +policy_id = 'policy_id_example' # String | ObjectID of the Policy. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1796,16 +1796,16 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = "policy_id_example" # String | ObjectID of the Command. +policy_id = 'policy_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1864,16 +1864,16 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = "policy_id_example" # String | ObjectID of the Command. +policy_id = 'policy_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1932,18 +1932,18 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2003,15 +2003,15 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2068,16 +2068,16 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2136,16 +2136,16 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2204,20 +2204,20 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -2279,17 +2279,17 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGraphManagementReq.new, # SystemGraphManagementReq | - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -2348,18 +2348,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2419,15 +2419,15 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupGraphManagementReq.new, # SystemGroupGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2484,18 +2484,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -2514,10 +2514,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the System Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -2556,16 +2556,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2624,17 +2624,17 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupMembersReq.new, # SystemGroupMembersReq | - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -2693,18 +2693,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: '' # String | } begin @@ -2725,8 +2725,8 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -2765,16 +2765,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2833,16 +2833,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2901,16 +2901,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -2969,16 +2969,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3037,20 +3037,20 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -3069,12 +3069,12 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -3113,16 +3113,16 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3181,16 +3181,16 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3249,19 +3249,19 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: "" # String | + x_org_id: '' # String | skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -3285,7 +3285,7 @@ Name | Type | Description | Notes **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] ### Return type @@ -3323,18 +3323,18 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -3395,18 +3395,18 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3466,15 +3466,15 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGraphManagementReq.new, # UserGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3531,18 +3531,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3602,15 +3602,15 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupGraphManagementReq.new, # UserGroupGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3667,18 +3667,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -3697,10 +3697,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -3739,16 +3739,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3807,15 +3807,15 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupMembersReq.new, # UserGroupMembersReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -3872,18 +3872,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -3902,10 +3902,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -3944,16 +3944,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4012,16 +4012,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4080,16 +4080,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4148,16 +4148,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4216,16 +4216,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4284,16 +4284,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4352,16 +4352,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4420,16 +4420,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4488,16 +4488,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4556,18 +4556,18 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -4586,10 +4586,10 @@ Name | Type | Description | Notes **user_id** | **String**| ObjectID of the User. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -4628,16 +4628,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4696,16 +4696,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4764,16 +4764,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4832,16 +4832,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4900,16 +4900,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -4968,16 +4968,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -5036,17 +5036,17 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: "" # String | + x_org_id: '' # String | skip: 0, # Integer | The offset into the records to return. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -5068,7 +5068,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **x_org_id** | **String**| | [optional] [default to ] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] ### Return type @@ -5106,16 +5106,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -5174,19 +5174,19 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -5205,11 +5205,11 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/GroupsApi.md b/jcapiv2/docs/GroupsApi.md index b6c1583..95ce2eb 100644 --- a/jcapiv2/docs/GroupsApi.md +++ b/jcapiv2/docs/GroupsApi.md @@ -28,17 +28,17 @@ end api_instance = JCAPIv2::GroupsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -56,11 +56,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/LDAPServersApi.md b/jcapiv2/docs/LDAPServersApi.md index ccd2078..4cba5ef 100644 --- a/jcapiv2/docs/LDAPServersApi.md +++ b/jcapiv2/docs/LDAPServersApi.md @@ -33,18 +33,18 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -104,15 +104,15 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -169,16 +169,16 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -237,16 +237,16 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. +ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -305,14 +305,14 @@ end api_instance = JCAPIv2::LDAPServersApi.new -id = "id_example" # String | Unique identifier of the LDAP server. +id = 'id_example' # String | Unique identifier of the LDAP server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -369,17 +369,17 @@ end api_instance = JCAPIv2::LDAPServersApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -397,11 +397,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/Office365Api.md b/jcapiv2/docs/Office365Api.md index bdb616f..5204c28 100644 --- a/jcapiv2/docs/Office365Api.md +++ b/jcapiv2/docs/Office365Api.md @@ -35,18 +35,18 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -106,15 +106,15 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -171,16 +171,16 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -239,16 +239,16 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. +office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -307,13 +307,13 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | +office365_id = 'office365_id_example' # String | -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | begin @@ -369,13 +369,13 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | +office365_id = 'office365_id_example' # String | -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | begin @@ -432,18 +432,18 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | +office365_id = 'office365_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. } begin @@ -462,11 +462,11 @@ Name | Type | Description | Notes **office365_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] ### Return type @@ -504,11 +504,11 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = "office365_id_example" # String | +office365_id = 'office365_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::Office365TranslationRuleRequest.new # Office365TranslationRuleRequest | diff --git a/jcapiv2/docs/PoliciesApi.md b/jcapiv2/docs/PoliciesApi.md index 3ae453a..d847be6 100644 --- a/jcapiv2/docs/PoliciesApi.md +++ b/jcapiv2/docs/PoliciesApi.md @@ -43,18 +43,18 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | ObjectID of the Policy. +policy_id = 'policy_id_example' # String | ObjectID of the Policy. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -114,15 +114,15 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | ObjectID of the Policy. +policy_id = 'policy_id_example' # String | ObjectID of the Policy. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -179,16 +179,16 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | ObjectID of the Command. +policy_id = 'policy_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -247,16 +247,16 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | ObjectID of the Command. +policy_id = 'policy_id_example' # String | ObjectID of the Command. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -315,14 +315,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = "id_example" # String | ObjectID of the Policy object. +id = 'id_example' # String | ObjectID of the Policy object. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -378,14 +378,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = "id_example" # String | ObjectID of the Policy object. +id = 'id_example' # String | ObjectID of the Policy object. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -442,17 +442,17 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -470,11 +470,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -513,13 +513,13 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::PolicyRequest.new, # PolicyRequest | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -576,11 +576,11 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = "id_example" # String | ObjectID of the Policy object. +id = 'id_example' # String | ObjectID of the Policy object. opts = { body: JCAPIv2::PolicyRequest.new, # PolicyRequest | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -636,14 +636,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = "id_example" # String | ObjectID of the Policy Result. +id = 'id_example' # String | ObjectID of the Policy Result. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -700,20 +700,20 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | +policy_id = 'policy_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - aggregate: ["aggregate_example"], # Array | - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + aggregate: ['[]'], # Array | + x_org_id: '' # String | } begin @@ -732,12 +732,12 @@ Name | Type | Description | Notes **policy_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] - **aggregate** | [**Array<String>**](String.md)| | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **aggregate** | [**Array<String>**](String.md)| | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -776,18 +776,18 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - aggregate: ["aggregate_example"], # Array | - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + aggregate: ['[]'], # Array | + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -805,12 +805,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **aggregate** | [**Array<String>**](String.md)| | [optional] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **aggregate** | [**Array<String>**](String.md)| | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -849,19 +849,19 @@ end api_instance = JCAPIv2::PoliciesApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -880,11 +880,11 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -923,19 +923,19 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = "policy_id_example" # String | +policy_id = 'policy_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -954,11 +954,11 @@ Name | Type | Description | Notes **policy_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -997,14 +997,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = "id_example" # String | ObjectID of the Policy Template. +id = 'id_example' # String | ObjectID of the Policy Template. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1061,17 +1061,17 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -1089,11 +1089,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/PolicyTemplate.md b/jcapiv2/docs/PolicyTemplate.md index 280fe4b..282fb31 100644 --- a/jcapiv2/docs/PolicyTemplate.md +++ b/jcapiv2/docs/PolicyTemplate.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes **os_meta_family** | **String** | | [optional] **activation** | **String** | Requirements before the policy can be activated. | [optional] **behavior** | **String** | Specifics about the behavior of the policy. | [optional] -**state** | **String** | String describing the release status of the policy template. | [optional] [default to ""] +**state** | **String** | String describing the release status of the policy template. | [optional] [default to ''] diff --git a/jcapiv2/docs/PolicytemplatesApi.md b/jcapiv2/docs/PolicytemplatesApi.md index 74ccb6d..5929b83 100644 --- a/jcapiv2/docs/PolicytemplatesApi.md +++ b/jcapiv2/docs/PolicytemplatesApi.md @@ -29,14 +29,14 @@ end api_instance = JCAPIv2::PolicytemplatesApi.new -id = "id_example" # String | ObjectID of the Policy Template. +id = 'id_example' # String | ObjectID of the Policy Template. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -93,17 +93,17 @@ end api_instance = JCAPIv2::PolicytemplatesApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -121,11 +121,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/ProvidersApi.md b/jcapiv2/docs/ProvidersApi.md index 3d71c03..be69e3d 100644 --- a/jcapiv2/docs/ProvidersApi.md +++ b/jcapiv2/docs/ProvidersApi.md @@ -26,18 +26,18 @@ end api_instance = JCAPIv2::ProvidersApi.new -provider_id = "provider_id_example" # String | +provider_id = 'provider_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. } begin @@ -56,11 +56,11 @@ Name | Type | Description | Notes **provider_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] ### Return type diff --git a/jcapiv2/docs/RADIUSServersApi.md b/jcapiv2/docs/RADIUSServersApi.md index 4a6ed69..3b3a60e 100644 --- a/jcapiv2/docs/RADIUSServersApi.md +++ b/jcapiv2/docs/RADIUSServersApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -102,15 +102,15 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -167,16 +167,16 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -235,16 +235,16 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. +radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/SambaDomainsApi.md b/jcapiv2/docs/SambaDomainsApi.md index 4e75280..941fc48 100644 --- a/jcapiv2/docs/SambaDomainsApi.md +++ b/jcapiv2/docs/SambaDomainsApi.md @@ -32,14 +32,14 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. +ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. -id = "id_example" # String | Unique identifier of the samba domain. +id = 'id_example' # String | Unique identifier of the samba domain. opts = { - content_type: "application/json", # String | - accept: "application/json", # String | - x_org_id: "" # String | + content_type: 'application/json', # String | + accept: 'application/json', # String | + x_org_id: '' # String | } begin @@ -97,14 +97,14 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. +ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. -id = "id_example" # String | Unique identifier of the samba domain. +id = 'id_example' # String | Unique identifier of the samba domain. opts = { - content_type: "application/json", # String | - accept: "application/json", # String | - x_org_id: "" # String | + content_type: 'application/json', # String | + accept: 'application/json', # String | + x_org_id: '' # String | } begin @@ -162,17 +162,17 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. +ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. opts = { - content_type: "application/json", # String | - accept: "application/json", # String | - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + content_type: 'application/json', # String | + accept: 'application/json', # String | + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -191,11 +191,11 @@ Name | Type | Description | Notes **ldapserver_id** | **String**| Unique identifier of the LDAP server. | **content_type** | **String**| | [optional] [default to application/json] **accept** | **String**| | [optional] [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -234,13 +234,13 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. +ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. opts = { body: JCAPIv2::SambaDomainInput.new, # SambaDomainInput | - content_type: "application/json", # String | - accept: "application/json", # String | - x_org_id: "" # String | + content_type: 'application/json', # String | + accept: 'application/json', # String | + x_org_id: '' # String | } begin @@ -298,15 +298,15 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. +ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. -id = "id_example" # String | Unique identifier of the samba domain. +id = 'id_example' # String | Unique identifier of the samba domain. opts = { body: JCAPIv2::SambaDomainInput.new, # SambaDomainInput | - content_type: "application/json", # String | - accept: "application/json", # String | - x_org_id: "" # String | + content_type: 'application/json', # String | + accept: 'application/json', # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/SystemGroupAssociationsApi.md b/jcapiv2/docs/SystemGroupAssociationsApi.md index 4f75a29..8be221c 100644 --- a/jcapiv2/docs/SystemGroupAssociationsApi.md +++ b/jcapiv2/docs/SystemGroupAssociationsApi.md @@ -33,18 +33,18 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -104,15 +104,15 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupGraphManagementReq.new, # SystemGroupGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -169,16 +169,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -237,16 +237,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -305,16 +305,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -373,16 +373,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/SystemGroupMembersMembershipApi.md b/jcapiv2/docs/SystemGroupMembersMembershipApi.md index 211db93..336552e 100644 --- a/jcapiv2/docs/SystemGroupMembersMembershipApi.md +++ b/jcapiv2/docs/SystemGroupMembersMembershipApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -61,10 +61,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the System Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -103,16 +103,16 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -171,17 +171,17 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupMembersReq.new, # SystemGroupMembersReq | - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -240,18 +240,18 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: '' # String | } begin @@ -272,8 +272,8 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/SystemGroupsApi.md b/jcapiv2/docs/SystemGroupsApi.md index 2cb8134..b93d3de 100644 --- a/jcapiv2/docs/SystemGroupsApi.md +++ b/jcapiv2/docs/SystemGroupsApi.md @@ -42,18 +42,18 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -113,15 +113,15 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupGraphManagementReq.new, # SystemGroupGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -178,18 +178,18 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -208,10 +208,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the System Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -250,16 +250,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -318,17 +318,17 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupMembersReq.new, # SystemGroupMembersReq | - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -387,18 +387,18 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: '' # String | } begin @@ -419,8 +419,8 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -459,16 +459,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -527,16 +527,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -595,16 +595,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the System Group. +group_id = 'group_id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -663,14 +663,14 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = "id_example" # String | ObjectID of the System Group. +id = 'id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -726,14 +726,14 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = "id_example" # String | ObjectID of the System Group. +id = 'id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -790,17 +790,17 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -818,11 +818,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -861,15 +861,15 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = "id_example" # String | ObjectID of the System Group. +id = 'id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupData.new, # SystemGroupData | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -927,13 +927,13 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupData.new, # SystemGroupData | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -990,15 +990,15 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = "id_example" # String | ObjectID of the System Group. +id = 'id_example' # String | ObjectID of the System Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGroupData.new, # SystemGroupData | - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/SystemsApi.md b/jcapiv2/docs/SystemsApi.md index 3cd3a02..1440451 100644 --- a/jcapiv2/docs/SystemsApi.md +++ b/jcapiv2/docs/SystemsApi.md @@ -35,20 +35,20 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -110,17 +110,17 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::SystemGraphManagementReq.new, # SystemGraphManagementReq | - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -179,20 +179,20 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -211,12 +211,12 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -255,16 +255,16 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -323,16 +323,16 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -391,19 +391,19 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: "" # String | + x_org_id: '' # String | skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -427,7 +427,7 @@ Name | Type | Description | Notes **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] ### Return type @@ -465,18 +465,18 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | ObjectID of the System. +system_id = 'system_id_example' # String | ObjectID of the System. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: "date_example", # String | Current date header for the System Context API - authorization: "authorization_example", # String | Authorization header for the System Context API - x_org_id: "" # String | + date: 'date_example', # String | Current date header for the System Context API + authorization: 'authorization_example', # String | Authorization header for the System Context API + x_org_id: '' # String | } begin @@ -537,10 +537,10 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = "system_id_example" # String | +system_id = 'system_id_example' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/UserGroupAssociationsApi.md b/jcapiv2/docs/UserGroupAssociationsApi.md index f3f0083..375b79b 100644 --- a/jcapiv2/docs/UserGroupAssociationsApi.md +++ b/jcapiv2/docs/UserGroupAssociationsApi.md @@ -38,18 +38,18 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -109,15 +109,15 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupGraphManagementReq.new, # UserGroupGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -174,16 +174,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -242,16 +242,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -310,16 +310,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -378,16 +378,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -446,16 +446,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -514,16 +514,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -582,16 +582,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -650,16 +650,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -718,16 +718,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/UserGroupMembersMembershipApi.md b/jcapiv2/docs/UserGroupMembersMembershipApi.md index c6dd8a3..a1f59ae 100644 --- a/jcapiv2/docs/UserGroupMembersMembershipApi.md +++ b/jcapiv2/docs/UserGroupMembersMembershipApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -61,10 +61,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -103,16 +103,16 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -171,15 +171,15 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupMembersReq.new, # UserGroupMembersReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -236,18 +236,18 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -266,10 +266,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/UserGroupsApi.md b/jcapiv2/docs/UserGroupsApi.md index e225a9e..b824a8c 100644 --- a/jcapiv2/docs/UserGroupsApi.md +++ b/jcapiv2/docs/UserGroupsApi.md @@ -48,18 +48,18 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -119,15 +119,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupGraphManagementReq.new, # UserGroupGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -184,18 +184,18 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -214,10 +214,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -256,16 +256,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -324,15 +324,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupMembersReq.new, # UserGroupMembersReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -389,18 +389,18 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -419,10 +419,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -461,16 +461,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -529,16 +529,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -597,16 +597,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -665,16 +665,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -733,16 +733,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -801,16 +801,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -869,16 +869,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -937,16 +937,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1005,16 +1005,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = "group_id_example" # String | ObjectID of the User Group. +group_id = 'group_id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1073,14 +1073,14 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = "id_example" # String | ObjectID of the User Group. +id = 'id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1136,14 +1136,14 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = "id_example" # String | ObjectID of the User Group. +id = 'id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1200,17 +1200,17 @@ end api_instance = JCAPIv2::UserGroupsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -1228,11 +1228,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -1271,15 +1271,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = "id_example" # String | ObjectID of the User Group. +id = 'id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupPost.new, # UserGroupPost | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1337,13 +1337,13 @@ end api_instance = JCAPIv2::UserGroupsApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupPost.new, # UserGroupPost | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -1400,15 +1400,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = "id_example" # String | ObjectID of the User Group. +id = 'id_example' # String | ObjectID of the User Group. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGroupPut.new, # UserGroupPut | - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/UsersApi.md b/jcapiv2/docs/UsersApi.md index efe24b0..dd0f7c3 100644 --- a/jcapiv2/docs/UsersApi.md +++ b/jcapiv2/docs/UsersApi.md @@ -39,18 +39,18 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | -targets = ["targets_example"] # Array | +targets = ['targets_example'] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -110,15 +110,15 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::UserGraphManagementReq.new, # UserGraphManagementReq | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -175,18 +175,18 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -205,10 +205,10 @@ Name | Type | Description | Notes **user_id** | **String**| ObjectID of the User. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -247,16 +247,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -315,16 +315,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -383,16 +383,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -451,16 +451,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -519,16 +519,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -587,16 +587,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -655,17 +655,17 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: "" # String | + x_org_id: '' # String | skip: 0, # Integer | The offset into the records to return. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -687,7 +687,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **x_org_id** | **String**| | [optional] [default to ] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] ### Return type @@ -725,16 +725,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -793,15 +793,15 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = "user_id_example" # String | ObjectID of the User. +user_id = 'user_id_example' # String | ObjectID of the User. -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::Emailrequest.new, # Emailrequest | - x_org_id: "" # String | + x_org_id: '' # String | } begin diff --git a/jcapiv2/docs/WorkdayImportApi.md b/jcapiv2/docs/WorkdayImportApi.md index fcc049c..867b372 100644 --- a/jcapiv2/docs/WorkdayImportApi.md +++ b/jcapiv2/docs/WorkdayImportApi.md @@ -38,15 +38,15 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = "workday_id_example" # String | +workday_id = 'workday_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::AuthInputObject.new, # AuthInputObject | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -103,14 +103,14 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = "workday_id_example" # String | +workday_id = 'workday_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -166,14 +166,14 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -230,14 +230,14 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -294,15 +294,15 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = "workday_id_example" # String | +workday_id = 'workday_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: [JCAPIv2::BulkUserCreate.new], # Array | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -360,18 +360,18 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = "id_example" # String | +id = 'id_example' # String | -job_id = "job_id_example" # String | +job_id = 'job_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -431,17 +431,17 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: '' # String | } begin @@ -459,11 +459,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -502,13 +502,13 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::WorkdayInput.new, # WorkdayInput | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -564,15 +564,15 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = "id_example" # String | +id = 'id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { body: JCAPIv2::WorkdayFields.new, # WorkdayFields | - x_org_id: "" # String | + x_org_id: '' # String | } begin @@ -630,13 +630,13 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { - state: "state_example", # String | - x_org_id: "" # String | + state: 'state_example', # String | + x_org_id: '' # String | } begin @@ -692,17 +692,17 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = "workday_id_example" # String | +workday_id = 'workday_id_example' # String | -content_type = "application/json" # String | +content_type = 'application/json' # String | -accept = "application/json" # String | +accept = 'application/json' # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: "" # String | + sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: '' # String | } begin @@ -723,7 +723,7 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/jcapiv2.gemspec b/jcapiv2/jcapiv2.gemspec index 31e0276..709f614 100644 --- a/jcapiv2/jcapiv2.gemspec +++ b/jcapiv2/jcapiv2.gemspec @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- -# + =begin #JumpCloud APIs @@ -8,7 +8,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -24,8 +24,7 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/swagger-api/swagger-codegen" s.summary = "JumpCloud APIs Ruby Gem" s.description = " JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph." - # TODO uncommnet and update below with a proper license - #s.license = "Apache 2.0" + s.license = "Unlicense" s.required_ruby_version = ">= 1.9" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' @@ -39,7 +38,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16' s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12' - s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? } + s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] s.require_paths = ["lib"] diff --git a/jcapiv2/lib/jcapiv2.rb b/jcapiv2/lib/jcapiv2.rb index ad52280..83bdc91 100644 --- a/jcapiv2/lib/jcapiv2.rb +++ b/jcapiv2/lib/jcapiv2.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end diff --git a/jcapiv2/lib/jcapiv2/api/active_directory_api.rb b/jcapiv2/lib/jcapiv2/api/active_directory_api.rb index fccb576..9528bea 100644 --- a/jcapiv2/lib/jcapiv2/api/active_directory_api.rb +++ b/jcapiv2/lib/jcapiv2/api/active_directory_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class ActiveDirectoryApi @@ -19,7 +19,6 @@ class ActiveDirectoryApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete an Active Directory # This endpoint allows you to delete an Active Directory Instance. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID} \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY' ``` # @param id ObjectID of this Active Directory instance. @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def activedirectories_delete(id, content_type, accept, opts = {}) activedirectories_delete_with_http_info(id, content_type, accept, opts) - return nil + nil end # Delete an Active Directory @@ -43,7 +42,7 @@ def activedirectories_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_delete ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -58,7 +57,7 @@ def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_delete" end # resource path - local_var_path = "/activedirectories/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/activedirectories/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -90,7 +89,6 @@ def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Get an Active Directory # This endpoint returns a specific Active Directory. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID} \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of this Active Directory instance. @@ -101,7 +99,7 @@ def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) # @return [ActiveDirectoryOutput] def activedirectories_get(id, content_type, accept, opts = {}) data, _status_code, _headers = activedirectories_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get an Active Directory @@ -114,7 +112,7 @@ def activedirectories_get(id, content_type, accept, opts = {}) # @return [Array<(ActiveDirectoryOutput, Fixnum, Hash)>] ActiveDirectoryOutput data, response status code and response headers def activedirectories_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_get ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -129,7 +127,7 @@ def activedirectories_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_get" end # resource path - local_var_path = "/activedirectories/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/activedirectories/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -162,22 +160,21 @@ def activedirectories_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List Active Directories # This endpoint allows you to list all your Active Directory Instances. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/ \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def activedirectories_list(content_type, accept, opts = {}) data, _status_code, _headers = activedirectories_list_with_http_info(content_type, accept, opts) - return data + data end # List Active Directories @@ -194,7 +191,7 @@ def activedirectories_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def activedirectories_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_list ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -205,7 +202,7 @@ def activedirectories_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_list" end # resource path - local_var_path = "/activedirectories" + local_var_path = '/activedirectories' # query parameters query_params = {} @@ -243,7 +240,6 @@ def activedirectories_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create a new Active Directory # This endpoint allows you to create a new Active Directory. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/activedirectories/ \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"domain\": \"{DC=AD_domain_name;DC=com}\" } ' ``` # @param content_type @@ -254,7 +250,7 @@ def activedirectories_list_with_http_info(content_type, accept, opts = {}) # @return [ActiveDirectoryOutput] def activedirectories_post(content_type, accept, opts = {}) data, _status_code, _headers = activedirectories_post_with_http_info(content_type, accept, opts) - return data + data end # Create a new Active Directory @@ -267,7 +263,7 @@ def activedirectories_post(content_type, accept, opts = {}) # @return [Array<(ActiveDirectoryOutput, Fixnum, Hash)>] ActiveDirectoryOutput data, response status code and response headers def activedirectories_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_post ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -278,7 +274,7 @@ def activedirectories_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_post" end # resource path - local_var_path = "/activedirectories" + local_var_path = '/activedirectories' # query parameters query_params = {} @@ -311,7 +307,6 @@ def activedirectories_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # List the associations of an Active Directory instance # This endpoint returns the direct associations of this Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/associations?targets=user \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id @@ -325,7 +320,7 @@ def activedirectories_post_with_http_info(content_type, accept, opts = {}) # @return [Array] def graph_active_directory_associations_list(activedirectory_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts) - return data + data end # List the associations of an Active Directory instance @@ -341,7 +336,7 @@ def graph_active_directory_associations_list(activedirectory_id, targets, conten # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.graph_active_directory_associations_list ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.graph_active_directory_associations_list ...' end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -360,7 +355,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.graph_active_directory_associations_list" end # resource path - local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -396,7 +391,6 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, end return data, status_code, headers end - # Manage the associations of an Active Directory instance # This endpoint allows you to manage the _direct_ associations of an Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/activedirectories/{AD_Instance_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" } ' ``` # @param activedirectory_id @@ -408,7 +402,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, # @return [nil] def graph_active_directory_associations_post(activedirectory_id, content_type, accept, opts = {}) graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts) - return nil + nil end # Manage the associations of an Active Directory instance @@ -422,7 +416,7 @@ def graph_active_directory_associations_post(activedirectory_id, content_type, a # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.graph_active_directory_associations_post ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.graph_active_directory_associations_post ...' end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -437,7 +431,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.graph_active_directory_associations_post" end # resource path - local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -469,7 +463,6 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, end return data, status_code, headers end - # List the User Groups bound to an Active Directory instance # This endpoint will return all Users Groups bound to an Active Directory instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Active Directory instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Active Directory instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id ObjectID of the Active Directory instance. @@ -482,7 +475,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, # @return [Array] def graph_active_directory_traverse_user_group(activedirectory_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts) - return data + data end # List the User Groups bound to an Active Directory instance @@ -497,7 +490,7 @@ def graph_active_directory_traverse_user_group(activedirectory_id, content_type, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.graph_active_directory_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.graph_active_directory_traverse_user_group ...' end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -512,7 +505,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.graph_active_directory_traverse_user_group" end # resource path - local_var_path = "/activedirectories/{activedirectory_id}/usergroups".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = '/activedirectories/{activedirectory_id}/usergroups'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/applications_api.rb b/jcapiv2/lib/jcapiv2/api/applications_api.rb index 75ef44f..9b5c0e8 100644 --- a/jcapiv2/lib/jcapiv2/api/applications_api.rb +++ b/jcapiv2/lib/jcapiv2/api/applications_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class ApplicationsApi @@ -19,7 +19,6 @@ class ApplicationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of an Application # This endpoint will return the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Applications and User Groups. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_application_associations_list(application_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts) - return data + data end # List the associations of an Application @@ -49,7 +48,7 @@ def graph_application_associations_list(application_id, targets, content_type, a # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_associations_list ..." + @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_associations_list ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -68,7 +67,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_associations_list" end # resource path - local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_application_associations_list_with_http_info(application_id, targets, end return data, status_code, headers end - # Manage the associations of an Application # This endpoint allows you to manage the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Application and User Groups. #### Sample Request ``` curl -X POST 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations' \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param application_id ObjectID of the Application. @@ -116,7 +114,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, # @return [nil] def graph_application_associations_post(application_id, content_type, accept, opts = {}) graph_application_associations_post_with_http_info(application_id, content_type, accept, opts) - return nil + nil end # Manage the associations of an Application @@ -130,7 +128,7 @@ def graph_application_associations_post(application_id, content_type, accept, op # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_application_associations_post_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_associations_post ..." + @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_associations_post ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -145,7 +143,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_associations_post" end # resource path - local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_application_associations_post_with_http_info(application_id, content_t end return data, status_code, headers end - # List the Users bound to an Application # This endpoint will return all Users bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -190,7 +187,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t # @return [Array] def graph_application_traverse_user(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts) - return data + data end # List the Users bound to an Application @@ -205,7 +202,7 @@ def graph_application_traverse_user(application_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_traverse_user ..." + @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_traverse_user ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -220,7 +217,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_traverse_user" end # resource path - local_var_path = "/applications/{application_id}/users".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/users'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, end return data, status_code, headers end - # List the User Groups bound to an Application # This endpoint will return all Users Groups bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -268,7 +264,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, # @return [Array] def graph_application_traverse_user_group(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts) - return data + data end # List the User Groups bound to an Application @@ -283,7 +279,7 @@ def graph_application_traverse_user_group(application_id, content_type, accept, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_traverse_user_group ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -298,7 +294,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_traverse_user_group" end # resource path - local_var_path = "/applications/{application_id}/usergroups".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/usergroups'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb b/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb index 535f95a..2526239 100644 --- a/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb +++ b/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class BulkJobRequestsApi @@ -19,7 +19,6 @@ class BulkJobRequestsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Bulk Users Create # The endpoint allows you to create a bulk job to asynchronously create users. See [Create a System User](https://docs.jumpcloud.com/1.0/systemusers/create-a-system-user) for full list of attributes. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/bulk/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '[ { \"email\":\"{email}\", \"firstname\":\"{firstname}\", \"lastname\":\"{firstname}\", \"username\":\"{username}\", \"attributes\":[ {\"name\":\"EmployeeID\",\"value\":\"0000\"}, {\"name\":\"Custom\",\"value\":\"attribute\"} ] } ] ``` # @param content_type @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [JobId] def bulk_users_create(content_type, accept, opts = {}) data, _status_code, _headers = bulk_users_create_with_http_info(content_type, accept, opts) - return data + data end # Bulk Users Create @@ -43,7 +42,7 @@ def bulk_users_create(content_type, accept, opts = {}) # @return [Array<(JobId, Fixnum, Hash)>] JobId data, response status code and response headers def bulk_users_create_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.bulk_users_create ..." + @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.bulk_users_create ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -54,7 +53,7 @@ def bulk_users_create_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.bulk_users_create" end # resource path - local_var_path = "/bulk/users" + local_var_path = '/bulk/users' # query parameters query_params = {} @@ -87,7 +86,6 @@ def bulk_users_create_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # List Bulk Users Results # This endpoint will return the results of particular user import or update job request. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/bulk/users/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param job_id @@ -100,7 +98,7 @@ def bulk_users_create_with_http_info(content_type, accept, opts = {}) # @return [Array] def bulk_users_create_results(job_id, content_type, accept, opts = {}) data, _status_code, _headers = bulk_users_create_results_with_http_info(job_id, content_type, accept, opts) - return data + data end # List Bulk Users Results @@ -115,7 +113,7 @@ def bulk_users_create_results(job_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.bulk_users_create_results ..." + @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.bulk_users_create_results ...' end # verify the required parameter 'job_id' is set if @api_client.config.client_side_validation && job_id.nil? @@ -130,7 +128,7 @@ def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.bulk_users_create_results" end # resource path - local_var_path = "/bulk/users/{job_id}/results".sub('{' + 'job_id' + '}', job_id.to_s) + local_var_path = '/bulk/users/{job_id}/results'.sub('{' + 'job_id' + '}', job_id.to_s) # query parameters query_params = {} @@ -165,7 +163,6 @@ def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts end return data, status_code, headers end - # Bulk Users Update # The endpoint allows you to create a bulk job to asynchronously update users. See [Update a System User](https://docs.jumpcloud.com/1.0/systemusers/update-a-system-user) for full list of attributes. #### Sample Request ``` curl -X PATCH https://console.jumpcloud.com/api/v2/bulk/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '[ { \"id\":\"5be9fb4ddb01290001e85109\", \"firstname\":\"{UPDATED_FIRSTNAME}\", \"department\":\"{UPDATED_DEPARTMENT}\", \"attributes\":[ {\"name\":\"Custom\",\"value\":\"{ATTRIBUTE_VALUE}\"} ] }, { \"id\":\"5be9fb4ddb01290001e85109\", \"firstname\":\"{UPDATED_FIRSTNAME}\", \"costCenter\":\"{UPDATED_COST_CENTER}\", \"phoneNumbers\":[ {\"type\":\"home\",\"number\":\"{HOME_PHONE_NUMBER}\"}, {\"type\":\"work\",\"number\":\"{WORK_PHONE_NUMBER}\"} ] } ] ``` # @param content_type @@ -176,7 +173,7 @@ def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts # @return [JobId] def bulk_users_update(content_type, accept, opts = {}) data, _status_code, _headers = bulk_users_update_with_http_info(content_type, accept, opts) - return data + data end # Bulk Users Update @@ -189,7 +186,7 @@ def bulk_users_update(content_type, accept, opts = {}) # @return [Array<(JobId, Fixnum, Hash)>] JobId data, response status code and response headers def bulk_users_update_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.bulk_users_update ..." + @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.bulk_users_update ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -200,7 +197,7 @@ def bulk_users_update_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.bulk_users_update" end # resource path - local_var_path = "/bulk/users" + local_var_path = '/bulk/users' # query parameters query_params = {} @@ -233,7 +230,6 @@ def bulk_users_update_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Get Job (incomplete) # **This endpoint is not complete and should remain hidden as it's not functional yet.** # @param id @@ -244,7 +240,7 @@ def bulk_users_update_with_http_info(content_type, accept, opts = {}) # @return [JobDetails] def jobs_get(id, content_type, accept, opts = {}) data, _status_code, _headers = jobs_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get Job (incomplete) @@ -257,7 +253,7 @@ def jobs_get(id, content_type, accept, opts = {}) # @return [Array<(JobDetails, Fixnum, Hash)>] JobDetails data, response status code and response headers def jobs_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.jobs_get ..." + @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.jobs_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -272,7 +268,7 @@ def jobs_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.jobs_get" end # resource path - local_var_path = "/jobs/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/jobs/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -305,7 +301,6 @@ def jobs_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List Job Results # This endpoint will return the results of particular import job request. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/jobs/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -318,7 +313,7 @@ def jobs_get_with_http_info(id, content_type, accept, opts = {}) # @return [Array] def jobs_results(id, content_type, accept, opts = {}) data, _status_code, _headers = jobs_results_with_http_info(id, content_type, accept, opts) - return data + data end # List Job Results @@ -333,7 +328,7 @@ def jobs_results(id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def jobs_results_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.jobs_results ..." + @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.jobs_results ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -348,7 +343,7 @@ def jobs_results_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.jobs_results" end # resource path - local_var_path = "/jobs/{id}/results".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/jobs/{id}/results'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/commands_api.rb b/jcapiv2/lib/jcapiv2/api/commands_api.rb index 3bd8642..c5e2edd 100644 --- a/jcapiv2/lib/jcapiv2/api/commands_api.rb +++ b/jcapiv2/lib/jcapiv2/api/commands_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class CommandsApi @@ -19,7 +19,6 @@ class CommandsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a Command # This endpoint will return the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations?targets=system_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_command_associations_list(command_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts) - return data + data end # List the associations of a Command @@ -49,7 +48,7 @@ def graph_command_associations_list(command_id, targets, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_associations_list ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_associations_list ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -68,7 +67,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_associations_list" end # resource path - local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ end return data, status_code, headers end - # Manage the associations of a Command # This endpoint will allow you to manage the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"Group_ID\" }' ``` # @param command_id ObjectID of the Command. @@ -116,7 +114,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ # @return [nil] def graph_command_associations_post(command_id, content_type, accept, opts = {}) graph_command_associations_post_with_http_info(command_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a Command @@ -130,7 +128,7 @@ def graph_command_associations_post(command_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_command_associations_post_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_associations_post ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_associations_post ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -145,7 +143,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_associations_post" end # resource path - local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc end return data, status_code, headers end - # List the Systems bound to a Command # This endpoint will return all Systems bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systems \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -190,7 +187,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc # @return [Array] def graph_command_traverse_system(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts) - return data + data end # List the Systems bound to a Command @@ -205,7 +202,7 @@ def graph_command_traverse_system(command_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_traverse_system ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_traverse_system ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -220,7 +217,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_traverse_system" end # resource path - local_var_path = "/commands/{command_id}/systems".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/systems'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep end return data, status_code, headers end - # List the System Groups bound to a Command # This endpoint will return all System Groups bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systemgroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -268,7 +264,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep # @return [Array] def graph_command_traverse_system_group(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts) - return data + data end # List the System Groups bound to a Command @@ -283,7 +279,7 @@ def graph_command_traverse_system_group(command_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_traverse_system_group ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -298,7 +294,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_traverse_system_group" end # resource path - local_var_path = "/commands/{command_id}/systemgroups".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/systemgroups'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/directories_api.rb b/jcapiv2/lib/jcapiv2/api/directories_api.rb index dfc5cf4..5cbd04e 100644 --- a/jcapiv2/lib/jcapiv2/api/directories_api.rb +++ b/jcapiv2/lib/jcapiv2/api/directories_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class DirectoriesApi @@ -19,21 +19,20 @@ class DirectoriesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List All Directories # This endpoint returns all active directories (LDAP, O365 Suite, G-Suite). #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/directories \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :x_org_id (default to ) # @return [Array] def directories_list(content_type, accept, opts = {}) data, _status_code, _headers = directories_list_with_http_info(content_type, accept, opts) - return data + data end # List All Directories @@ -49,7 +48,7 @@ def directories_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def directories_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: DirectoriesApi.directories_list ..." + @api_client.config.logger.debug 'Calling API: DirectoriesApi.directories_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -60,7 +59,7 @@ def directories_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling DirectoriesApi.directories_list" end # resource path - local_var_path = "/directories" + local_var_path = '/directories' # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/fde_api.rb b/jcapiv2/lib/jcapiv2/api/fde_api.rb index 9bf1afd..96a70b8 100644 --- a/jcapiv2/lib/jcapiv2/api/fde_api.rb +++ b/jcapiv2/lib/jcapiv2/api/fde_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class FdeApi @@ -19,7 +19,6 @@ class FdeApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get System FDE Key # This endpoint will return the current (latest) fde key saved for a system. # @param system_id @@ -28,7 +27,7 @@ def initialize(api_client = ApiClient.default) # @return [Systemfdekey] def systems_get_fde_key(system_id, opts = {}) data, _status_code, _headers = systems_get_fde_key_with_http_info(system_id, opts) - return data + data end # Get System FDE Key @@ -39,14 +38,14 @@ def systems_get_fde_key(system_id, opts = {}) # @return [Array<(Systemfdekey, Fixnum, Hash)>] Systemfdekey data, response status code and response headers def systems_get_fde_key_with_http_info(system_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: FdeApi.systems_get_fde_key ..." + @api_client.config.logger.debug 'Calling API: FdeApi.systems_get_fde_key ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling FdeApi.systems_get_fde_key" end # resource path - local_var_path = "/systems/{system_id}/fdekey".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/fdekey'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/g_suite_api.rb b/jcapiv2/lib/jcapiv2/api/g_suite_api.rb index 8a8b87e..b5f3343 100644 --- a/jcapiv2/lib/jcapiv2/api/g_suite_api.rb +++ b/jcapiv2/lib/jcapiv2/api/g_suite_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class GSuiteApi @@ -19,7 +19,6 @@ class GSuiteApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts) - return data + data end # List the associations of a G Suite instance @@ -49,7 +48,7 @@ def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, op # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_associations_list ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_associations_list ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -68,7 +67,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.graph_g_suite_associations_list" end # resource path - local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t end return data, status_code, headers end - # Manage the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -114,7 +112,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t # @return [nil] def graph_g_suite_associations_post(gsuite_id, opts = {}) graph_g_suite_associations_post_with_http_info(gsuite_id, opts) - return nil + nil end # Manage the associations of a G Suite instance @@ -126,14 +124,14 @@ def graph_g_suite_associations_post(gsuite_id, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_associations_post ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_associations_post ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? fail ArgumentError, "Missing the required parameter 'gsuite_id' when calling GSuiteApi.graph_g_suite_associations_post" end # resource path - local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -163,7 +161,6 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) end return data, status_code, headers end - # List the Users bound to a G Suite instance # This endpoint will return all Users bound to a G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -176,7 +173,7 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) # @return [Array] def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts) - return data + data end # List the Users bound to a G Suite instance @@ -191,7 +188,7 @@ def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_traverse_user ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -206,7 +203,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.graph_g_suite_traverse_user" end # resource path - local_var_path = "/gsuites/{gsuite_id}/users".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/users'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -241,7 +238,6 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, end return data, status_code, headers end - # List the User Groups bound to a G Suite instance # This endpoint will return all User Groups bound to an G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{GSuite_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -254,7 +250,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, # @return [Array] def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a G Suite instance @@ -269,7 +265,7 @@ def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_traverse_user_group ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -284,7 +280,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.graph_g_suite_traverse_user_group" end # resource path - local_var_path = "/gsuites/{gsuite_id}/usergroups".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/usergroups'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -319,7 +315,6 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac end return data, status_code, headers end - # Deletes a G Suite translation rule # This endpoint allows you to delete a translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id @@ -330,7 +325,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac # @return [nil] def translation_rules_g_suite_delete(gsuite_id, id, content_type, accept, opts = {}) translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, accept, opts) - return nil + nil end # Deletes a G Suite translation rule @@ -343,7 +338,7 @@ def translation_rules_g_suite_delete(gsuite_id, id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_delete ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_delete ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -362,7 +357,7 @@ def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_delete" end # resource path - local_var_path = "/gsuites/{gsuite_id}/translationrules/{id}".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/gsuites/{gsuite_id}/translationrules/{id}'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -393,7 +388,6 @@ def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, end return data, status_code, headers end - # Gets a specific g suite translation rule # This endpoint returns a specific translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. ###### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id @@ -404,7 +398,7 @@ def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, # @return [GSuiteTranslationRule] def translation_rules_g_suite_get(gsuite_id, id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, accept, opts) - return data + data end # Gets a specific g suite translation rule @@ -417,7 +411,7 @@ def translation_rules_g_suite_get(gsuite_id, id, content_type, accept, opts = {} # @return [Array<(GSuiteTranslationRule, Fixnum, Hash)>] GSuiteTranslationRule data, response status code and response headers def translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_get ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_get ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -436,7 +430,7 @@ def translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_get" end # resource path - local_var_path = "/gsuites/{gsuite_id}/translationrules/{id}".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/gsuites/{gsuite_id}/translationrules/{id}'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -468,22 +462,21 @@ def translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, ac end return data, status_code, headers end - # List all the G Suite Translation Rules # This endpoint returns all graph translation rules for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @return [Array] def translation_rules_g_suite_list(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accept, opts) - return data + data end # List all the G Suite Translation Rules @@ -500,7 +493,7 @@ def translation_rules_g_suite_list(gsuite_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_list ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_list ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -515,7 +508,7 @@ def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_list" end # resource path - local_var_path = "/gsuites/{gsuite_id}/translationrules".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/translationrules'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -552,7 +545,6 @@ def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accep end return data, status_code, headers end - # Create a new G Suite Translation Rule # This endpoint allows you to create a translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ {Translation Rule Parameters} }' ``` # @param gsuite_id @@ -563,7 +555,7 @@ def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accep # @return [GSuiteTranslationRule] def translation_rules_g_suite_post(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_g_suite_post_with_http_info(gsuite_id, content_type, accept, opts) - return data + data end # Create a new G Suite Translation Rule @@ -576,7 +568,7 @@ def translation_rules_g_suite_post(gsuite_id, content_type, accept, opts = {}) # @return [Array<(GSuiteTranslationRule, Fixnum, Hash)>] GSuiteTranslationRule data, response status code and response headers def translation_rules_g_suite_post_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_post ..." + @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_post ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -591,7 +583,7 @@ def translation_rules_g_suite_post_with_http_info(gsuite_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_post" end # resource path - local_var_path = "/gsuites/{gsuite_id}/translationrules".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/translationrules'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/graph_api.rb b/jcapiv2/lib/jcapiv2/api/graph_api.rb index 5c2010e..49d91fd 100644 --- a/jcapiv2/lib/jcapiv2/api/graph_api.rb +++ b/jcapiv2/lib/jcapiv2/api/graph_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class GraphApi @@ -19,7 +19,6 @@ class GraphApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of an Active Directory instance # This endpoint returns the direct associations of this Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/associations?targets=user \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_active_directory_associations_list(activedirectory_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts) - return data + data end # List the associations of an Active Directory instance @@ -49,7 +48,7 @@ def graph_active_directory_associations_list(activedirectory_id, targets, conten # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_active_directory_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_active_directory_associations_list ...' end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -68,7 +67,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_active_directory_associations_list" end # resource path - local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, end return data, status_code, headers end - # Manage the associations of an Active Directory instance # This endpoint allows you to manage the _direct_ associations of an Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/activedirectories/{AD_Instance_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" } ' ``` # @param activedirectory_id @@ -116,7 +114,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, # @return [nil] def graph_active_directory_associations_post(activedirectory_id, content_type, accept, opts = {}) graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts) - return nil + nil end # Manage the associations of an Active Directory instance @@ -130,7 +128,7 @@ def graph_active_directory_associations_post(activedirectory_id, content_type, a # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_active_directory_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_active_directory_associations_post ...' end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -145,7 +143,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_active_directory_associations_post" end # resource path - local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, end return data, status_code, headers end - # List the User Groups bound to an Active Directory instance # This endpoint will return all Users Groups bound to an Active Directory instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Active Directory instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Active Directory instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id ObjectID of the Active Directory instance. @@ -190,7 +187,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, # @return [Array] def graph_active_directory_traverse_user_group(activedirectory_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts) - return data + data end # List the User Groups bound to an Active Directory instance @@ -205,7 +202,7 @@ def graph_active_directory_traverse_user_group(activedirectory_id, content_type, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_active_directory_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_active_directory_traverse_user_group ...' end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -220,7 +217,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_active_directory_traverse_user_group" end # resource path - local_var_path = "/activedirectories/{activedirectory_id}/usergroups".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = '/activedirectories/{activedirectory_id}/usergroups'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id end return data, status_code, headers end - # List the associations of an Application # This endpoint will return the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Applications and User Groups. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -269,7 +265,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id # @return [Array] def graph_application_associations_list(application_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts) - return data + data end # List the associations of an Application @@ -285,7 +281,7 @@ def graph_application_associations_list(application_id, targets, content_type, a # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_application_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_associations_list ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -304,7 +300,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_associations_list" end # resource path - local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -340,7 +336,6 @@ def graph_application_associations_list_with_http_info(application_id, targets, end return data, status_code, headers end - # Manage the associations of an Application # This endpoint allows you to manage the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Application and User Groups. #### Sample Request ``` curl -X POST 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations' \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param application_id ObjectID of the Application. @@ -352,7 +347,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, # @return [nil] def graph_application_associations_post(application_id, content_type, accept, opts = {}) graph_application_associations_post_with_http_info(application_id, content_type, accept, opts) - return nil + nil end # Manage the associations of an Application @@ -366,7 +361,7 @@ def graph_application_associations_post(application_id, content_type, accept, op # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_application_associations_post_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_application_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_associations_post ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -381,7 +376,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_associations_post" end # resource path - local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -413,7 +408,6 @@ def graph_application_associations_post_with_http_info(application_id, content_t end return data, status_code, headers end - # List the Users bound to an Application # This endpoint will return all Users bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -426,7 +420,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t # @return [Array] def graph_application_traverse_user(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts) - return data + data end # List the Users bound to an Application @@ -441,7 +435,7 @@ def graph_application_traverse_user(application_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_application_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_traverse_user ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -456,7 +450,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_traverse_user" end # resource path - local_var_path = "/applications/{application_id}/users".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/users'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -491,7 +485,6 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, end return data, status_code, headers end - # List the User Groups bound to an Application # This endpoint will return all Users Groups bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -504,7 +497,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, # @return [Array] def graph_application_traverse_user_group(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts) - return data + data end # List the User Groups bound to an Application @@ -519,7 +512,7 @@ def graph_application_traverse_user_group(application_id, content_type, accept, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_application_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_traverse_user_group ...' end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -534,7 +527,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_traverse_user_group" end # resource path - local_var_path = "/applications/{application_id}/usergroups".sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = '/applications/{application_id}/usergroups'.sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -569,7 +562,6 @@ def graph_application_traverse_user_group_with_http_info(application_id, content end return data, status_code, headers end - # List the associations of a Command # This endpoint will return the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations?targets=system_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -583,7 +575,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content # @return [Array] def graph_command_associations_list(command_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts) - return data + data end # List the associations of a Command @@ -599,7 +591,7 @@ def graph_command_associations_list(command_id, targets, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_command_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_associations_list ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -618,7 +610,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_associations_list" end # resource path - local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -654,7 +646,6 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ end return data, status_code, headers end - # Manage the associations of a Command # This endpoint will allow you to manage the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"Group_ID\" }' ``` # @param command_id ObjectID of the Command. @@ -666,7 +657,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ # @return [nil] def graph_command_associations_post(command_id, content_type, accept, opts = {}) graph_command_associations_post_with_http_info(command_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a Command @@ -680,7 +671,7 @@ def graph_command_associations_post(command_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_command_associations_post_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_command_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_associations_post ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -695,7 +686,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_associations_post" end # resource path - local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -727,7 +718,6 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc end return data, status_code, headers end - # List the Systems bound to a Command # This endpoint will return all Systems bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systems \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -740,7 +730,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc # @return [Array] def graph_command_traverse_system(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts) - return data + data end # List the Systems bound to a Command @@ -755,7 +745,7 @@ def graph_command_traverse_system(command_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_command_traverse_system ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_traverse_system ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -770,7 +760,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_traverse_system" end # resource path - local_var_path = "/commands/{command_id}/systems".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/systems'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -805,7 +795,6 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep end return data, status_code, headers end - # List the System Groups bound to a Command # This endpoint will return all System Groups bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systemgroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -818,7 +807,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep # @return [Array] def graph_command_traverse_system_group(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts) - return data + data end # List the System Groups bound to a Command @@ -833,7 +822,7 @@ def graph_command_traverse_system_group(command_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_command_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_traverse_system_group ...' end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -848,7 +837,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_traverse_system_group" end # resource path - local_var_path = "/commands/{command_id}/systemgroups".sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = '/commands/{command_id}/systemgroups'.sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -883,7 +872,6 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, end return data, status_code, headers end - # List the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -897,7 +885,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, # @return [Array] def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts) - return data + data end # List the associations of a G Suite instance @@ -913,7 +901,7 @@ def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, op # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_associations_list ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -932,7 +920,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_g_suite_associations_list" end # resource path - local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -968,7 +956,6 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t end return data, status_code, headers end - # Manage the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -978,7 +965,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t # @return [nil] def graph_g_suite_associations_post(gsuite_id, opts = {}) graph_g_suite_associations_post_with_http_info(gsuite_id, opts) - return nil + nil end # Manage the associations of a G Suite instance @@ -990,14 +977,14 @@ def graph_g_suite_associations_post(gsuite_id, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_associations_post ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? fail ArgumentError, "Missing the required parameter 'gsuite_id' when calling GraphApi.graph_g_suite_associations_post" end # resource path - local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -1027,7 +1014,6 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) end return data, status_code, headers end - # List the Users bound to a G Suite instance # This endpoint will return all Users bound to a G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -1040,7 +1026,7 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) # @return [Array] def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts) - return data + data end # List the Users bound to a G Suite instance @@ -1055,7 +1041,7 @@ def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_traverse_user ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -1070,7 +1056,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_g_suite_traverse_user" end # resource path - local_var_path = "/gsuites/{gsuite_id}/users".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/users'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -1105,7 +1091,6 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, end return data, status_code, headers end - # List the User Groups bound to a G Suite instance # This endpoint will return all User Groups bound to an G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{GSuite_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -1118,7 +1103,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, # @return [Array] def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a G Suite instance @@ -1133,7 +1118,7 @@ def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_traverse_user_group ...' end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -1148,7 +1133,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_g_suite_traverse_user_group" end # resource path - local_var_path = "/gsuites/{gsuite_id}/usergroups".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = '/gsuites/{gsuite_id}/usergroups'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -1183,7 +1168,6 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac end return data, status_code, headers end - # List the associations of a LDAP Server # This endpoint returns the _direct_ associations of this LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1197,7 +1181,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac # @return [Array] def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts) - return data + data end # List the associations of a LDAP Server @@ -1213,7 +1197,7 @@ def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, ac # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_associations_list ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1232,7 +1216,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_associations_list" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1268,7 +1252,6 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c end return data, status_code, headers end - # Manage the associations of a LDAP Server # This endpoint allows you to manage the _direct_ associations of a LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1280,7 +1263,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c # @return [nil] def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opts = {}) graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a LDAP Server @@ -1294,7 +1277,7 @@ def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opt # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_associations_post ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1309,7 +1292,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_associations_post" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1341,7 +1324,6 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty end return data, status_code, headers end - # List the Users bound to a LDAP Server # This endpoint will return all Users bound to an LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1354,7 +1336,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty # @return [Array] def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts) - return data + data end # List the Users bound to a LDAP Server @@ -1369,7 +1351,7 @@ def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_traverse_user ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1384,7 +1366,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_traverse_user" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/users".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/users'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1419,7 +1401,6 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, end return data, status_code, headers end - # List the User Groups bound to a LDAP Server # This endpoint will return all Users Groups bound to a LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1432,7 +1413,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, # @return [Array] def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a LDAP Server @@ -1447,7 +1428,7 @@ def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_traverse_user_group ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1462,7 +1443,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_traverse_user_group" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/usergroups".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/usergroups'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1497,7 +1478,6 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ end return data, status_code, headers end - # List the associations of an Office 365 instance # This endpoint returns _direct_ associations of an Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -1511,7 +1491,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ # @return [Array] def graph_office365_associations_list(office365_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts) - return data + data end # List the associations of an Office 365 instance @@ -1527,7 +1507,7 @@ def graph_office365_associations_list(office365_id, targets, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_associations_list ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1546,7 +1526,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_associations_list" end # resource path - local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1582,7 +1562,6 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont end return data, status_code, headers end - # Manage the associations of an Office 365 instance # This endpoint allows you to manage the _direct_ associations of a Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -1594,7 +1573,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont # @return [nil] def graph_office365_associations_post(office365_id, content_type, accept, opts = {}) graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts) - return nil + nil end # Manage the associations of an Office 365 instance @@ -1608,7 +1587,7 @@ def graph_office365_associations_post(office365_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_associations_post ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1623,7 +1602,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_associations_post" end # resource path - local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1655,7 +1634,6 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, end return data, status_code, headers end - # List the Users bound to an Office 365 instance # This endpoint will return all Users bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -1668,7 +1646,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, # @return [Array] def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts) - return data + data end # List the Users bound to an Office 365 instance @@ -1683,7 +1661,7 @@ def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_traverse_user ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1698,7 +1676,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_traverse_user" end # resource path - local_var_path = "/office365s/{office365_id}/users".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/users'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1733,7 +1711,6 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc end return data, status_code, headers end - # List the User Groups bound to an Office 365 instance # This endpoint will return all Users Groups bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -1746,7 +1723,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc # @return [Array] def graph_office365_traverse_user_group(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts) - return data + data end # List the User Groups bound to an Office 365 instance @@ -1761,7 +1738,7 @@ def graph_office365_traverse_user_group(office365_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_traverse_user_group ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1776,7 +1753,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_traverse_user_group" end # resource path - local_var_path = "/office365s/{office365_id}/usergroups".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/usergroups'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1811,7 +1788,6 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ end return data, status_code, headers end - # List the associations of a Policy # This endpoint returns the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Policy. @@ -1825,7 +1801,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ # @return [Array] def graph_policy_associations_list(policy_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts) - return data + data end # List the associations of a Policy @@ -1841,7 +1817,7 @@ def graph_policy_associations_list(policy_id, targets, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_associations_list ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1860,7 +1836,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_associations_list" end # resource path - local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -1896,7 +1872,6 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty end return data, status_code, headers end - # Manage the associations of a Policy # This endpoint allows you to manage the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{Group_ID}\" }' ``` # @param policy_id ObjectID of the Policy. @@ -1908,7 +1883,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty # @return [nil] def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a Policy @@ -1922,7 +1897,7 @@ def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_associations_post ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1937,7 +1912,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_associations_post" end # resource path - local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -1969,7 +1944,6 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep end return data, status_code, headers end - # List the Systems bound to a Policy # This endpoint will return all Systems bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -1982,7 +1956,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep # @return [Array] def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts) - return data + data end # List the Systems bound to a Policy @@ -1997,7 +1971,7 @@ def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_traverse_system ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_traverse_system ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -2012,7 +1986,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_traverse_system" end # resource path - local_var_path = "/policies/{policy_id}/systems".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/systems'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -2047,7 +2021,6 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, end return data, status_code, headers end - # List the System Groups bound to a Policy # This endpoint will return all Systems Groups bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -2060,7 +2033,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, # @return [Array] def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts) - return data + data end # List the System Groups bound to a Policy @@ -2075,7 +2048,7 @@ def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_traverse_system_group ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -2090,7 +2063,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_traverse_system_group" end # resource path - local_var_path = "/policies/{policy_id}/systemgroups".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/systemgroups'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -2125,7 +2098,6 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a end return data, status_code, headers end - # List the associations of a RADIUS Server # This endpoint returns the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2139,7 +2111,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a # @return [Array] def graph_radius_server_associations_list(radiusserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts) - return data + data end # List the associations of a RADIUS Server @@ -2155,7 +2127,7 @@ def graph_radius_server_associations_list(radiusserver_id, targets, content_type # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_associations_list ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2174,7 +2146,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_associations_list" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2210,7 +2182,6 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target end return data, status_code, headers end - # Manage the associations of a RADIUS Server # This endpoint allows you to manage the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"type\":\"user\", \"id\":\"{USER_ID}\", \"op\":\"add\" }' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2222,7 +2193,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target # @return [nil] def graph_radius_server_associations_post(radiusserver_id, content_type, accept, opts = {}) graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a RADIUS Server @@ -2236,7 +2207,7 @@ def graph_radius_server_associations_post(radiusserver_id, content_type, accept, # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_associations_post ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2251,7 +2222,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_associations_post" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2283,7 +2254,6 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten end return data, status_code, headers end - # List the Users bound to a RADIUS Server # This endpoint will return all Users bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2296,7 +2266,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten # @return [Array] def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts) - return data + data end # List the Users bound to a RADIUS Server @@ -2311,7 +2281,7 @@ def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_traverse_user ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2326,7 +2296,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_traverse_user" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/users".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/users'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2361,7 +2331,6 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty end return data, status_code, headers end - # List the User Groups bound to a RADIUS Server # This endpoint will return all Users Groups bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2374,7 +2343,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty # @return [Array] def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a RADIUS Server @@ -2389,7 +2358,7 @@ def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_traverse_user_group ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2404,7 +2373,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_traverse_user_group" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/usergroups".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/usergroups'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2439,7 +2408,6 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont end return data, status_code, headers end - # List the associations of a System # This endpoint returns the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -2455,7 +2423,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont # @return [Array] def graph_system_associations_list(system_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts) - return data + data end # List the associations of a System @@ -2473,7 +2441,7 @@ def graph_system_associations_list(system_id, content_type, accept, targets, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_associations_list ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -2492,7 +2460,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_system_associations_list" end # resource path - local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -2530,7 +2498,6 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep end return data, status_code, headers end - # Manage associations of a System # This endpoint allows you to manage the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"user\", \"id\": \"UserID\" }' ``` # @param system_id ObjectID of the System. @@ -2544,7 +2511,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep # @return [nil] def graph_system_associations_post(system_id, content_type, accept, opts = {}) graph_system_associations_post_with_http_info(system_id, content_type, accept, opts) - return nil + nil end # Manage associations of a System @@ -2560,7 +2527,7 @@ def graph_system_associations_post(system_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_associations_post_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_associations_post ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -2575,7 +2542,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_associations_post" end # resource path - local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -2609,7 +2576,6 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep end return data, status_code, headers end - # List the associations of a System Group # This endpoint returns the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -2623,7 +2589,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep # @return [Array] def graph_system_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - return data + data end # List the associations of a System Group @@ -2639,7 +2605,7 @@ def graph_system_group_associations_list(group_id, content_type, accept, targets # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_associations_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2658,7 +2624,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_system_group_associations_list" end # resource path - local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2694,7 +2660,6 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, end return data, status_code, headers end - # Manage the associations of a System Group # This endpoint allows you to manage the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{UserID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -2706,7 +2671,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, # @return [nil] def graph_system_group_associations_post(group_id, content_type, accept, opts = {}) graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a System Group @@ -2720,7 +2685,7 @@ def graph_system_group_associations_post(group_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_associations_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2735,7 +2700,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_associations_post" end # resource path - local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2767,22 +2732,21 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the System Group's parents # This endpoint returns all System Groups a System Group is a member of. This endpoint is not yet public as we haven't completed the code yet. # @param group_id ObjectID of the System Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Group's parents @@ -2799,7 +2763,7 @@ def graph_system_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_member_of ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_member_of ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2814,7 +2778,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_member_of" end # resource path - local_var_path = "/systemgroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2851,7 +2815,6 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the members of a System Group # This endpoint returns the system members of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -2864,7 +2827,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the members of a System Group @@ -2879,7 +2842,7 @@ def graph_system_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_members_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_members_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2894,7 +2857,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_members_list" end # resource path - local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2929,7 +2892,6 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep end return data, status_code, headers end - # Manage the members of a System Group # This endpoint allows you to manage the system members of a System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{System_ID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -2943,7 +2905,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep # @return [nil] def graph_system_group_members_post(group_id, content_type, accept, opts = {}) graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the members of a System Group @@ -2959,7 +2921,7 @@ def graph_system_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_members_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_members_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2974,7 +2936,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_members_post" end # resource path - local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3008,7 +2970,6 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep end return data, status_code, headers end - # List the System Group's membership # This endpoint returns all Systems that are a member of this System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3017,13 +2978,13 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_membership_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Group's membership @@ -3040,7 +3001,7 @@ def graph_system_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_membership ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_membership ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3055,7 +3016,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_membership" end # resource path - local_var_path = "/systemgroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3092,7 +3053,6 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the Commands bound to a System Group # This endpoint will return all Commands bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3105,7 +3065,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_traverse_command(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Commands bound to a System Group @@ -3120,7 +3080,7 @@ def graph_system_group_traverse_command(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_command ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_command ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3135,7 +3095,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_command" end # resource path - local_var_path = "/systemgroups/{group_id}/commands".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/commands'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3170,7 +3130,6 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the Policies bound to a System Group # This endpoint will return all Policies bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System Group. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not public yet as we haven't finished the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3183,7 +3142,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a # @return [Array] def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Policies bound to a System Group @@ -3198,7 +3157,7 @@ def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_policy ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_policy ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3213,7 +3172,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_policy" end # resource path - local_var_path = "/systemgroups/{group_id}/policies".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/policies'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3248,7 +3207,6 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # List the Users bound to a System Group # This endpoint will return all Users bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3261,7 +3219,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac # @return [Array] def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Users bound to a System Group @@ -3276,7 +3234,7 @@ def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_user ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3291,7 +3249,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_user" end # resource path - local_var_path = "/systemgroups/{group_id}/users".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/users'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3326,7 +3284,6 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce end return data, status_code, headers end - # List the User Groups bound to a System Group # This endpoint will return all User Groups bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3339,7 +3296,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce # @return [Array] def graph_system_group_traverse_user_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a System Group @@ -3354,7 +3311,7 @@ def graph_system_group_traverse_user_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_user_group ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3369,7 +3326,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_user_group" end # resource path - local_var_path = "/systemgroups/{group_id}/usergroups".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/usergroups'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3404,24 +3361,23 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type end return data, status_code, headers end - # List the parent Groups of a System # This endpoint returns all the System Groups a System is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_member_of(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_member_of_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the parent Groups of a System @@ -3440,7 +3396,7 @@ def graph_system_member_of(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_member_of_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_member_of ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_member_of ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3455,7 +3411,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_member_of" end # resource path - local_var_path = "/systems/{system_id}/memberof".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/memberof'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3494,7 +3450,6 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts end return data, status_code, headers end - # List the Commands bound to a System # This endpoint will return all Commands bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3507,7 +3462,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts # @return [Array] def graph_system_traverse_command(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the Commands bound to a System @@ -3522,7 +3477,7 @@ def graph_system_traverse_command(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_command ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_command ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3537,7 +3492,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_command" end # resource path - local_var_path = "/systems/{system_id}/commands".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/commands'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3572,7 +3527,6 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept end return data, status_code, headers end - # List the Policies bound to a System # This endpoint will return all Policies bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not yet public as we have finish the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/{System_ID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3585,7 +3539,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept # @return [Array] def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the Policies bound to a System @@ -3600,7 +3554,7 @@ def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_policy ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_policy ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3615,7 +3569,7 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_policy" end # resource path - local_var_path = "/systems/{system_id}/policies".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/policies'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3650,7 +3604,6 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, end return data, status_code, headers end - # List the Users bound to a System # This endpoint will return all Users bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3662,11 +3615,11 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @return [Array] def graph_system_traverse_user(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the Users bound to a System @@ -3684,7 +3637,7 @@ def graph_system_traverse_user(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_user ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_user ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3699,7 +3652,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_user" end # resource path - local_var_path = "/systems/{system_id}/users".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/users'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3737,7 +3690,6 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o end return data, status_code, headers end - # List the User Groups bound to a System # This endpoint will return all User Groups bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3752,7 +3704,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o # @return [Array] def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a System @@ -3769,7 +3721,7 @@ def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_user_group ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3784,7 +3736,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_user_group" end # resource path - local_var_path = "/systems/{system_id}/usergroups".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/usergroups'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3821,7 +3773,6 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc end return data, status_code, headers end - # List the associations of a User # This endpoint returns the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -3835,7 +3786,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc # @return [Array] def graph_user_associations_list(user_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts) - return data + data end # List the associations of a User @@ -3851,7 +3802,7 @@ def graph_user_associations_list(user_id, content_type, accept, targets, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_associations_list ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -3870,7 +3821,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_user_associations_list" end # resource path - local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -3906,7 +3857,6 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t end return data, status_code, headers end - # Manage the associations of a User # This endpoint allows you to manage the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/users/{UserID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{GroupID}\" }' # @param user_id ObjectID of the User. @@ -3918,7 +3868,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t # @return [nil] def graph_user_associations_post(user_id, content_type, accept, opts = {}) graph_user_associations_post_with_http_info(user_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a User @@ -3932,7 +3882,7 @@ def graph_user_associations_post(user_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_associations_post_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_associations_post ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -3947,7 +3897,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_associations_post" end # resource path - local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -3979,7 +3929,6 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o end return data, status_code, headers end - # List the associations of a User Group. # This endpoint returns the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations?targets=system \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -3993,7 +3942,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o # @return [Array] def graph_user_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - return data + data end # List the associations of a User Group. @@ -4009,7 +3958,7 @@ def graph_user_group_associations_list(group_id, content_type, accept, targets, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_associations_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_associations_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4028,7 +3977,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_user_group_associations_list" end # resource path - local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4064,7 +4013,6 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # Manage the associations of a User Group # This endpoint manages the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{SystemID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -4076,7 +4024,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac # @return [nil] def graph_user_group_associations_post(group_id, content_type, accept, opts = {}) graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a User Group @@ -4090,7 +4038,7 @@ def graph_user_group_associations_post(group_id, content_type, accept, opts = {} # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_associations_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_associations_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4105,7 +4053,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_associations_post" end # resource path - local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4137,22 +4085,21 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # List the User Group's parents # This endpoint returns all User Groups a User Group is a member of. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{group_id}/memberof ``` Not public yet, as the code is not finished, # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Group's parents @@ -4169,7 +4116,7 @@ def graph_user_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_member_of ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_member_of ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4184,7 +4131,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_member_of" end # resource path - local_var_path = "/usergroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4221,7 +4168,6 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op end return data, status_code, headers end - # List the members of a User Group # This endpoint returns the user members of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4234,7 +4180,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op # @return [Array] def graph_user_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the members of a User Group @@ -4249,7 +4195,7 @@ def graph_user_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_members_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_members_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4264,7 +4210,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_members_list" end # resource path - local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4299,7 +4245,6 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # Manage the members of a User Group # This endpoint allows you to manage the user members of a User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -4311,7 +4256,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, # @return [nil] def graph_user_group_members_post(group_id, content_type, accept, opts = {}) graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the members of a User Group @@ -4325,7 +4270,7 @@ def graph_user_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_members_post ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_members_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4340,7 +4285,7 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_members_post" end # resource path - local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4372,22 +4317,21 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the User Group's membership # This endpoint returns all users members that are a member of this User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_membership_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Group's membership @@ -4404,7 +4348,7 @@ def graph_user_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_membership ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_membership ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4419,7 +4363,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_membership" end # resource path - local_var_path = "/usergroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4456,7 +4400,6 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o end return data, status_code, headers end - # List the Active Directories bound to a User Group # This endpoint will return all Active Directory Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Active Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Active Directory from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/activedirectories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4469,7 +4412,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o # @return [Array] def graph_user_group_traverse_active_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Active Directories bound to a User Group @@ -4484,7 +4427,7 @@ def graph_user_group_traverse_active_directory(group_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_active_directory ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_active_directory ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4499,7 +4442,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_active_directory" end # resource path - local_var_path = "/usergroups/{group_id}/activedirectories".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/activedirectories'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4534,7 +4477,6 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ end return data, status_code, headers end - # List the Applications bound to a User Group # This endpoint will return all Applications bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4547,7 +4489,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ # @return [Array] def graph_user_group_traverse_application(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Applications bound to a User Group @@ -4562,7 +4504,7 @@ def graph_user_group_traverse_application(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_application ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_application ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4577,7 +4519,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_application" end # resource path - local_var_path = "/usergroups/{group_id}/applications".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/applications'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4612,7 +4554,6 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Directories bound to a User Group # This endpoint will return all Directories bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directories from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4625,7 +4566,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Directories bound to a User Group @@ -4640,7 +4581,7 @@ def graph_user_group_traverse_directory(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_directory ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_directory ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4655,7 +4596,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_directory" end # resource path - local_var_path = "/usergroups/{group_id}/directories".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/directories'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4690,7 +4631,6 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the G Suite instances bound to a User Group # This endpoint will return all G Suite Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4703,7 +4643,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the G Suite instances bound to a User Group @@ -4718,7 +4658,7 @@ def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_g_suite ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_g_suite ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4733,7 +4673,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_g_suite" end # resource path - local_var_path = "/usergroups/{group_id}/gsuites".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/gsuites'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4768,7 +4708,6 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc end return data, status_code, headers end - # List the LDAP Servers bound to a User Group # This endpoint will return all LDAP Servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4781,7 +4720,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc # @return [Array] def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the LDAP Servers bound to a User Group @@ -4796,7 +4735,7 @@ def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_ldap_server ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_ldap_server ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4811,7 +4750,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_ldap_server" end # resource path - local_var_path = "/usergroups/{group_id}/ldapservers".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/ldapservers'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4846,7 +4785,6 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Office 365 instances bound to a User Group # This endpoint will return all Office 365 instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4859,7 +4797,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_office365(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Office 365 instances bound to a User Group @@ -4874,7 +4812,7 @@ def graph_user_group_traverse_office365(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_office365 ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_office365 ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4889,7 +4827,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_office365" end # resource path - local_var_path = "/usergroups/{group_id}/office365s".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/office365s'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4924,7 +4862,6 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the RADIUS Servers bound to a User Group # This endpoint will return all RADIUS servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4937,7 +4874,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the RADIUS Servers bound to a User Group @@ -4952,7 +4889,7 @@ def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_radius_server ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_radius_server ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4967,7 +4904,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_radius_server" end # resource path - local_var_path = "/usergroups/{group_id}/radiusservers".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/radiusservers'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -5002,7 +4939,6 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ end return data, status_code, headers end - # List the Systems bound to a User Group # This endpoint will return all Systems bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -5015,7 +4951,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ # @return [Array] def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Systems bound to a User Group @@ -5030,7 +4966,7 @@ def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_system ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_system ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -5045,7 +4981,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_system" end # resource path - local_var_path = "/usergroups/{group_id}/systems".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/systems'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -5080,7 +5016,6 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce end return data, status_code, headers end - # List the System Groups bound to User Groups # This endpoint will return all System Groups bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -5093,7 +5028,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce # @return [Array] def graph_user_group_traverse_system_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Groups bound to User Groups @@ -5108,7 +5043,7 @@ def graph_user_group_traverse_system_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_system_group ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -5123,7 +5058,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_system_group" end # resource path - local_var_path = "/usergroups/{group_id}/systemgroups".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/systemgroups'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -5158,22 +5093,21 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type end return data, status_code, headers end - # List the parent Groups of a User # This endpoint returns all the User Groups a User is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_member_of(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_member_of_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the parent Groups of a User @@ -5190,7 +5124,7 @@ def graph_user_member_of(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_member_of ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_member_of ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5205,7 +5139,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_member_of" end # resource path - local_var_path = "/users/{user_id}/memberof".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/memberof'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5242,7 +5176,6 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} end return data, status_code, headers end - # List the Applications bound to a User # This endpoint will return all Applications bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5255,7 +5188,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} # @return [Array] def graph_user_traverse_application(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Applications bound to a User @@ -5270,7 +5203,7 @@ def graph_user_traverse_application(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_application ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_application ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5285,7 +5218,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_application" end # resource path - local_var_path = "/users/{user_id}/applications".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/applications'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5320,7 +5253,6 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept end return data, status_code, headers end - # List the Directories bound to a User # This endpoint will return all Directories bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directory from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5333,7 +5265,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Directories bound to a User @@ -5348,7 +5280,7 @@ def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_directory ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_directory ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5363,7 +5295,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_directory" end # resource path - local_var_path = "/users/{user_id}/directories".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/directories'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5398,7 +5330,6 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, end return data, status_code, headers end - # List the G Suite instances bound to a User # This endpoint will return all G-Suite Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5411,7 +5342,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the G Suite instances bound to a User @@ -5426,7 +5357,7 @@ def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_g_suite ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_g_suite ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5441,7 +5372,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_g_suite" end # resource path - local_var_path = "/users/{user_id}/gsuites".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/gsuites'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5476,7 +5407,6 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op end return data, status_code, headers end - # List the LDAP servers bound to a User # This endpoint will return all LDAP Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5489,7 +5419,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op # @return [Array] def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the LDAP servers bound to a User @@ -5504,7 +5434,7 @@ def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_ldap_server ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_ldap_server ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5519,7 +5449,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_ldap_server" end # resource path - local_var_path = "/users/{user_id}/ldapservers".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/ldapservers'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5554,7 +5484,6 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept end return data, status_code, headers end - # List the Office 365 instances bound to a User # This endpoint will return all Office 365 Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5567,7 +5496,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Office 365 instances bound to a User @@ -5582,7 +5511,7 @@ def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_office365 ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_office365 ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5597,7 +5526,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_office365" end # resource path - local_var_path = "/users/{user_id}/office365s".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/office365s'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5632,7 +5561,6 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, end return data, status_code, headers end - # List the RADIUS Servers bound to a User # This endpoint will return all RADIUS Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5645,7 +5573,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the RADIUS Servers bound to a User @@ -5660,7 +5588,7 @@ def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_radius_server ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_radius_server ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5675,7 +5603,7 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_radius_server" end # resource path - local_var_path = "/users/{user_id}/radiusservers".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/radiusservers'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5710,7 +5638,6 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce end return data, status_code, headers end - # List the Systems bound to a User # This endpoint will return all Systems bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systems\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5720,11 +5647,11 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [String] :x_org_id (default to ) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @return [Array] def graph_user_traverse_system(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Systems bound to a User @@ -5740,7 +5667,7 @@ def graph_user_traverse_system(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_system ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_system ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5755,7 +5682,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_system" end # resource path - local_var_path = "/users/{user_id}/systems".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/systems'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5791,7 +5718,6 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt end return data, status_code, headers end - # List the System Groups bound to a User # This endpoint will return all System Groups bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systemgroups\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5804,7 +5730,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt # @return [Array] def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the System Groups bound to a User @@ -5819,7 +5745,7 @@ def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_system_group ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5834,7 +5760,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_system_group" end # resource path - local_var_path = "/users/{user_id}/systemgroups".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/systemgroups'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5869,23 +5795,22 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep end return data, status_code, headers end - # List the policy statuses for a system # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policystatuses_list(system_id, content_type, accept, opts = {}) data, _status_code, _headers = policystatuses_list_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the policy statuses for a system @@ -5903,7 +5828,7 @@ def policystatuses_list(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policystatuses_list_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GraphApi.policystatuses_list ..." + @api_client.config.logger.debug 'Calling API: GraphApi.policystatuses_list ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -5918,7 +5843,7 @@ def policystatuses_list_with_http_info(system_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.policystatuses_list" end # resource path - local_var_path = "/systems/{system_id}/policystatuses".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/policystatuses'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/groups_api.rb b/jcapiv2/lib/jcapiv2/api/groups_api.rb index fc48e4a..de5fb5a 100644 --- a/jcapiv2/lib/jcapiv2/api/groups_api.rb +++ b/jcapiv2/lib/jcapiv2/api/groups_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class GroupsApi @@ -19,22 +19,21 @@ class GroupsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List All Groups # This endpoint returns all Groups that exist in your organization. #### Available filter fields: - `name` - `disabled` - `type` #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/groups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def groups_list(content_type, accept, opts = {}) data, _status_code, _headers = groups_list_with_http_info(content_type, accept, opts) - return data + data end # List All Groups @@ -51,7 +50,7 @@ def groups_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def groups_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: GroupsApi.groups_list ..." + @api_client.config.logger.debug 'Calling API: GroupsApi.groups_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -62,7 +61,7 @@ def groups_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling GroupsApi.groups_list" end # resource path - local_var_path = "/groups" + local_var_path = '/groups' # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb b/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb index 3e0f517..35f46e2 100644 --- a/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb +++ b/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class LDAPServersApi @@ -19,7 +19,6 @@ class LDAPServersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a LDAP Server # This endpoint returns the _direct_ associations of this LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts) - return data + data end # List the associations of a LDAP Server @@ -49,7 +48,7 @@ def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, ac # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_associations_list ..." + @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_associations_list ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -68,7 +67,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_associations_list" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c end return data, status_code, headers end - # Manage the associations of a LDAP Server # This endpoint allows you to manage the _direct_ associations of a LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -116,7 +114,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c # @return [nil] def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opts = {}) graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a LDAP Server @@ -130,7 +128,7 @@ def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opt # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_associations_post ..." + @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_associations_post ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -145,7 +143,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_associations_post" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty end return data, status_code, headers end - # List the Users bound to a LDAP Server # This endpoint will return all Users bound to an LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -190,7 +187,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty # @return [Array] def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts) - return data + data end # List the Users bound to a LDAP Server @@ -205,7 +202,7 @@ def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_traverse_user ..." + @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_traverse_user ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -220,7 +217,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_traverse_user" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/users".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/users'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, end return data, status_code, headers end - # List the User Groups bound to a LDAP Server # This endpoint will return all Users Groups bound to a LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -268,7 +264,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, # @return [Array] def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a LDAP Server @@ -283,7 +279,7 @@ def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_traverse_user_group ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -298,7 +294,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_traverse_user_group" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/usergroups".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/usergroups'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -333,7 +329,6 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ end return data, status_code, headers end - # Get LDAP Server # This endpoint returns a specific LDAP server. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id Unique identifier of the LDAP server. @@ -344,7 +339,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ # @return [LdapServerOutput] def ldapservers_get(id, content_type, accept, opts = {}) data, _status_code, _headers = ldapservers_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get LDAP Server @@ -357,7 +352,7 @@ def ldapservers_get(id, content_type, accept, opts = {}) # @return [Array<(LdapServerOutput, Fixnum, Hash)>] LdapServerOutput data, response status code and response headers def ldapservers_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: LDAPServersApi.ldapservers_get ..." + @api_client.config.logger.debug 'Calling API: LDAPServersApi.ldapservers_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -372,7 +367,7 @@ def ldapservers_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.ldapservers_get" end # resource path - local_var_path = "/ldapservers/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/ldapservers/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -405,22 +400,21 @@ def ldapservers_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List LDAP Servers # This endpoint returns the object IDs of your LDAP servers. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def ldapservers_list(content_type, accept, opts = {}) data, _status_code, _headers = ldapservers_list_with_http_info(content_type, accept, opts) - return data + data end # List LDAP Servers @@ -437,7 +431,7 @@ def ldapservers_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def ldapservers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: LDAPServersApi.ldapservers_list ..." + @api_client.config.logger.debug 'Calling API: LDAPServersApi.ldapservers_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -448,7 +442,7 @@ def ldapservers_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.ldapservers_list" end # resource path - local_var_path = "/ldapservers" + local_var_path = '/ldapservers' # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/office365_api.rb b/jcapiv2/lib/jcapiv2/api/office365_api.rb index 57d35ba..98a2940 100644 --- a/jcapiv2/lib/jcapiv2/api/office365_api.rb +++ b/jcapiv2/lib/jcapiv2/api/office365_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class Office365Api @@ -19,7 +19,6 @@ class Office365Api def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of an Office 365 instance # This endpoint returns _direct_ associations of an Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_office365_associations_list(office365_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts) - return data + data end # List the associations of an Office 365 instance @@ -49,7 +48,7 @@ def graph_office365_associations_list(office365_id, targets, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_associations_list ..." + @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_associations_list ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -68,7 +67,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_associations_list" end # resource path - local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont end return data, status_code, headers end - # Manage the associations of an Office 365 instance # This endpoint allows you to manage the _direct_ associations of a Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -116,7 +114,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont # @return [nil] def graph_office365_associations_post(office365_id, content_type, accept, opts = {}) graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts) - return nil + nil end # Manage the associations of an Office 365 instance @@ -130,7 +128,7 @@ def graph_office365_associations_post(office365_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_associations_post ..." + @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_associations_post ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -145,7 +143,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_associations_post" end # resource path - local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, end return data, status_code, headers end - # List the Users bound to an Office 365 instance # This endpoint will return all Users bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -190,7 +187,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, # @return [Array] def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts) - return data + data end # List the Users bound to an Office 365 instance @@ -205,7 +202,7 @@ def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_traverse_user ..." + @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_traverse_user ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -220,7 +217,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_traverse_user" end # resource path - local_var_path = "/office365s/{office365_id}/users".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/users'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc end return data, status_code, headers end - # List the User Groups bound to an Office 365 instance # This endpoint will return all Users Groups bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -268,7 +264,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc # @return [Array] def graph_office365_traverse_user_group(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts) - return data + data end # List the User Groups bound to an Office 365 instance @@ -283,7 +279,7 @@ def graph_office365_traverse_user_group(office365_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_traverse_user_group ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -298,7 +294,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_traverse_user_group" end # resource path - local_var_path = "/office365s/{office365_id}/usergroups".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/usergroups'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -333,7 +329,6 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ end return data, status_code, headers end - # Deletes a Office 365 translation rule # This endpoint allows you to delete a translation rule for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id @@ -344,7 +339,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ # @return [nil] def translation_rules_office365_delete(office365_id, id, content_type, accept, opts = {}) translation_rules_office365_delete_with_http_info(office365_id, id, content_type, accept, opts) - return nil + nil end # Deletes a Office 365 translation rule @@ -357,7 +352,7 @@ def translation_rules_office365_delete(office365_id, id, content_type, accept, o # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def translation_rules_office365_delete_with_http_info(office365_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_delete ..." + @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_delete ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -376,7 +371,7 @@ def translation_rules_office365_delete_with_http_info(office365_id, id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_delete" end # resource path - local_var_path = "/office365s/{office365_id}/translationrules/{id}".sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/office365s/{office365_id}/translationrules/{id}'.sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -407,7 +402,6 @@ def translation_rules_office365_delete_with_http_info(office365_id, id, content_ end return data, status_code, headers end - # Gets a specific Office 365 translation rule # This endpoint returns a specific translation rule for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. ###### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id @@ -418,7 +412,7 @@ def translation_rules_office365_delete_with_http_info(office365_id, id, content_ # @return [Office365TranslationRule] def translation_rules_office365_get(office365_id, id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_office365_get_with_http_info(office365_id, id, content_type, accept, opts) - return data + data end # Gets a specific Office 365 translation rule @@ -431,7 +425,7 @@ def translation_rules_office365_get(office365_id, id, content_type, accept, opts # @return [Array<(Office365TranslationRule, Fixnum, Hash)>] Office365TranslationRule data, response status code and response headers def translation_rules_office365_get_with_http_info(office365_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_get ..." + @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_get ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -450,7 +444,7 @@ def translation_rules_office365_get_with_http_info(office365_id, id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_get" end # resource path - local_var_path = "/office365s/{office365_id}/translationrules/{id}".sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/office365s/{office365_id}/translationrules/{id}'.sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -482,22 +476,21 @@ def translation_rules_office365_get_with_http_info(office365_id, id, content_typ end return data, status_code, headers end - # List all the Office 365 Translation Rules # This endpoint returns all translation rules for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @return [Array] def translation_rules_office365_list(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_office365_list_with_http_info(office365_id, content_type, accept, opts) - return data + data end # List all the Office 365 Translation Rules @@ -514,7 +507,7 @@ def translation_rules_office365_list(office365_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def translation_rules_office365_list_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_list ..." + @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_list ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -529,7 +522,7 @@ def translation_rules_office365_list_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_list" end # resource path - local_var_path = "/office365s/{office365_id}/translationrules".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/translationrules'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -566,7 +559,6 @@ def translation_rules_office365_list_with_http_info(office365_id, content_type, end return data, status_code, headers end - # Create a new Office 365 Translation Rule # This endpoint allows you to create a translation rule for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ {Translation Rule Parameters} }' ``` # @param office365_id @@ -577,7 +569,7 @@ def translation_rules_office365_list_with_http_info(office365_id, content_type, # @return [Office365TranslationRule] def translation_rules_office365_post(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_office365_post_with_http_info(office365_id, content_type, accept, opts) - return data + data end # Create a new Office 365 Translation Rule @@ -590,7 +582,7 @@ def translation_rules_office365_post(office365_id, content_type, accept, opts = # @return [Array<(Office365TranslationRule, Fixnum, Hash)>] Office365TranslationRule data, response status code and response headers def translation_rules_office365_post_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_post ..." + @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_post ...' end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -605,7 +597,7 @@ def translation_rules_office365_post_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_post" end # resource path - local_var_path = "/office365s/{office365_id}/translationrules".sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = '/office365s/{office365_id}/translationrules'.sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/policies_api.rb b/jcapiv2/lib/jcapiv2/api/policies_api.rb index fa2c429..4f0f268 100644 --- a/jcapiv2/lib/jcapiv2/api/policies_api.rb +++ b/jcapiv2/lib/jcapiv2/api/policies_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class PoliciesApi @@ -19,7 +19,6 @@ class PoliciesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a Policy # This endpoint returns the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Policy. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_policy_associations_list(policy_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts) - return data + data end # List the associations of a Policy @@ -49,7 +48,7 @@ def graph_policy_associations_list(policy_id, targets, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_associations_list ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_associations_list ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -68,7 +67,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_associations_list" end # resource path - local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty end return data, status_code, headers end - # Manage the associations of a Policy # This endpoint allows you to manage the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{Group_ID}\" }' ``` # @param policy_id ObjectID of the Policy. @@ -116,7 +114,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty # @return [nil] def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a Policy @@ -130,7 +128,7 @@ def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_associations_post ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_associations_post ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -145,7 +143,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_associations_post" end # resource path - local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep end return data, status_code, headers end - # List the Systems bound to a Policy # This endpoint will return all Systems bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -190,7 +187,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep # @return [Array] def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts) - return data + data end # List the Systems bound to a Policy @@ -205,7 +202,7 @@ def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_traverse_system ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_traverse_system ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -220,7 +217,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_traverse_system" end # resource path - local_var_path = "/policies/{policy_id}/systems".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/systems'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, end return data, status_code, headers end - # List the System Groups bound to a Policy # This endpoint will return all Systems Groups bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -268,7 +264,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, # @return [Array] def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts) - return data + data end # List the System Groups bound to a Policy @@ -283,7 +279,7 @@ def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_traverse_system_group ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -298,7 +294,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_traverse_system_group" end # resource path - local_var_path = "/policies/{policy_id}/systemgroups".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/systemgroups'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -333,7 +329,6 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a end return data, status_code, headers end - # Deletes a Policy # This endpoint allows you to delete a policy. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/policies/5a837ecd232e110d4291e6b9 \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy object. @@ -344,7 +339,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a # @return [nil] def policies_delete(id, content_type, accept, opts = {}) policies_delete_with_http_info(id, content_type, accept, opts) - return nil + nil end # Deletes a Policy @@ -357,7 +352,7 @@ def policies_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def policies_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policies_delete ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -372,7 +367,7 @@ def policies_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_delete" end # resource path - local_var_path = "/policies/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/policies/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -404,7 +399,6 @@ def policies_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Gets a specific Policy. # This endpoint returns a specific policy. ###### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{PolicyID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy object. @@ -415,7 +409,7 @@ def policies_delete_with_http_info(id, content_type, accept, opts = {}) # @return [PolicyWithDetails] def policies_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policies_get_with_http_info(id, content_type, accept, opts) - return data + data end # Gets a specific Policy. @@ -428,7 +422,7 @@ def policies_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyWithDetails, Fixnum, Hash)>] PolicyWithDetails data, response status code and response headers def policies_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policies_get ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -443,7 +437,7 @@ def policies_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_get" end # resource path - local_var_path = "/policies/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/policies/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -476,22 +470,21 @@ def policies_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Lists all the Policies # This endpoint returns all policies. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policies_list(content_type, accept, opts = {}) data, _status_code, _headers = policies_list_with_http_info(content_type, accept, opts) - return data + data end # Lists all the Policies @@ -508,7 +501,7 @@ def policies_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policies_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policies_list ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -519,7 +512,7 @@ def policies_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_list" end # resource path - local_var_path = "/policies" + local_var_path = '/policies' # query parameters query_params = {} @@ -557,7 +550,6 @@ def policies_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create a new Policy # This endpoint allows you to create a policy. Given the amount of configurable parameters required to create a Policy, we suggest you use the JumpCloud Admin Console to create new policies. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ {Policy_Parameters} }' ``` # @param content_type @@ -568,7 +560,7 @@ def policies_list_with_http_info(content_type, accept, opts = {}) # @return [PolicyWithDetails] def policies_post(content_type, accept, opts = {}) data, _status_code, _headers = policies_post_with_http_info(content_type, accept, opts) - return data + data end # Create a new Policy @@ -581,7 +573,7 @@ def policies_post(content_type, accept, opts = {}) # @return [Array<(PolicyWithDetails, Fixnum, Hash)>] PolicyWithDetails data, response status code and response headers def policies_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policies_post ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -592,7 +584,7 @@ def policies_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_post" end # resource path - local_var_path = "/policies" + local_var_path = '/policies' # query parameters query_params = {} @@ -625,7 +617,6 @@ def policies_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update an existing Policy # This endpoint allows you to update a policy. Given the amount of configurable parameters required to update a Policy, we suggest you use the JumpCloud Admin Console to create new policies. ##### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/policies/59fced45c9118022172547ff \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY' \\ -d '{ {Policy_Parameters} }' ``` # @param id ObjectID of the Policy object. @@ -635,7 +626,7 @@ def policies_post_with_http_info(content_type, accept, opts = {}) # @return [Policy] def policies_put(id, opts = {}) data, _status_code, _headers = policies_put_with_http_info(id, opts) - return data + data end # Update an existing Policy @@ -647,14 +638,14 @@ def policies_put(id, opts = {}) # @return [Array<(Policy, Fixnum, Hash)>] Policy data, response status code and response headers def policies_put_with_http_info(id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policies_put ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling PoliciesApi.policies_put" end # resource path - local_var_path = "/policies/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/policies/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -685,7 +676,6 @@ def policies_put_with_http_info(id, opts = {}) end return data, status_code, headers end - # Get a specific Policy Result. # This endpoint will return the policy results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policyresults/{Policy_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy Result. @@ -696,7 +686,7 @@ def policies_put_with_http_info(id, opts = {}) # @return [PolicyResult] def policyresults_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policyresults_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get a specific Policy Result. @@ -709,7 +699,7 @@ def policyresults_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyResult, Fixnum, Hash)>] PolicyResult data, response status code and response headers def policyresults_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policyresults_get ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policyresults_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -724,7 +714,7 @@ def policyresults_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policyresults_get" end # resource path - local_var_path = "/policyresults/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/policyresults/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -757,24 +747,23 @@ def policyresults_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Lists all the policy results of a policy. # This endpoint returns all policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policyresults \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @option opts [Array] :aggregate + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :aggregate (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policyresults_list(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = policyresults_list_with_http_info(policy_id, content_type, accept, opts) - return data + data end # Lists all the policy results of a policy. @@ -793,7 +782,7 @@ def policyresults_list(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policyresults_list_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policyresults_list ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policyresults_list ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -808,7 +797,7 @@ def policyresults_list_with_http_info(policy_id, content_type, accept, opts = {} fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policyresults_list" end # resource path - local_var_path = "/policies/{policy_id}/policyresults".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/policyresults'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -847,23 +836,22 @@ def policyresults_list_with_http_info(policy_id, content_type, accept, opts = {} end return data, status_code, headers end - # Lists all the policy results for an organization. # This endpoint returns all policies results for an Organization. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policyresults \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :aggregate - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :aggregate (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policyresults_list_0(content_type, accept, opts = {}) data, _status_code, _headers = policyresults_list_0_with_http_info(content_type, accept, opts) - return data + data end # Lists all the policy results for an organization. @@ -881,7 +869,7 @@ def policyresults_list_0(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policyresults_list_0_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policyresults_list_0 ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policyresults_list_0 ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -892,7 +880,7 @@ def policyresults_list_0_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policyresults_list_0" end # resource path - local_var_path = "/policyresults" + local_var_path = '/policyresults' # query parameters query_params = {} @@ -931,23 +919,22 @@ def policyresults_list_0_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # List the policy statuses for a system # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policystatuses_list(system_id, content_type, accept, opts = {}) data, _status_code, _headers = policystatuses_list_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the policy statuses for a system @@ -965,7 +952,7 @@ def policystatuses_list(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policystatuses_list_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policystatuses_list ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policystatuses_list ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -980,7 +967,7 @@ def policystatuses_list_with_http_info(system_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policystatuses_list" end # resource path - local_var_path = "/systems/{system_id}/policystatuses".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/policystatuses'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -1018,23 +1005,22 @@ def policystatuses_list_with_http_info(system_id, content_type, accept, opts = { end return data, status_code, headers end - # Lists the latest policy results of a policy. # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policystatuses_list_0(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts) - return data + data end # Lists the latest policy results of a policy. @@ -1052,7 +1038,7 @@ def policystatuses_list_0(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policystatuses_list_0 ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policystatuses_list_0 ...' end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1067,7 +1053,7 @@ def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policystatuses_list_0" end # resource path - local_var_path = "/policies/{policy_id}/policystatuses".sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = '/policies/{policy_id}/policystatuses'.sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -1105,7 +1091,6 @@ def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = end return data, status_code, headers end - # Get a specific Policy Template # This endpoint returns a specific policy template. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy Template. @@ -1116,7 +1101,7 @@ def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = # @return [PolicyTemplateWithDetails] def policytemplates_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get a specific Policy Template @@ -1129,7 +1114,7 @@ def policytemplates_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyTemplateWithDetails, Fixnum, Hash)>] PolicyTemplateWithDetails data, response status code and response headers def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policytemplates_get ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policytemplates_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1144,7 +1129,7 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policytemplates_get" end # resource path - local_var_path = "/policytemplates/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/policytemplates/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1177,22 +1162,21 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Lists all of the Policy Templates # This endpoint returns all policy templates. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policytemplates \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policytemplates_list(content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_list_with_http_info(content_type, accept, opts) - return data + data end # Lists all of the Policy Templates @@ -1209,7 +1193,7 @@ def policytemplates_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policytemplates_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PoliciesApi.policytemplates_list ..." + @api_client.config.logger.debug 'Calling API: PoliciesApi.policytemplates_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1220,7 +1204,7 @@ def policytemplates_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policytemplates_list" end # resource path - local_var_path = "/policytemplates" + local_var_path = '/policytemplates' # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb b/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb index 9bfc786..7750ee0 100644 --- a/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb +++ b/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class PolicytemplatesApi @@ -19,7 +19,6 @@ class PolicytemplatesApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Get a specific Policy Template # This endpoint returns a specific policy template. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy Template. @@ -30,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [PolicyTemplateWithDetails] def policytemplates_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get a specific Policy Template @@ -43,7 +42,7 @@ def policytemplates_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyTemplateWithDetails, Fixnum, Hash)>] PolicyTemplateWithDetails data, response status code and response headers def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PolicytemplatesApi.policytemplates_get ..." + @api_client.config.logger.debug 'Calling API: PolicytemplatesApi.policytemplates_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -58,7 +57,7 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PolicytemplatesApi.policytemplates_get" end # resource path - local_var_path = "/policytemplates/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/policytemplates/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -91,22 +90,21 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Lists all of the Policy Templates # This endpoint returns all policy templates. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policytemplates \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def policytemplates_list(content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_list_with_http_info(content_type, accept, opts) - return data + data end # Lists all of the Policy Templates @@ -123,7 +121,7 @@ def policytemplates_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policytemplates_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: PolicytemplatesApi.policytemplates_list ..." + @api_client.config.logger.debug 'Calling API: PolicytemplatesApi.policytemplates_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -134,7 +132,7 @@ def policytemplates_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PolicytemplatesApi.policytemplates_list" end # resource path - local_var_path = "/policytemplates" + local_var_path = '/policytemplates' # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/providers_api.rb b/jcapiv2/lib/jcapiv2/api/providers_api.rb index b650a1d..b64ad10 100644 --- a/jcapiv2/lib/jcapiv2/api/providers_api.rb +++ b/jcapiv2/lib/jcapiv2/api/providers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class ProvidersApi @@ -19,26 +19,23 @@ class ProvidersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # providersadministrators - # # @param provider_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @return [InlineResponse200] def providers_list_administrators(provider_id, content_type, accept, opts = {}) data, _status_code, _headers = providers_list_administrators_with_http_info(provider_id, content_type, accept, opts) - return data + data end # providersadministrators - # # @param provider_id # @param content_type # @param accept @@ -51,7 +48,7 @@ def providers_list_administrators(provider_id, content_type, accept, opts = {}) # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers def providers_list_administrators_with_http_info(provider_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: ProvidersApi.providers_list_administrators ..." + @api_client.config.logger.debug 'Calling API: ProvidersApi.providers_list_administrators ...' end # verify the required parameter 'provider_id' is set if @api_client.config.client_side_validation && provider_id.nil? @@ -66,7 +63,7 @@ def providers_list_administrators_with_http_info(provider_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling ProvidersApi.providers_list_administrators" end # resource path - local_var_path = "/providers/{provider_id}/administrators".sub('{' + 'provider_id' + '}', provider_id.to_s) + local_var_path = '/providers/{provider_id}/administrators'.sub('{' + 'provider_id' + '}', provider_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb b/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb index bd48e49..6e94a08 100644 --- a/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb +++ b/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class RADIUSServersApi @@ -19,7 +19,6 @@ class RADIUSServersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a RADIUS Server # This endpoint returns the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_radius_server_associations_list(radiusserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts) - return data + data end # List the associations of a RADIUS Server @@ -49,7 +48,7 @@ def graph_radius_server_associations_list(radiusserver_id, targets, content_type # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_associations_list ..." + @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_associations_list ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -68,7 +67,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_associations_list" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target end return data, status_code, headers end - # Manage the associations of a RADIUS Server # This endpoint allows you to manage the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"type\":\"user\", \"id\":\"{USER_ID}\", \"op\":\"add\" }' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -116,7 +114,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target # @return [nil] def graph_radius_server_associations_post(radiusserver_id, content_type, accept, opts = {}) graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a RADIUS Server @@ -130,7 +128,7 @@ def graph_radius_server_associations_post(radiusserver_id, content_type, accept, # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_associations_post ..." + @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_associations_post ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -145,7 +143,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_associations_post" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten end return data, status_code, headers end - # List the Users bound to a RADIUS Server # This endpoint will return all Users bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -190,7 +187,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten # @return [Array] def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts) - return data + data end # List the Users bound to a RADIUS Server @@ -205,7 +202,7 @@ def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_traverse_user ..." + @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_traverse_user ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -220,7 +217,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_traverse_user" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/users".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/users'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty end return data, status_code, headers end - # List the User Groups bound to a RADIUS Server # This endpoint will return all Users Groups bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -268,7 +264,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty # @return [Array] def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a RADIUS Server @@ -283,7 +279,7 @@ def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_traverse_user_group ...' end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -298,7 +294,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_traverse_user_group" end # resource path - local_var_path = "/radiusservers/{radiusserver_id}/usergroups".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = '/radiusservers/{radiusserver_id}/usergroups'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb b/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb index f2c79be..8b1f3af 100644 --- a/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb +++ b/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class SambaDomainsApi @@ -19,7 +19,6 @@ class SambaDomainsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Delete Samba Domain # This endpoint allows you to delete a samba domain from an LDAP server. ##### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains/{SAMBA_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -31,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [String] def ldapservers_samba_domains_delete(ldapserver_id, id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts) - return data + data end # Delete Samba Domain @@ -45,7 +44,7 @@ def ldapservers_samba_domains_delete(ldapserver_id, id, opts = {}) # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_delete ..." + @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_delete ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -56,7 +55,7 @@ def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {} fail ArgumentError, "Missing the required parameter 'id' when calling SambaDomainsApi.ldapservers_samba_domains_delete" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/sambadomains/{id}".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/sambadomains/{id}'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -89,7 +88,6 @@ def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {} end return data, status_code, headers end - # Get Samba Domain # This endpoint returns a specific samba domain for an LDAP server. ##### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/ldapservers/ldapservers/{LDAP_ID}/sambadomains/{SAMBA_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -101,7 +99,7 @@ def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {} # @return [SambaDomainOutput] def ldapservers_samba_domains_get(ldapserver_id, id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts) - return data + data end # Get Samba Domain @@ -115,7 +113,7 @@ def ldapservers_samba_domains_get(ldapserver_id, id, opts = {}) # @return [Array<(SambaDomainOutput, Fixnum, Hash)>] SambaDomainOutput data, response status code and response headers def ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_get ..." + @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_get ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -126,7 +124,7 @@ def ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling SambaDomainsApi.ldapservers_samba_domains_get" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/sambadomains/{id}".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/sambadomains/{id}'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -159,23 +157,22 @@ def ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts = {}) end return data, status_code, headers end - # List Samba Domains # This endpoint returns all samba domains for an LDAP server. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id Unique identifier of the LDAP server. # @param [Hash] opts the optional parameters # @option opts [String] :content_type (default to application/json) # @option opts [String] :accept (default to application/json) - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def ldapservers_samba_domains_list(ldapserver_id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts) - return data + data end # List Samba Domains @@ -193,14 +190,14 @@ def ldapservers_samba_domains_list(ldapserver_id, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_list ..." + @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_list ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? fail ArgumentError, "Missing the required parameter 'ldapserver_id' when calling SambaDomainsApi.ldapservers_samba_domains_list" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/sambadomains".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/sambadomains'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -238,7 +235,6 @@ def ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts = {}) end return data, status_code, headers end - # Create Samba Domain # This endpoint allows you to create a samba domain for an LDAP server. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"sid\":\"{SID_ID}\", \"name\":\"{WORKGROUP_NAME}\" }' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -250,7 +246,7 @@ def ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts = {}) # @return [SambaDomainOutput] def ldapservers_samba_domains_post(ldapserver_id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts) - return data + data end # Create Samba Domain @@ -264,14 +260,14 @@ def ldapservers_samba_domains_post(ldapserver_id, opts = {}) # @return [Array<(SambaDomainOutput, Fixnum, Hash)>] SambaDomainOutput data, response status code and response headers def ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_post ..." + @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_post ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? fail ArgumentError, "Missing the required parameter 'ldapserver_id' when calling SambaDomainsApi.ldapservers_samba_domains_post" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/sambadomains".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/sambadomains'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -304,7 +300,6 @@ def ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts = {}) end return data, status_code, headers end - # Update Samba Domain # This endpoint allows you to update the samba domain information for an LDAP server. ##### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains/{SAMBA_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"sid\":\"{SID_ID}\", \"name\":\"{WORKGROUP_NAME}\" }' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -317,7 +312,7 @@ def ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts = {}) # @return [SambaDomainOutput] def ldapservers_samba_domains_put(ldapserver_id, id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_put_with_http_info(ldapserver_id, id, opts) - return data + data end # Update Samba Domain @@ -332,7 +327,7 @@ def ldapservers_samba_domains_put(ldapserver_id, id, opts = {}) # @return [Array<(SambaDomainOutput, Fixnum, Hash)>] SambaDomainOutput data, response status code and response headers def ldapservers_samba_domains_put_with_http_info(ldapserver_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_put ..." + @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_put ...' end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -343,7 +338,7 @@ def ldapservers_samba_domains_put_with_http_info(ldapserver_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling SambaDomainsApi.ldapservers_samba_domains_put" end # resource path - local_var_path = "/ldapservers/{ldapserver_id}/sambadomains/{id}".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = '/ldapservers/{ldapserver_id}/sambadomains/{id}'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb b/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb index f3ac41a..9464ee0 100644 --- a/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb +++ b/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class SystemGroupAssociationsApi @@ -19,7 +19,6 @@ class SystemGroupAssociationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a System Group # This endpoint returns the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_system_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - return data + data end # List the associations of a System Group @@ -49,7 +48,7 @@ def graph_system_group_associations_list(group_id, content_type, accept, targets # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_associations_list ..." + @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_associations_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -68,7 +67,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'targets' when calling SystemGroupAssociationsApi.graph_system_group_associations_list" end # resource path - local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, end return data, status_code, headers end - # Manage the associations of a System Group # This endpoint allows you to manage the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{UserID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -116,7 +114,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, # @return [nil] def graph_system_group_associations_post(group_id, content_type, accept, opts = {}) graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a System Group @@ -130,7 +128,7 @@ def graph_system_group_associations_post(group_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_associations_post ..." + @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_associations_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -145,7 +143,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_associations_post" end # resource path - local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Commands bound to a System Group # This endpoint will return all Commands bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -190,7 +187,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, # @return [Array] def graph_system_group_traverse_command(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Commands bound to a System Group @@ -205,7 +202,7 @@ def graph_system_group_traverse_command(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_command ..." + @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_command ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -220,7 +217,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_command" end # resource path - local_var_path = "/systemgroups/{group_id}/commands".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/commands'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the Policies bound to a System Group # This endpoint will return all Policies bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System Group. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not public yet as we haven't finished the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -268,7 +264,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a # @return [Array] def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Policies bound to a System Group @@ -283,7 +279,7 @@ def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_policy ..." + @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_policy ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -298,7 +294,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_policy" end # resource path - local_var_path = "/systemgroups/{group_id}/policies".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/policies'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -333,7 +329,6 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # List the Users bound to a System Group # This endpoint will return all Users bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -346,7 +341,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac # @return [Array] def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Users bound to a System Group @@ -361,7 +356,7 @@ def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user ..." + @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -376,7 +371,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_user" end # resource path - local_var_path = "/systemgroups/{group_id}/users".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/users'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -411,7 +406,6 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce end return data, status_code, headers end - # List the User Groups bound to a System Group # This endpoint will return all User Groups bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -424,7 +418,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce # @return [Array] def graph_system_group_traverse_user_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a System Group @@ -439,7 +433,7 @@ def graph_system_group_traverse_user_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user_group ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -454,7 +448,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_user_group" end # resource path - local_var_path = "/systemgroups/{group_id}/usergroups".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/usergroups'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb b/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb index 2181984..7f06e87 100644 --- a/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb +++ b/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class SystemGroupMembersMembershipApi @@ -19,22 +19,21 @@ class SystemGroupMembersMembershipApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the System Group's parents # This endpoint returns all System Groups a System Group is a member of. This endpoint is not yet public as we haven't completed the code yet. # @param group_id ObjectID of the System Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Group's parents @@ -51,7 +50,7 @@ def graph_system_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_member_of ..." + @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_member_of ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -66,7 +65,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_member_of" end # resource path - local_var_path = "/systemgroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -103,7 +102,6 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the members of a System Group # This endpoint returns the system members of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -116,7 +114,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the members of a System Group @@ -131,7 +129,7 @@ def graph_system_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_list ..." + @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -146,7 +144,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_members_list" end # resource path - local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -181,7 +179,6 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep end return data, status_code, headers end - # Manage the members of a System Group # This endpoint allows you to manage the system members of a System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{System_ID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -195,7 +192,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep # @return [nil] def graph_system_group_members_post(group_id, content_type, accept, opts = {}) graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the members of a System Group @@ -211,7 +208,7 @@ def graph_system_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_post ..." + @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -226,7 +223,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_members_post" end # resource path - local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -260,7 +257,6 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep end return data, status_code, headers end - # List the System Group's membership # This endpoint returns all Systems that are a member of this System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -269,13 +265,13 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_membership_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Group's membership @@ -292,7 +288,7 @@ def graph_system_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_membership ..." + @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_membership ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -307,7 +303,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_membership" end # resource path - local_var_path = "/systemgroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/system_groups_api.rb b/jcapiv2/lib/jcapiv2/api/system_groups_api.rb index 1560a8d..2853d75 100644 --- a/jcapiv2/lib/jcapiv2/api/system_groups_api.rb +++ b/jcapiv2/lib/jcapiv2/api/system_groups_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class SystemGroupsApi @@ -19,7 +19,6 @@ class SystemGroupsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a System Group # This endpoint returns the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_system_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - return data + data end # List the associations of a System Group @@ -49,7 +48,7 @@ def graph_system_group_associations_list(group_id, content_type, accept, targets # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_associations_list ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_associations_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -68,7 +67,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'targets' when calling SystemGroupsApi.graph_system_group_associations_list" end # resource path - local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, end return data, status_code, headers end - # Manage the associations of a System Group # This endpoint allows you to manage the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{UserID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -116,7 +114,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, # @return [nil] def graph_system_group_associations_post(group_id, content_type, accept, opts = {}) graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a System Group @@ -130,7 +128,7 @@ def graph_system_group_associations_post(group_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_associations_post ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_associations_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -145,7 +143,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_associations_post" end # resource path - local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -177,22 +175,21 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the System Group's parents # This endpoint returns all System Groups a System Group is a member of. This endpoint is not yet public as we haven't completed the code yet. # @param group_id ObjectID of the System Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Group's parents @@ -209,7 +206,7 @@ def graph_system_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_member_of ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_member_of ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -224,7 +221,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_member_of" end # resource path - local_var_path = "/systemgroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -261,7 +258,6 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the members of a System Group # This endpoint returns the system members of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -274,7 +270,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the members of a System Group @@ -289,7 +285,7 @@ def graph_system_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_members_list ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_members_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -304,7 +300,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_members_list" end # resource path - local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -339,7 +335,6 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep end return data, status_code, headers end - # Manage the members of a System Group # This endpoint allows you to manage the system members of a System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{System_ID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -353,7 +348,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep # @return [nil] def graph_system_group_members_post(group_id, content_type, accept, opts = {}) graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the members of a System Group @@ -369,7 +364,7 @@ def graph_system_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_members_post ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_members_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -384,7 +379,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_members_post" end # resource path - local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -418,7 +413,6 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep end return data, status_code, headers end - # List the System Group's membership # This endpoint returns all Systems that are a member of this System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -427,13 +421,13 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_membership_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Group's membership @@ -450,7 +444,7 @@ def graph_system_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_membership ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_membership ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -465,7 +459,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_membership" end # resource path - local_var_path = "/systemgroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -502,7 +496,6 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the Policies bound to a System Group # This endpoint will return all Policies bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System Group. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not public yet as we haven't finished the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -515,7 +508,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Policies bound to a System Group @@ -530,7 +523,7 @@ def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_traverse_policy ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_traverse_policy ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -545,7 +538,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_traverse_policy" end # resource path - local_var_path = "/systemgroups/{group_id}/policies".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/policies'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -580,7 +573,6 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # List the Users bound to a System Group # This endpoint will return all Users bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -593,7 +585,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac # @return [Array] def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Users bound to a System Group @@ -608,7 +600,7 @@ def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_traverse_user ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_traverse_user ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -623,7 +615,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_traverse_user" end # resource path - local_var_path = "/systemgroups/{group_id}/users".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/users'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -658,7 +650,6 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce end return data, status_code, headers end - # List the User Groups bound to a System Group # This endpoint will return all User Groups bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -671,7 +662,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce # @return [Array] def graph_system_group_traverse_user_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a System Group @@ -686,7 +677,7 @@ def graph_system_group_traverse_user_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_traverse_user_group ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -701,7 +692,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_traverse_user_group" end # resource path - local_var_path = "/systemgroups/{group_id}/usergroups".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/systemgroups/{group_id}/usergroups'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -736,7 +727,6 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type end return data, status_code, headers end - # Delete a System Group # This endpoint allows you to delete a System Group. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the System Group. @@ -747,7 +737,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type # @return [nil] def groups_system_delete(id, content_type, accept, opts = {}) groups_system_delete_with_http_info(id, content_type, accept, opts) - return nil + nil end # Delete a System Group @@ -760,7 +750,7 @@ def groups_system_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_delete ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -775,7 +765,7 @@ def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_delete" end # resource path - local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -807,7 +797,6 @@ def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # View an individual System Group details # This endpoint returns the details of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the System Group. @@ -818,7 +807,7 @@ def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_get(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_system_get_with_http_info(id, content_type, accept, opts) - return data + data end # View an individual System Group details @@ -831,7 +820,7 @@ def groups_system_get(id, content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_get ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -846,7 +835,7 @@ def groups_system_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_get" end # resource path - local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -879,22 +868,21 @@ def groups_system_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List all System Groups # This endpoint returns all System Groups. Available filter fields: - `name` - `disabled` - `type` #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def groups_system_list(content_type, accept, opts = {}) data, _status_code, _headers = groups_system_list_with_http_info(content_type, accept, opts) - return data + data end # List all System Groups @@ -911,7 +899,7 @@ def groups_system_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def groups_system_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_list ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -922,7 +910,7 @@ def groups_system_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_list" end # resource path - local_var_path = "/systemgroups" + local_var_path = '/systemgroups' # query parameters query_params = {} @@ -960,7 +948,6 @@ def groups_system_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Partial update a System Group # We have hidden PATCH on the systemgroups and usergroups for now; we don't have that implemented correctly yet, people should use PUT until we do a true PATCH operation. #### Sample Request ``` https://console.jumpcloud.com/api/v2/systemgroups/{id} ``` # @param id ObjectID of the System Group. @@ -972,7 +959,7 @@ def groups_system_list_with_http_info(content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_patch(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_system_patch_with_http_info(id, content_type, accept, opts) - return data + data end # Partial update a System Group @@ -986,7 +973,7 @@ def groups_system_patch(id, content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_patch ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_patch ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1001,7 +988,7 @@ def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_patch" end # resource path - local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1034,7 +1021,6 @@ def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Create a new System Group # This endpoint allows you to create a new System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{Group_Name}\" }' ``` # @param content_type @@ -1045,7 +1031,7 @@ def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_post(content_type, accept, opts = {}) data, _status_code, _headers = groups_system_post_with_http_info(content_type, accept, opts) - return data + data end # Create a new System Group @@ -1058,7 +1044,7 @@ def groups_system_post(content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_post ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1069,7 +1055,7 @@ def groups_system_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_post" end # resource path - local_var_path = "/systemgroups" + local_var_path = '/systemgroups' # query parameters query_params = {} @@ -1102,7 +1088,6 @@ def groups_system_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update a System Group # This endpoint allows you to do a full update of the System Group. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"Name_Update\" }' ``` # @param id ObjectID of the System Group. @@ -1114,7 +1099,7 @@ def groups_system_post_with_http_info(content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_put(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_system_put_with_http_info(id, content_type, accept, opts) - return data + data end # Update a System Group @@ -1128,7 +1113,7 @@ def groups_system_put(id, content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_put ..." + @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1143,7 +1128,7 @@ def groups_system_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_put" end # resource path - local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/systems_api.rb b/jcapiv2/lib/jcapiv2/api/systems_api.rb index a3c7de1..e97a6a1 100644 --- a/jcapiv2/lib/jcapiv2/api/systems_api.rb +++ b/jcapiv2/lib/jcapiv2/api/systems_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class SystemsApi @@ -19,7 +19,6 @@ class SystemsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a System # This endpoint returns the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -35,7 +34,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_system_associations_list(system_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts) - return data + data end # List the associations of a System @@ -53,7 +52,7 @@ def graph_system_associations_list(system_id, content_type, accept, targets, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_associations_list ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_associations_list ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -72,7 +71,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'targets' when calling SystemsApi.graph_system_associations_list" end # resource path - local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -110,7 +109,6 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep end return data, status_code, headers end - # Manage associations of a System # This endpoint allows you to manage the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"user\", \"id\": \"UserID\" }' ``` # @param system_id ObjectID of the System. @@ -124,7 +122,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep # @return [nil] def graph_system_associations_post(system_id, content_type, accept, opts = {}) graph_system_associations_post_with_http_info(system_id, content_type, accept, opts) - return nil + nil end # Manage associations of a System @@ -140,7 +138,7 @@ def graph_system_associations_post(system_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_associations_post_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_associations_post ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_associations_post ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -155,7 +153,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_associations_post" end # resource path - local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -189,24 +187,23 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep end return data, status_code, headers end - # List the parent Groups of a System # This endpoint returns all the System Groups a System is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_member_of(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_member_of_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the parent Groups of a System @@ -225,7 +222,7 @@ def graph_system_member_of(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_member_of_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_member_of ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_member_of ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -240,7 +237,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_member_of" end # resource path - local_var_path = "/systems/{system_id}/memberof".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/memberof'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -279,7 +276,6 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts end return data, status_code, headers end - # List the Commands bound to a System # This endpoint will return all Commands bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -292,7 +288,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts # @return [Array] def graph_system_traverse_command(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the Commands bound to a System @@ -307,7 +303,7 @@ def graph_system_traverse_command(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_command ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_command ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -322,7 +318,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_command" end # resource path - local_var_path = "/systems/{system_id}/commands".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/commands'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -357,7 +353,6 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept end return data, status_code, headers end - # List the Policies bound to a System # This endpoint will return all Policies bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not yet public as we have finish the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/{System_ID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -370,7 +365,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept # @return [Array] def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the Policies bound to a System @@ -385,7 +380,7 @@ def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_policy ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_policy ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -400,7 +395,7 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_policy" end # resource path - local_var_path = "/systems/{system_id}/policies".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/policies'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -435,7 +430,6 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, end return data, status_code, headers end - # List the Users bound to a System # This endpoint will return all Users bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -447,11 +441,11 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @return [Array] def graph_system_traverse_user(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the Users bound to a System @@ -469,7 +463,7 @@ def graph_system_traverse_user(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_user ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_user ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -484,7 +478,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_user" end # resource path - local_var_path = "/systems/{system_id}/users".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/users'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -522,7 +516,6 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o end return data, status_code, headers end - # List the User Groups bound to a System # This endpoint will return all User Groups bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -537,7 +530,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o # @return [Array] def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts) - return data + data end # List the User Groups bound to a System @@ -554,7 +547,7 @@ def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_user_group ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_user_group ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -569,7 +562,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_user_group" end # resource path - local_var_path = "/systems/{system_id}/usergroups".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/usergroups'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -606,7 +599,6 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc end return data, status_code, headers end - # Get System FDE Key # This endpoint will return the current (latest) fde key saved for a system. # @param system_id @@ -615,7 +607,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc # @return [Systemfdekey] def systems_get_fde_key(system_id, opts = {}) data, _status_code, _headers = systems_get_fde_key_with_http_info(system_id, opts) - return data + data end # Get System FDE Key @@ -626,14 +618,14 @@ def systems_get_fde_key(system_id, opts = {}) # @return [Array<(Systemfdekey, Fixnum, Hash)>] Systemfdekey data, response status code and response headers def systems_get_fde_key_with_http_info(system_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: SystemsApi.systems_get_fde_key ..." + @api_client.config.logger.debug 'Calling API: SystemsApi.systems_get_fde_key ...' end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling SystemsApi.systems_get_fde_key" end # resource path - local_var_path = "/systems/{system_id}/fdekey".sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = '/systems/{system_id}/fdekey'.sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb b/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb index 0852a2f..72548be 100644 --- a/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb +++ b/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class UserGroupAssociationsApi @@ -19,7 +19,6 @@ class UserGroupAssociationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a User Group. # This endpoint returns the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations?targets=system \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_user_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - return data + data end # List the associations of a User Group. @@ -49,7 +48,7 @@ def graph_user_group_associations_list(group_id, content_type, accept, targets, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_associations_list ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_associations_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -68,7 +67,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'targets' when calling UserGroupAssociationsApi.graph_user_group_associations_list" end # resource path - local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # Manage the associations of a User Group # This endpoint manages the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{SystemID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -116,7 +114,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac # @return [nil] def graph_user_group_associations_post(group_id, content_type, accept, opts = {}) graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a User Group @@ -130,7 +128,7 @@ def graph_user_group_associations_post(group_id, content_type, accept, opts = {} # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_associations_post ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_associations_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -145,7 +143,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_associations_post" end # resource path - local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -177,7 +175,6 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # List the Active Directories bound to a User Group # This endpoint will return all Active Directory Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Active Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Active Directory from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/activedirectories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -190,7 +187,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac # @return [Array] def graph_user_group_traverse_active_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Active Directories bound to a User Group @@ -205,7 +202,7 @@ def graph_user_group_traverse_active_directory(group_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_active_directory ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_active_directory ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -220,7 +217,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_active_directory" end # resource path - local_var_path = "/usergroups/{group_id}/activedirectories".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/activedirectories'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -255,7 +252,6 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ end return data, status_code, headers end - # List the Applications bound to a User Group # This endpoint will return all Applications bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -268,7 +264,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ # @return [Array] def graph_user_group_traverse_application(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Applications bound to a User Group @@ -283,7 +279,7 @@ def graph_user_group_traverse_application(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_application ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_application ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -298,7 +294,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_application" end # resource path - local_var_path = "/usergroups/{group_id}/applications".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/applications'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -333,7 +329,6 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Directories bound to a User Group # This endpoint will return all Directories bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directories from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -346,7 +341,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Directories bound to a User Group @@ -361,7 +356,7 @@ def graph_user_group_traverse_directory(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_directory ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_directory ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -376,7 +371,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_directory" end # resource path - local_var_path = "/usergroups/{group_id}/directories".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/directories'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -411,7 +406,6 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the G Suite instances bound to a User Group # This endpoint will return all G Suite Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -424,7 +418,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the G Suite instances bound to a User Group @@ -439,7 +433,7 @@ def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_g_suite ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_g_suite ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -454,7 +448,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_g_suite" end # resource path - local_var_path = "/usergroups/{group_id}/gsuites".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/gsuites'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -489,7 +483,6 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc end return data, status_code, headers end - # List the LDAP Servers bound to a User Group # This endpoint will return all LDAP Servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -502,7 +495,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc # @return [Array] def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the LDAP Servers bound to a User Group @@ -517,7 +510,7 @@ def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_ldap_server ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_ldap_server ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -532,7 +525,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_ldap_server" end # resource path - local_var_path = "/usergroups/{group_id}/ldapservers".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/ldapservers'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -567,7 +560,6 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Office 365 instances bound to a User Group # This endpoint will return all Office 365 instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -580,7 +572,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_office365(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Office 365 instances bound to a User Group @@ -595,7 +587,7 @@ def graph_user_group_traverse_office365(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_office365 ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_office365 ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -610,7 +602,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_office365" end # resource path - local_var_path = "/usergroups/{group_id}/office365s".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/office365s'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -645,7 +637,6 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the RADIUS Servers bound to a User Group # This endpoint will return all RADIUS servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -658,7 +649,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the RADIUS Servers bound to a User Group @@ -673,7 +664,7 @@ def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_radius_server ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_radius_server ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -688,7 +679,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_radius_server" end # resource path - local_var_path = "/usergroups/{group_id}/radiusservers".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/radiusservers'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -723,7 +714,6 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ end return data, status_code, headers end - # List the Systems bound to a User Group # This endpoint will return all Systems bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -736,7 +726,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ # @return [Array] def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Systems bound to a User Group @@ -751,7 +741,7 @@ def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -766,7 +756,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_system" end # resource path - local_var_path = "/usergroups/{group_id}/systems".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/systems'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -801,7 +791,6 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce end return data, status_code, headers end - # List the System Groups bound to User Groups # This endpoint will return all System Groups bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -814,7 +803,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce # @return [Array] def graph_user_group_traverse_system_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Groups bound to User Groups @@ -829,7 +818,7 @@ def graph_user_group_traverse_system_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system_group ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -844,7 +833,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_system_group" end # resource path - local_var_path = "/usergroups/{group_id}/systemgroups".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/systemgroups'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb b/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb index a607e6e..a63c037 100644 --- a/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb +++ b/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class UserGroupMembersMembershipApi @@ -19,22 +19,21 @@ class UserGroupMembersMembershipApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the User Group's parents # This endpoint returns all User Groups a User Group is a member of. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{group_id}/memberof ``` Not public yet, as the code is not finished, # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Group's parents @@ -51,7 +50,7 @@ def graph_user_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_member_of ..." + @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_member_of ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -66,7 +65,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_member_of" end # resource path - local_var_path = "/usergroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -103,7 +102,6 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op end return data, status_code, headers end - # List the members of a User Group # This endpoint returns the user members of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -116,7 +114,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op # @return [Array] def graph_user_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the members of a User Group @@ -131,7 +129,7 @@ def graph_user_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_members_list ..." + @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_members_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -146,7 +144,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_members_list" end # resource path - local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -181,7 +179,6 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # Manage the members of a User Group # This endpoint allows you to manage the user members of a User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -193,7 +190,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, # @return [nil] def graph_user_group_members_post(group_id, content_type, accept, opts = {}) graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the members of a User Group @@ -207,7 +204,7 @@ def graph_user_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_members_post ..." + @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_members_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -222,7 +219,7 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_members_post" end # resource path - local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -254,22 +251,21 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the User Group's membership # This endpoint returns all users members that are a member of this User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_membership_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Group's membership @@ -286,7 +282,7 @@ def graph_user_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_membership ..." + @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_membership ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -301,7 +297,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_membership" end # resource path - local_var_path = "/usergroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/user_groups_api.rb b/jcapiv2/lib/jcapiv2/api/user_groups_api.rb index 1d9cf92..2f0cc51 100644 --- a/jcapiv2/lib/jcapiv2/api/user_groups_api.rb +++ b/jcapiv2/lib/jcapiv2/api/user_groups_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class UserGroupsApi @@ -19,7 +19,6 @@ class UserGroupsApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a User Group. # This endpoint returns the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations?targets=system \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_user_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - return data + data end # List the associations of a User Group. @@ -49,7 +48,7 @@ def graph_user_group_associations_list(group_id, content_type, accept, targets, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_associations_list ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_associations_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -68,7 +67,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'targets' when calling UserGroupsApi.graph_user_group_associations_list" end # resource path - local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # Manage the associations of a User Group # This endpoint manages the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{SystemID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -116,7 +114,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac # @return [nil] def graph_user_group_associations_post(group_id, content_type, accept, opts = {}) graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a User Group @@ -130,7 +128,7 @@ def graph_user_group_associations_post(group_id, content_type, accept, opts = {} # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_associations_post ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_associations_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -145,7 +143,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_associations_post" end # resource path - local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -177,22 +175,21 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac end return data, status_code, headers end - # List the User Group's parents # This endpoint returns all User Groups a User Group is a member of. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{group_id}/memberof ``` Not public yet, as the code is not finished, # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Group's parents @@ -209,7 +206,7 @@ def graph_user_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_member_of ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_member_of ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -224,7 +221,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_member_of" end # resource path - local_var_path = "/usergroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -261,7 +258,6 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op end return data, status_code, headers end - # List the members of a User Group # This endpoint returns the user members of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -274,7 +270,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op # @return [Array] def graph_user_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the members of a User Group @@ -289,7 +285,7 @@ def graph_user_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_members_list ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_members_list ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -304,7 +300,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_members_list" end # resource path - local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -339,7 +335,6 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # Manage the members of a User Group # This endpoint allows you to manage the user members of a User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -351,7 +346,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, # @return [nil] def graph_user_group_members_post(group_id, content_type, accept, opts = {}) graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts) - return nil + nil end # Manage the members of a User Group @@ -365,7 +360,7 @@ def graph_user_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_members_post ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_members_post ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -380,7 +375,7 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_members_post" end # resource path - local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -412,22 +407,21 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, end return data, status_code, headers end - # List the User Group's membership # This endpoint returns all users members that are a member of this User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_membership_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the User Group's membership @@ -444,7 +438,7 @@ def graph_user_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_membership ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_membership ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -459,7 +453,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_membership" end # resource path - local_var_path = "/usergroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -496,7 +490,6 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o end return data, status_code, headers end - # List the Active Directories bound to a User Group # This endpoint will return all Active Directory Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Active Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Active Directory from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/activedirectories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -509,7 +502,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o # @return [Array] def graph_user_group_traverse_active_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Active Directories bound to a User Group @@ -524,7 +517,7 @@ def graph_user_group_traverse_active_directory(group_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_active_directory ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_active_directory ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -539,7 +532,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_active_directory" end # resource path - local_var_path = "/usergroups/{group_id}/activedirectories".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/activedirectories'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -574,7 +567,6 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ end return data, status_code, headers end - # List the Applications bound to a User Group # This endpoint will return all Applications bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -587,7 +579,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ # @return [Array] def graph_user_group_traverse_application(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Applications bound to a User Group @@ -602,7 +594,7 @@ def graph_user_group_traverse_application(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_application ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_application ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -617,7 +609,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_application" end # resource path - local_var_path = "/usergroups/{group_id}/applications".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/applications'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -652,7 +644,6 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Directories bound to a User Group # This endpoint will return all Directories bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directories from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -665,7 +656,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Directories bound to a User Group @@ -680,7 +671,7 @@ def graph_user_group_traverse_directory(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_directory ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_directory ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -695,7 +686,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_directory" end # resource path - local_var_path = "/usergroups/{group_id}/directories".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/directories'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -730,7 +721,6 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the G Suite instances bound to a User Group # This endpoint will return all G Suite Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -743,7 +733,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the G Suite instances bound to a User Group @@ -758,7 +748,7 @@ def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_g_suite ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_g_suite ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -773,7 +763,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_g_suite" end # resource path - local_var_path = "/usergroups/{group_id}/gsuites".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/gsuites'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -808,7 +798,6 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc end return data, status_code, headers end - # List the LDAP Servers bound to a User Group # This endpoint will return all LDAP Servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -821,7 +810,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc # @return [Array] def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the LDAP Servers bound to a User Group @@ -836,7 +825,7 @@ def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_ldap_server ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_ldap_server ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -851,7 +840,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_ldap_server" end # resource path - local_var_path = "/usergroups/{group_id}/ldapservers".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/ldapservers'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -886,7 +875,6 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, end return data, status_code, headers end - # List the Office 365 instances bound to a User Group # This endpoint will return all Office 365 instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -899,7 +887,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_office365(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Office 365 instances bound to a User Group @@ -914,7 +902,7 @@ def graph_user_group_traverse_office365(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_office365 ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_office365 ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -929,7 +917,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_office365" end # resource path - local_var_path = "/usergroups/{group_id}/office365s".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/office365s'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -964,7 +952,6 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a end return data, status_code, headers end - # List the RADIUS Servers bound to a User Group # This endpoint will return all RADIUS servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -977,7 +964,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the RADIUS Servers bound to a User Group @@ -992,7 +979,7 @@ def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_radius_server ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_radius_server ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -1007,7 +994,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_radius_server" end # resource path - local_var_path = "/usergroups/{group_id}/radiusservers".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/radiusservers'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -1042,7 +1029,6 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ end return data, status_code, headers end - # List the Systems bound to a User Group # This endpoint will return all Systems bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -1055,7 +1041,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ # @return [Array] def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the Systems bound to a User Group @@ -1070,7 +1056,7 @@ def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_system ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_system ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -1085,7 +1071,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_system" end # resource path - local_var_path = "/usergroups/{group_id}/systems".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/systems'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -1120,7 +1106,6 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce end return data, status_code, headers end - # List the System Groups bound to User Groups # This endpoint will return all System Groups bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -1133,7 +1118,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce # @return [Array] def graph_user_group_traverse_system_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts) - return data + data end # List the System Groups bound to User Groups @@ -1148,7 +1133,7 @@ def graph_user_group_traverse_system_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_system_group ...' end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -1163,7 +1148,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_system_group" end # resource path - local_var_path = "/usergroups/{group_id}/systemgroups".sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = '/usergroups/{group_id}/systemgroups'.sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -1198,7 +1183,6 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type end return data, status_code, headers end - # Delete a User Group # This endpoint allows you to delete a User Group. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/usergroups/{GroupID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the User Group. @@ -1209,7 +1193,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type # @return [nil] def groups_user_delete(id, content_type, accept, opts = {}) groups_user_delete_with_http_info(id, content_type, accept, opts) - return nil + nil end # Delete a User Group @@ -1222,7 +1206,7 @@ def groups_user_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_delete ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1237,7 +1221,7 @@ def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_delete" end # resource path - local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1269,7 +1253,6 @@ def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # View an individual User Group details # This endpoint returns the details of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the User Group. @@ -1280,7 +1263,7 @@ def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) # @return [UserGroup] def groups_user_get(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_user_get_with_http_info(id, content_type, accept, opts) - return data + data end # View an individual User Group details @@ -1293,7 +1276,7 @@ def groups_user_get(id, content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_get ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1308,7 +1291,7 @@ def groups_user_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_get" end # resource path - local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1341,22 +1324,21 @@ def groups_user_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # List all User Groups # This endpoint returns all User Groups. Available filter fields: - `name` - `disabled` - `type` #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def groups_user_list(content_type, accept, opts = {}) data, _status_code, _headers = groups_user_list_with_http_info(content_type, accept, opts) - return data + data end # List all User Groups @@ -1373,7 +1355,7 @@ def groups_user_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def groups_user_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_list ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1384,7 +1366,7 @@ def groups_user_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_list" end # resource path - local_var_path = "/usergroups" + local_var_path = '/usergroups' # query parameters query_params = {} @@ -1422,7 +1404,6 @@ def groups_user_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Partial update a User Group # We have hidden PATCH on the systemgroups and usergroups for now; we don't have that implemented correctly yet, people should use PUT until we do a true PATCH operation. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{id} ``` # @param id ObjectID of the User Group. @@ -1434,7 +1415,7 @@ def groups_user_list_with_http_info(content_type, accept, opts = {}) # @return [UserGroup] def groups_user_patch(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_user_patch_with_http_info(id, content_type, accept, opts) - return data + data end # Partial update a User Group @@ -1448,7 +1429,7 @@ def groups_user_patch(id, content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_patch ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_patch ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1463,7 +1444,7 @@ def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_patch" end # resource path - local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1496,7 +1477,6 @@ def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Create a new User Group # This endpoint allows you to create a new User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{Group_Name}\" }' ``` # @param content_type @@ -1507,7 +1487,7 @@ def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) # @return [UserGroup] def groups_user_post(content_type, accept, opts = {}) data, _status_code, _headers = groups_user_post_with_http_info(content_type, accept, opts) - return data + data end # Create a new User Group @@ -1520,7 +1500,7 @@ def groups_user_post(content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_post ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1531,7 +1511,7 @@ def groups_user_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_post" end # resource path - local_var_path = "/usergroups" + local_var_path = '/usergroups' # query parameters query_params = {} @@ -1564,7 +1544,6 @@ def groups_user_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update a User Group # This endpoint allows you to do a full update of the User Group. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/usergroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY' \\ -d '{ \"name\": \"group_update\" }' ``` # @param id ObjectID of the User Group. @@ -1576,7 +1555,7 @@ def groups_user_post_with_http_info(content_type, accept, opts = {}) # @return [UserGroup] def groups_user_put(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_user_put_with_http_info(id, content_type, accept, opts) - return data + data end # Update a User Group @@ -1590,7 +1569,7 @@ def groups_user_put(id, content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_put ..." + @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1605,7 +1584,7 @@ def groups_user_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_put" end # resource path - local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/users_api.rb b/jcapiv2/lib/jcapiv2/api/users_api.rb index d808caf..a4dbc87 100644 --- a/jcapiv2/lib/jcapiv2/api/users_api.rb +++ b/jcapiv2/lib/jcapiv2/api/users_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class UsersApi @@ -19,7 +19,6 @@ class UsersApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # List the associations of a User # This endpoint returns the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -33,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_user_associations_list(user_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts) - return data + data end # List the associations of a User @@ -49,7 +48,7 @@ def graph_user_associations_list(user_id, content_type, accept, targets, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_associations_list ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_associations_list ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -68,7 +67,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t fail ArgumentError, "Missing the required parameter 'targets' when calling UsersApi.graph_user_associations_list" end # resource path - local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -104,7 +103,6 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t end return data, status_code, headers end - # Manage the associations of a User # This endpoint allows you to manage the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/users/{UserID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{GroupID}\" }' # @param user_id ObjectID of the User. @@ -116,7 +114,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t # @return [nil] def graph_user_associations_post(user_id, content_type, accept, opts = {}) graph_user_associations_post_with_http_info(user_id, content_type, accept, opts) - return nil + nil end # Manage the associations of a User @@ -130,7 +128,7 @@ def graph_user_associations_post(user_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_associations_post_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_associations_post ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_associations_post ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -145,7 +143,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_associations_post" end # resource path - local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -177,22 +175,21 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o end return data, status_code, headers end - # List the parent Groups of a User # This endpoint returns all the User Groups a User is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_member_of(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_member_of_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the parent Groups of a User @@ -209,7 +206,7 @@ def graph_user_member_of(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_member_of ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_member_of ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -224,7 +221,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_member_of" end # resource path - local_var_path = "/users/{user_id}/memberof".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/memberof'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -261,7 +258,6 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} end return data, status_code, headers end - # List the Applications bound to a User # This endpoint will return all Applications bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -274,7 +270,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} # @return [Array] def graph_user_traverse_application(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Applications bound to a User @@ -289,7 +285,7 @@ def graph_user_traverse_application(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_application ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_application ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -304,7 +300,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_application" end # resource path - local_var_path = "/users/{user_id}/applications".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/applications'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -339,7 +335,6 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept end return data, status_code, headers end - # List the Directories bound to a User # This endpoint will return all Directories bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directory from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -352,7 +347,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Directories bound to a User @@ -367,7 +362,7 @@ def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_directory ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_directory ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -382,7 +377,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_directory" end # resource path - local_var_path = "/users/{user_id}/directories".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/directories'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -417,7 +412,6 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, end return data, status_code, headers end - # List the G Suite instances bound to a User # This endpoint will return all G-Suite Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -430,7 +424,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the G Suite instances bound to a User @@ -445,7 +439,7 @@ def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_g_suite ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_g_suite ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -460,7 +454,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_g_suite" end # resource path - local_var_path = "/users/{user_id}/gsuites".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/gsuites'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -495,7 +489,6 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op end return data, status_code, headers end - # List the LDAP servers bound to a User # This endpoint will return all LDAP Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -508,7 +501,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op # @return [Array] def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the LDAP servers bound to a User @@ -523,7 +516,7 @@ def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_ldap_server ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_ldap_server ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -538,7 +531,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_ldap_server" end # resource path - local_var_path = "/users/{user_id}/ldapservers".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/ldapservers'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -573,7 +566,6 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept end return data, status_code, headers end - # List the Office 365 instances bound to a User # This endpoint will return all Office 365 Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -586,7 +578,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Office 365 instances bound to a User @@ -601,7 +593,7 @@ def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_office365 ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_office365 ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -616,7 +608,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_office365" end # resource path - local_var_path = "/users/{user_id}/office365s".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/office365s'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -651,7 +643,6 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, end return data, status_code, headers end - # List the RADIUS Servers bound to a User # This endpoint will return all RADIUS Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -664,7 +655,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the RADIUS Servers bound to a User @@ -679,7 +670,7 @@ def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_radius_server ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_radius_server ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -694,7 +685,7 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_radius_server" end # resource path - local_var_path = "/users/{user_id}/radiusservers".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/radiusservers'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -729,7 +720,6 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce end return data, status_code, headers end - # List the Systems bound to a User # This endpoint will return all Systems bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systems\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -739,11 +729,11 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [String] :x_org_id (default to ) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @return [Array] def graph_user_traverse_system(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the Systems bound to a User @@ -759,7 +749,7 @@ def graph_user_traverse_system(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_system ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_system ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -774,7 +764,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_system" end # resource path - local_var_path = "/users/{user_id}/systems".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/systems'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -810,7 +800,6 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt end return data, status_code, headers end - # List the System Groups bound to a User # This endpoint will return all System Groups bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systemgroups\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -823,7 +812,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt # @return [Array] def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts) - return data + data end # List the System Groups bound to a User @@ -838,7 +827,7 @@ def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_system_group ..." + @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_system_group ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -853,7 +842,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_system_group" end # resource path - local_var_path = "/users/{user_id}/systemgroups".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/systemgroups'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -888,7 +877,6 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep end return data, status_code, headers end - # Send User Emails # This endpoint allows you to send a specific email to a user without waiting for or triggering a workflow. # @param user_id ObjectID of the User. @@ -900,7 +888,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep # @return [nil] def users_send_emails(user_id, content_type, accept, opts = {}) users_send_emails_with_http_info(user_id, content_type, accept, opts) - return nil + nil end # Send User Emails @@ -914,7 +902,7 @@ def users_send_emails(user_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def users_send_emails_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: UsersApi.users_send_emails ..." + @api_client.config.logger.debug 'Calling API: UsersApi.users_send_emails ...' end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -929,7 +917,7 @@ def users_send_emails_with_http_info(user_id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.users_send_emails" end # resource path - local_var_path = "/users/{user_id}/emails".sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = '/users/{user_id}/emails'.sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/workday_import_api.rb b/jcapiv2/lib/jcapiv2/api/workday_import_api.rb index 9e65273..8fa1aeb 100644 --- a/jcapiv2/lib/jcapiv2/api/workday_import_api.rb +++ b/jcapiv2/lib/jcapiv2/api/workday_import_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end -require "uri" +require 'uri' module JCAPIv2 class WorkdayImportApi @@ -19,7 +19,6 @@ class WorkdayImportApi def initialize(api_client = ApiClient.default) @api_client = api_client end - # Authorize Workday # This endpoint adds an authorization method to a workday instance. You must supply a username and password for `Basic Authentication` that is the same as your WorkDay Integrator System User. Failure to provide these credentials will result in the request being rejected. Currently `O-Auth` isn't a supported authentication protocol for WorkDay, but will be in the future. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/workdays/{WorkDayID}/auth \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"auth\":{ \"basic\": { \"username\": \"someDeveloper\", \"password\": \"notTheRealPassword\" } } }' ``` # @param workday_id @@ -31,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def workdays_authorize(workday_id, content_type, accept, opts = {}) workdays_authorize_with_http_info(workday_id, content_type, accept, opts) - return nil + nil end # Authorize Workday @@ -45,7 +44,7 @@ def workdays_authorize(workday_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_authorize ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_authorize ...' end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -60,7 +59,7 @@ def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_authorize" end # resource path - local_var_path = "/workdays/{workday_id}/auth".sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = '/workdays/{workday_id}/auth'.sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} @@ -92,7 +91,6 @@ def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = { end return data, status_code, headers end - # Deauthorize Workday # Removes any and all authorization methods from the workday instance ##### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/workdays/{WorkDayID}/auth \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param workday_id @@ -103,7 +101,7 @@ def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = { # @return [nil] def workdays_deauthorize(workday_id, content_type, accept, opts = {}) workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts) - return nil + nil end # Deauthorize Workday @@ -116,7 +114,7 @@ def workdays_deauthorize(workday_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_deauthorize ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_deauthorize ...' end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -131,7 +129,7 @@ def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_deauthorize" end # resource path - local_var_path = "/workdays/{workday_id}/auth".sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = '/workdays/{workday_id}/auth'.sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} @@ -163,7 +161,6 @@ def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = end return data, status_code, headers end - # Delete Workday # This endpoint allows you to delete an instance of Workday. **This functionality is currently not enable for users.** # @param id @@ -174,7 +171,7 @@ def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = # @return [Object] def workdays_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_delete_with_http_info(id, content_type, accept, opts) - return data + data end # Delete Workday @@ -187,7 +184,7 @@ def workdays_delete(id, content_type, accept, opts = {}) # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def workdays_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_delete ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_delete ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -202,7 +199,7 @@ def workdays_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_delete" end # resource path - local_var_path = "/workdays/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/workdays/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -235,7 +232,6 @@ def workdays_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Get Workday # This endpoint will return all the available information about an instance of Workday. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -246,7 +242,7 @@ def workdays_delete_with_http_info(id, content_type, accept, opts = {}) # @return [WorkdayOutput] def workdays_get(id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_get_with_http_info(id, content_type, accept, opts) - return data + data end # Get Workday @@ -259,7 +255,7 @@ def workdays_get(id, content_type, accept, opts = {}) # @return [Array<(WorkdayOutput, Fixnum, Hash)>] WorkdayOutput data, response status code and response headers def workdays_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_get ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_get ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -274,7 +270,7 @@ def workdays_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_get" end # resource path - local_var_path = "/workdays/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/workdays/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -307,7 +303,6 @@ def workdays_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Workday Import # The endpoint allows you to create a Workday Import request. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/workdays/{WorkdayID}/import \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '[ { \"email\":\"{email}\", \"firstname\":\"{firstname}\", \"lastname\":\"{firstname}\", \"username\":\"{username}\", \"attributes\":[ {\"name\":\"EmployeeID\",\"value\":\"0000\"}, {\"name\":\"WorkdayID\",\"value\":\"name.name\"} ] } ] ``` # @param workday_id @@ -319,7 +314,7 @@ def workdays_get_with_http_info(id, content_type, accept, opts = {}) # @return [JobId] def workdays_import(workday_id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_import_with_http_info(workday_id, content_type, accept, opts) - return data + data end # Workday Import @@ -333,7 +328,7 @@ def workdays_import(workday_id, content_type, accept, opts = {}) # @return [Array<(JobId, Fixnum, Hash)>] JobId data, response status code and response headers def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_import ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_import ...' end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -348,7 +343,7 @@ def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_import" end # resource path - local_var_path = "/workdays/{workday_id}/import".sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = '/workdays/{workday_id}/import'.sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} @@ -381,7 +376,6 @@ def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) end return data, status_code, headers end - # List Import Results # This endpoint provides a list of job results from the workday import and will contain all imported data from Workday. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/{WorkdayID}/import/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -395,7 +389,7 @@ def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) # @return [Array] def workdays_importresults(id, job_id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_importresults_with_http_info(id, job_id, content_type, accept, opts) - return data + data end # List Import Results @@ -411,7 +405,7 @@ def workdays_importresults(id, job_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def workdays_importresults_with_http_info(id, job_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_importresults ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_importresults ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -430,7 +424,7 @@ def workdays_importresults_with_http_info(id, job_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_importresults" end # resource path - local_var_path = "/workdays/{id}/import/{job_id}/results".sub('{' + 'id' + '}', id.to_s).sub('{' + 'job_id' + '}', job_id.to_s) + local_var_path = '/workdays/{id}/import/{job_id}/results'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'job_id' + '}', job_id.to_s) # query parameters query_params = {} @@ -465,22 +459,21 @@ def workdays_importresults_with_http_info(id, job_id, content_type, accept, opts end return data, status_code, headers end - # List Workdays # This endpoint will return all the available information about all your instances of Workday. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def workdays_list(content_type, accept, opts = {}) data, _status_code, _headers = workdays_list_with_http_info(content_type, accept, opts) - return data + data end # List Workdays @@ -497,7 +490,7 @@ def workdays_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def workdays_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_list ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_list ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -508,7 +501,7 @@ def workdays_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_list" end # resource path - local_var_path = "/workdays" + local_var_path = '/workdays' # query parameters query_params = {} @@ -546,7 +539,6 @@ def workdays_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Create new Workday # This endpoint allows you to create a new workday instance. You must supply a username and password for `Basic Authentication` that is the same as your WorkDay Integrator System User. Failure to provide these credentials will result in the request being rejected. Currently `O-Auth` isn't a supported authentication protocol for WorkDay, but will be in the future. Currently, only one instance is allowed and it must be `Workday Import`. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/workdays/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"Workday2\", \"reportUrl\":\"https://workday.com/ccx/service/customreport2/gms/user/reportname?format=json\", \"auth\": { \"basic\": { \"username\": \"someDeveloper\", \"password\": \"notTheRealPassword\" } } }' ``` # @param content_type @@ -557,7 +549,7 @@ def workdays_list_with_http_info(content_type, accept, opts = {}) # @return [nil] def workdays_post(content_type, accept, opts = {}) workdays_post_with_http_info(content_type, accept, opts) - return nil + nil end # Create new Workday @@ -570,7 +562,7 @@ def workdays_post(content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_post ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_post ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -581,7 +573,7 @@ def workdays_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_post" end # resource path - local_var_path = "/workdays" + local_var_path = '/workdays' # query parameters query_params = {} @@ -613,7 +605,6 @@ def workdays_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # Update Workday # This endpoint allows you to update the name and Custom Report URL for a Workday Instance. Currently, the name can not be changed from the default of `Workday Import`. ##### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/workdays/{WorkdayID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"reportUrl\":\"{Report_URL}\", \"name\":\"{Name}\" } ' ``` # @param id @@ -625,7 +616,7 @@ def workdays_post_with_http_info(content_type, accept, opts = {}) # @return [WorkdayOutput] def workdays_put(id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_put_with_http_info(id, content_type, accept, opts) - return data + data end # Update Workday @@ -639,7 +630,7 @@ def workdays_put(id, content_type, accept, opts = {}) # @return [Array<(WorkdayOutput, Fixnum, Hash)>] WorkdayOutput data, response status code and response headers def workdays_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_put ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -654,7 +645,7 @@ def workdays_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_put" end # resource path - local_var_path = "/workdays/{id}".sub('{' + 'id' + '}', id.to_s) + local_var_path = '/workdays/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -687,7 +678,6 @@ def workdays_put_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end - # Get Workday Settings (incomplete) # This endpoint allows you to obtain all settings needed for creating a workday instance, specifically the URL to initiate Basic Authentication with WorkDay. **This functionality is currently not enable for users.** # @param content_type @@ -698,7 +688,7 @@ def workdays_put_with_http_info(id, content_type, accept, opts = {}) # @return [nil] def workdays_settings(content_type, accept, opts = {}) workdays_settings_with_http_info(content_type, accept, opts) - return nil + nil end # Get Workday Settings (incomplete) @@ -711,7 +701,7 @@ def workdays_settings(content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_settings_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_settings ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_settings ...' end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -722,7 +712,7 @@ def workdays_settings_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_settings" end # resource path - local_var_path = "/workdays/settings" + local_var_path = '/workdays/settings' # query parameters query_params = {} @@ -755,7 +745,6 @@ def workdays_settings_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end - # List Workday Workers # This endpoint will return all of the data in your WorkDay Custom Report that has been associated with your WorkDay Instance in JumpCloud. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/{WorkDayID}/workers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param workday_id @@ -764,12 +753,12 @@ def workdays_settings_with_http_info(content_type, accept, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) # @option opts [String] :x_org_id (default to ) # @return [Array] def workdays_workers(workday_id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_workers_with_http_info(workday_id, content_type, accept, opts) - return data + data end # List Workday Workers @@ -785,7 +774,7 @@ def workdays_workers(workday_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def workdays_workers_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_workers ..." + @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_workers ...' end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -800,7 +789,7 @@ def workdays_workers_with_http_info(workday_id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_workers" end # resource path - local_var_path = "/workdays/{workday_id}/workers".sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = '/workdays/{workday_id}/workers'.sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api_client.rb b/jcapiv2/lib/jcapiv2/api_client.rb index 25cc3aa..1de0f93 100644 --- a/jcapiv2/lib/jcapiv2/api_client.rb +++ b/jcapiv2/lib/jcapiv2/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,7 +33,7 @@ def initialize(config = Configuration.default) @config = config @user_agent = "Swagger-Codegen/#{VERSION}/ruby" @default_headers = { - 'Content-Type' => "application/json", + 'Content-Type' => 'application/json', 'User-Agent' => @user_agent } end @@ -137,7 +137,7 @@ def build_request(http_method, path, opts = {}) # @param [String] mime MIME # @return [Boolean] True if the MIME is application/json def json_mime?(mime) - (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? + (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? end # Deserialize the response to the given return type. @@ -201,12 +201,12 @@ def convert_to_type(data, return_type) when /\AArray<(.+)>\z/ # e.g. Array sub_type = $1 - data.map {|item| convert_to_type(item, sub_type) } + data.map { |item| convert_to_type(item, sub_type) } when /\AHash\\z/ # e.g. Hash sub_type = $1 {}.tap do |hash| - data.each {|k, v| hash[k] = convert_to_type(v, sub_type) } + data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } end else # models, e.g. Pet @@ -228,7 +228,7 @@ def download_file(request) encoding = nil request.on_headers do |response| content_disposition = response.headers['Content-Disposition'] - if content_disposition and content_disposition =~ /filename=/i + if content_disposition && content_disposition =~ /filename=/i filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] prefix = sanitize_filename(filename) else @@ -327,7 +327,7 @@ def select_header_accept(accepts) return nil if accepts.nil? || accepts.empty? # use JSON when present, otherwise use all of the provided json_accept = accepts.find { |s| json_mime?(s) } - return json_accept || accepts.join(',') + json_accept || accepts.join(',') end # Return Content-Type header based on an array of content types provided. @@ -338,7 +338,7 @@ def select_header_content_type(content_types) return 'application/json' if content_types.nil? || content_types.empty? # use JSON when present, otherwise use the first one json_content_type = content_types.find { |s| json_mime?(s) } - return json_content_type || content_types.first + json_content_type || content_types.first end # Convert object (array, hash, object, etc) to JSON string. @@ -348,7 +348,7 @@ def object_to_http_body(model) return model if model.nil? || model.is_a?(String) local_body = nil if model.is_a?(Array) - local_body = model.map{|m| object_to_hash(m) } + local_body = model.map { |m| object_to_hash(m) } else local_body = object_to_hash(model) end diff --git a/jcapiv2/lib/jcapiv2/api_error.rb b/jcapiv2/lib/jcapiv2/api_error.rb index 81f54fc..31322c3 100644 --- a/jcapiv2/lib/jcapiv2/api_error.rb +++ b/jcapiv2/lib/jcapiv2/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end diff --git a/jcapiv2/lib/jcapiv2/configuration.rb b/jcapiv2/lib/jcapiv2/configuration.rb index d7fff86..0ce2147 100644 --- a/jcapiv2/lib/jcapiv2/configuration.rb +++ b/jcapiv2/lib/jcapiv2/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -170,7 +170,7 @@ def host=(host) def base_path=(base_path) # Add leading and trailing slashes to base_path @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = "" if @base_path == "/" + @base_path = '' if @base_path == '/' end def base_url diff --git a/jcapiv2/lib/jcapiv2/models/active_directory_input.rb b/jcapiv2/lib/jcapiv2/models/active_directory_input.rb index c3209ea..6a099fc 100644 --- a/jcapiv2/lib/jcapiv2/models/active_directory_input.rb +++ b/jcapiv2/lib/jcapiv2/models/active_directory_input.rb @@ -6,19 +6,17 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class ActiveDirectoryInput # Domain name for this Active Directory instance. attr_accessor :domain - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'domain') self.domain = attributes[:'domain'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -90,7 +87,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -172,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -183,7 +180,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/active_directory_output.rb b/jcapiv2/lib/jcapiv2/models/active_directory_output.rb index 80ab07e..be331b3 100644 --- a/jcapiv2/lib/jcapiv2/models/active_directory_output.rb +++ b/jcapiv2/lib/jcapiv2/models/active_directory_output.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class ActiveDirectoryOutput # Domain name for this Active Directory instance. attr_accessor :domain @@ -21,7 +20,6 @@ class ActiveDirectoryOutput # ObjectID of this Active Directory instance. attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'domain') self.domain = attributes[:'domain'] @@ -53,7 +51,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -61,17 +58,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? - return true + true end # Checks equality by comparing each attribute. @@ -105,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -187,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -198,7 +195,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/administrator.rb b/jcapiv2/lib/jcapiv2/models/administrator.rb index 0cf9ad1..0e8677b 100644 --- a/jcapiv2/lib/jcapiv2/models/administrator.rb +++ b/jcapiv2/lib/jcapiv2/models/administrator.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Administrator attr_accessor :id @@ -27,7 +26,6 @@ class Administrator attr_accessor :registered - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -58,7 +56,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -83,20 +81,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'registered') self.registered = attributes[:'registered'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -134,7 +131,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -216,7 +213,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -227,7 +224,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/auth_info.rb b/jcapiv2/lib/jcapiv2/models/auth_info.rb index 4c35d65..59df517 100644 --- a/jcapiv2/lib/jcapiv2/models/auth_info.rb +++ b/jcapiv2/lib/jcapiv2/models/auth_info.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class AuthInfo attr_accessor :expiry @@ -21,7 +20,6 @@ class AuthInfo attr_accessor :message - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'expiry') self.expiry = attributes[:'expiry'] @@ -59,20 +57,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'message') self.message = attributes[:'message'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -107,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,7 +197,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/auth_input.rb b/jcapiv2/lib/jcapiv2/models/auth_input.rb index 140c017..2de6aaa 100644 --- a/jcapiv2/lib/jcapiv2/models/auth_input.rb +++ b/jcapiv2/lib/jcapiv2/models/auth_input.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class AuthInput attr_accessor :oauth attr_accessor :basic - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'oauth') self.oauth = attributes[:'oauth'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'basic') self.basic = attributes[:'basic'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/auth_input_object.rb b/jcapiv2/lib/jcapiv2/models/auth_input_object.rb index 6653762..ae5b164 100644 --- a/jcapiv2/lib/jcapiv2/models/auth_input_object.rb +++ b/jcapiv2/lib/jcapiv2/models/auth_input_object.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class AuthInputObject attr_accessor :auth - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'auth') self.auth = attributes[:'auth'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/authinput_basic.rb b/jcapiv2/lib/jcapiv2/models/authinput_basic.rb index 0f155c5..a23208a 100644 --- a/jcapiv2/lib/jcapiv2/models/authinput_basic.rb +++ b/jcapiv2/lib/jcapiv2/models/authinput_basic.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class AuthinputBasic attr_accessor :username attr_accessor :password - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'username') self.username = attributes[:'username'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'password') self.password = attributes[:'password'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb b/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb index 5c2a4e6..5c94adc 100644 --- a/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb +++ b/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class AuthinputOauth attr_accessor :code - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'code') self.code = attributes[:'code'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb b/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb index 96d5e23..7abdf99 100644 --- a/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb +++ b/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -26,7 +26,6 @@ class BulkUserCreate # Map of additional attributes. attr_accessor :attributes - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -55,7 +54,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'username') self.username = attributes[:'username'] @@ -78,20 +77,19 @@ def initialize(attributes = {}) self.attributes = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -128,7 +126,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -210,7 +208,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -221,7 +219,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb b/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb index 23e7f21..03576a3 100644 --- a/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb +++ b/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -29,7 +29,6 @@ class BulkUserUpdate # Map of additional attributes. attr_accessor :attributes - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -60,7 +59,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -87,20 +86,19 @@ def initialize(attributes = {}) self.attributes = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -138,7 +136,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -220,7 +218,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -231,7 +229,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/directory.rb b/jcapiv2/lib/jcapiv2/models/directory.rb index 719e5ba..75310bd 100644 --- a/jcapiv2/lib/jcapiv2/models/directory.rb +++ b/jcapiv2/lib/jcapiv2/models/directory.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Directory # The type of directory. attr_accessor :type @@ -70,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -83,7 +82,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -91,37 +89,37 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) + type_validator = EnumAttributeValidator.new('String', ['g_suite', 'ldap_server', 'office_365', 'workday']) return false unless type_validator.valid?(@type) return false if @id.nil? return false if @name.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) + validator = EnumAttributeValidator.new('String', ['g_suite', 'ldap_server', 'office_365', 'workday']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -158,7 +156,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -240,7 +238,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -251,7 +249,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/emailrequest.rb b/jcapiv2/lib/jcapiv2/models/emailrequest.rb index 2097a24..f792167 100644 --- a/jcapiv2/lib/jcapiv2/models/emailrequest.rb +++ b/jcapiv2/lib/jcapiv2/models/emailrequest.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Emailrequest attr_accessor :email_type @@ -59,35 +58,34 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'emailType') self.email_type = attributes[:'emailType'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - email_type_validator = EnumAttributeValidator.new('String', ["activation"]) + email_type_validator = EnumAttributeValidator.new('String', ['activation']) return false unless email_type_validator.valid?(@email_type) - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] email_type Object to be assigned def email_type=(email_type) - validator = EnumAttributeValidator.new('String', ["activation"]) + validator = EnumAttributeValidator.new('String', ['activation']) unless validator.valid?(email_type) - fail ArgumentError, "invalid value for 'email_type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "email_type", must be one of #{validator.allowable_values}.' end @email_type = email_type end @@ -122,7 +120,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -204,7 +202,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,7 +213,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/error.rb b/jcapiv2/lib/jcapiv2/models/error.rb index 2831fa6..82f5110 100644 --- a/jcapiv2/lib/jcapiv2/models/error.rb +++ b/jcapiv2/lib/jcapiv2/models/error.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Error attr_accessor :code @@ -21,7 +20,6 @@ class Error attr_accessor :fields - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'code') self.code = attributes[:'code'] @@ -59,20 +57,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'fields') self.fields = attributes[:'fields'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -107,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,7 +197,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/errorresponse.rb b/jcapiv2/lib/jcapiv2/models/errorresponse.rb index 6e96c76..8c3ae2f 100644 --- a/jcapiv2/lib/jcapiv2/models/errorresponse.rb +++ b/jcapiv2/lib/jcapiv2/models/errorresponse.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Errorresponse attr_accessor :message - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'message') self.message = attributes[:'message'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb b/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb index 5d4d46c..cd5e021 100644 --- a/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb +++ b/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -15,29 +15,28 @@ module JCAPIv2 class GSuiteBuiltinTranslation - HOME_ADDRESSES = "user_home_addresses".freeze - WORK_ADDRESSES = "user_work_addresses".freeze - OTHER_ADDRESSES = "user_other_addresses".freeze - HOME_PHONE_NUMBERS = "user_home_phone_numbers".freeze - MOBILE_PHONE_NUMBERS = "user_mobile_phone_numbers".freeze - OTHER_PHONE_NUMBERS = "user_other_phone_numbers".freeze - WORK_PHONE_NUMBERS = "user_work_phone_numbers".freeze - WORK_FAX_PHONE_NUMBERS = "user_work_fax_phone_numbers".freeze - WORK_MOBILE_PHONE_NUMBERS = "user_work_mobile_phone_numbers".freeze - PRIMARY_ORGANIZATION_COST_CENTER = "user_primary_organization_cost_center".freeze - PRIMARY_ORGANIZATION_DEPARTMENT = "user_primary_organization_department".freeze - PRIMARY_ORGANIZATION_DESCRIPTION = "user_primary_organization_description".freeze - PRIMARY_ORGANIZATION_EMPLOYEE_ID = "user_primary_organization_employee_id".freeze - PRIMARY_ORGANIZATION_TITLE = "user_primary_organization_title".freeze + HOME_ADDRESSES = 'user_home_addresses'.freeze + WORK_ADDRESSES = 'user_work_addresses'.freeze + OTHER_ADDRESSES = 'user_other_addresses'.freeze + HOME_PHONE_NUMBERS = 'user_home_phone_numbers'.freeze + MOBILE_PHONE_NUMBERS = 'user_mobile_phone_numbers'.freeze + OTHER_PHONE_NUMBERS = 'user_other_phone_numbers'.freeze + WORK_PHONE_NUMBERS = 'user_work_phone_numbers'.freeze + WORK_FAX_PHONE_NUMBERS = 'user_work_fax_phone_numbers'.freeze + WORK_MOBILE_PHONE_NUMBERS = 'user_work_mobile_phone_numbers'.freeze + PRIMARY_ORGANIZATION_COST_CENTER = 'user_primary_organization_cost_center'.freeze + PRIMARY_ORGANIZATION_DEPARTMENT = 'user_primary_organization_department'.freeze + PRIMARY_ORGANIZATION_DESCRIPTION = 'user_primary_organization_description'.freeze + PRIMARY_ORGANIZATION_EMPLOYEE_ID = 'user_primary_organization_employee_id'.freeze + PRIMARY_ORGANIZATION_TITLE = 'user_primary_organization_title'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = GSuiteBuiltinTranslation.constants.select{|c| GSuiteBuiltinTranslation::const_get(c) == value} + constantValues = GSuiteBuiltinTranslation.constants.select { |c| GSuiteBuiltinTranslation::const_get(c) == value } raise "Invalid ENUM value #{value} for class #GSuiteBuiltinTranslation" if constantValues.empty? value end end - end diff --git a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb index edfb547..3349130 100644 --- a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb +++ b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb @@ -6,21 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class GSuiteTranslationRule attr_accessor :built_in # ObjectId uniquely identifying a Translation Rule. attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -43,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] @@ -52,20 +50,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -99,7 +96,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +178,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,7 +189,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb index 0cb6c2d..9b0425a 100644 --- a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb +++ b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class GSuiteTranslationRuleRequest attr_accessor :built_in - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/graph_connection.rb b/jcapiv2/lib/jcapiv2/models/graph_connection.rb index 6c58da1..630e258 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_connection.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_connection.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -19,7 +19,6 @@ class GraphConnection attr_accessor :to - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'from') self.from = attributes[:'from'] @@ -51,7 +50,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'to') self.to = attributes[:'to'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -59,17 +57,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @to.nil? - invalid_properties.push("invalid value for 'to', to cannot be nil.") + invalid_properties.push('invalid value for "to", to cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @to.nil? - return true + true end # Checks equality by comparing each attribute. @@ -103,7 +101,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -185,7 +183,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -196,7 +194,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/graph_management_req.rb index 57696a2..1978d6d 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_management_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class GraphManagementReq # How to modify the graph connection. attr_accessor :op @@ -69,7 +68,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -82,7 +81,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -90,37 +88,37 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) return false unless op_validator.valid?(@op) return false if @type.nil? return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -157,7 +155,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -239,7 +237,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -250,7 +248,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/graph_object.rb b/jcapiv2/lib/jcapiv2/models/graph_object.rb index 197e9cd..af97761 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_object.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_object.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class GraphObject # The type of graph object. attr_accessor :type @@ -21,7 +20,6 @@ class GraphObject # The ObjectID of the graph object. attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -53,7 +51,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -61,14 +58,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -76,7 +73,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @id.nil? - return true + true end # Checks equality by comparing each attribute. @@ -110,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -203,7 +200,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb b/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb index 55b2ace..08cd245 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class GraphObjectWithPaths attr_accessor :type @@ -23,7 +22,6 @@ class GraphObjectWithPaths # A path through the graph between two graph objects. attr_accessor :paths - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -63,7 +61,6 @@ def initialize(attributes = {}) self.paths = value end end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -71,18 +68,18 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end if @paths.nil? - invalid_properties.push("invalid value for 'paths', paths cannot be nil.") + invalid_properties.push('invalid value for "paths", paths cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -91,7 +88,7 @@ def valid? return false if @type.nil? return false if @id.nil? return false if @paths.nil? - return true + true end # Checks equality by comparing each attribute. @@ -126,7 +123,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -208,7 +205,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -219,7 +216,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/graph_type.rb b/jcapiv2/lib/jcapiv2/models/graph_type.rb index 0e5dfca..1133018 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_type.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -15,27 +15,26 @@ module JCAPIv2 class GraphType - ACTIVE_DIRECTORY = "active_directory".freeze - APPLICATION = "application".freeze - COMMAND = "command".freeze - G_SUITE = "g_suite".freeze - LDAP_SERVER = "ldap_server".freeze - OFFICE_365 = "office_365".freeze - POLICY = "policy".freeze - RADIUS_SERVER = "radius_server".freeze - SYSTEM = "system".freeze - SYSTEM_GROUP = "system_group".freeze - USER = "user".freeze - USER_GROUP = "user_group".freeze + ACTIVE_DIRECTORY = 'active_directory'.freeze + APPLICATION = 'application'.freeze + COMMAND = 'command'.freeze + G_SUITE = 'g_suite'.freeze + LDAP_SERVER = 'ldap_server'.freeze + OFFICE_365 = 'office_365'.freeze + POLICY = 'policy'.freeze + RADIUS_SERVER = 'radius_server'.freeze + SYSTEM = 'system'.freeze + SYSTEM_GROUP = 'system_group'.freeze + USER = 'user'.freeze + USER_GROUP = 'user_group'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = GraphType.constants.select{|c| GraphType::const_get(c) == value} + constantValues = GraphType.constants.select { |c| GraphType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #GraphType" if constantValues.empty? value end end - end diff --git a/jcapiv2/lib/jcapiv2/models/group.rb b/jcapiv2/lib/jcapiv2/models/group.rb index 814acf6..439b111 100644 --- a/jcapiv2/lib/jcapiv2/models/group.rb +++ b/jcapiv2/lib/jcapiv2/models/group.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Group # ObjectId uniquely identifying a Group. attr_accessor :id @@ -23,7 +22,6 @@ class Group # Display name of a Group. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -61,20 +59,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -109,7 +106,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -191,7 +188,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -202,7 +199,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/group_type.rb b/jcapiv2/lib/jcapiv2/models/group_type.rb index 720cb5b..3f4fba3 100644 --- a/jcapiv2/lib/jcapiv2/models/group_type.rb +++ b/jcapiv2/lib/jcapiv2/models/group_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -15,17 +15,16 @@ module JCAPIv2 class GroupType - SYSTEM_GROUP = "system_group".freeze - USER_GROUP = "user_group".freeze + SYSTEM_GROUP = 'system_group'.freeze + USER_GROUP = 'user_group'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = GroupType.constants.select{|c| GroupType::const_get(c) == value} + constantValues = GroupType.constants.select { |c| GroupType::const_get(c) == value } raise "Invalid ENUM value #{value} for class #GroupType" if constantValues.empty? value end end - end diff --git a/jcapiv2/lib/jcapiv2/models/inline_response_200.rb b/jcapiv2/lib/jcapiv2/models/inline_response_200.rb index 5086943..0ff081a 100644 --- a/jcapiv2/lib/jcapiv2/models/inline_response_200.rb +++ b/jcapiv2/lib/jcapiv2/models/inline_response_200.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class InlineResponse200 attr_accessor :total_count attr_accessor :results - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,20 +51,19 @@ def initialize(attributes = {}) self.results = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -100,7 +97,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +179,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -193,7 +190,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/inline_response_401.rb b/jcapiv2/lib/jcapiv2/models/inline_response_401.rb index 0838eb9..7a628ed 100644 --- a/jcapiv2/lib/jcapiv2/models/inline_response_401.rb +++ b/jcapiv2/lib/jcapiv2/models/inline_response_401.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class InlineResponse401 attr_accessor :message - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'message') self.message = attributes[:'message'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/job_details.rb b/jcapiv2/lib/jcapiv2/models/job_details.rb index c9c5050..a67c5dc 100644 --- a/jcapiv2/lib/jcapiv2/models/job_details.rb +++ b/jcapiv2/lib/jcapiv2/models/job_details.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class JobDetails attr_accessor :id @@ -31,7 +30,6 @@ class JobDetails attr_accessor :persisted_fields - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -66,7 +64,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -101,20 +99,19 @@ def initialize(attributes = {}) self.persisted_fields = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -154,7 +151,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -236,7 +233,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -247,7 +244,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/job_id.rb b/jcapiv2/lib/jcapiv2/models/job_id.rb index 067dc8c..3bfd107 100644 --- a/jcapiv2/lib/jcapiv2/models/job_id.rb +++ b/jcapiv2/lib/jcapiv2/models/job_id.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class JobId attr_accessor :job_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'jobId') self.job_id = attributes[:'jobId'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/job_workresult.rb b/jcapiv2/lib/jcapiv2/models/job_workresult.rb index 89d52e6..9cfa9c4 100644 --- a/jcapiv2/lib/jcapiv2/models/job_workresult.rb +++ b/jcapiv2/lib/jcapiv2/models/job_workresult.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class JobWorkresult attr_accessor :meta - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'meta') self.meta = attributes[:'meta'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb b/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb index b7e8db6..cadd89b 100644 --- a/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb +++ b/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb @@ -6,19 +6,17 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class LdapServerInput # The name of this LDAP server attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -90,7 +87,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -172,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -183,7 +180,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb b/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb index a80ab46..60bc04b 100644 --- a/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb +++ b/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class LdapServerOutput # The name of this LDAP server attr_accessor :name @@ -21,7 +20,6 @@ class LdapServerOutput # Unique identifier of this LDAP server attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -53,7 +51,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -61,17 +58,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? - return true + true end # Checks equality by comparing each attribute. @@ -105,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -187,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -198,7 +195,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/mfa.rb b/jcapiv2/lib/jcapiv2/models/mfa.rb index 2e74ca5..a25ca50 100644 --- a/jcapiv2/lib/jcapiv2/models/mfa.rb +++ b/jcapiv2/lib/jcapiv2/models/mfa.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Mfa attr_accessor :exclusion @@ -21,7 +20,6 @@ class Mfa attr_accessor :configured - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'exclusion') self.exclusion = attributes[:'exclusion'] @@ -59,20 +57,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'configured') self.configured = attributes[:'configured'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -107,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,7 +197,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb b/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb index 813482a..2bd3553 100644 --- a/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb +++ b/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class OauthCodeInput attr_accessor :code - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'code') self.code = attributes[:'code'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb b/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb index 40306ef..1b9c085 100644 --- a/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb +++ b/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -15,25 +15,24 @@ module JCAPIv2 class Office365BuiltinTranslation - STREET_ADDRESS = "user_street_address".freeze - CITY = "user_city".freeze - STATE = "user_state".freeze - COUNTRY = "user_country".freeze - POSTAL_CODE = "user_postal_code".freeze - BUSINESS_PHONES = "user_business_phones".freeze - MOBILE_PHONE = "user_mobile_phone".freeze - DEPARTMENT = "user_department".freeze - JOB_TITLE = "user_job_title".freeze - OFFICE_LOCATION = "user_office_location".freeze + STREET_ADDRESS = 'user_street_address'.freeze + CITY = 'user_city'.freeze + STATE = 'user_state'.freeze + COUNTRY = 'user_country'.freeze + POSTAL_CODE = 'user_postal_code'.freeze + BUSINESS_PHONES = 'user_business_phones'.freeze + MOBILE_PHONE = 'user_mobile_phone'.freeze + DEPARTMENT = 'user_department'.freeze + JOB_TITLE = 'user_job_title'.freeze + OFFICE_LOCATION = 'user_office_location'.freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = Office365BuiltinTranslation.constants.select{|c| Office365BuiltinTranslation::const_get(c) == value} + constantValues = Office365BuiltinTranslation.constants.select { |c| Office365BuiltinTranslation::const_get(c) == value } raise "Invalid ENUM value #{value} for class #Office365BuiltinTranslation" if constantValues.empty? value end end - end diff --git a/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb b/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb index fdbe1d0..ba74c8a 100644 --- a/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb +++ b/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb @@ -6,21 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Office365TranslationRule attr_accessor :built_in # ObjectId uniquely identifying a Translation Rule. attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -43,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] @@ -52,20 +50,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -99,7 +96,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +178,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,7 +189,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb b/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb index de4be1f..5014c8e 100644 --- a/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb +++ b/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Office365TranslationRuleRequest attr_accessor :built_in - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +36,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +86,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +168,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +179,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy.rb b/jcapiv2/lib/jcapiv2/models/policy.rb index 7b9824a..3a86b39 100644 --- a/jcapiv2/lib/jcapiv2/models/policy.rb +++ b/jcapiv2/lib/jcapiv2/models/policy.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -23,7 +23,6 @@ class Policy # The description for this specific Policy. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -61,20 +60,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -109,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -191,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -202,7 +200,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_request.rb b/jcapiv2/lib/jcapiv2/models/policy_request.rb index cb87873..f0fab84 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_request.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -22,7 +22,6 @@ class PolicyRequest attr_accessor :template - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -47,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -62,7 +61,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'template') self.template = attributes[:'template'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -70,17 +68,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -115,7 +113,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +195,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -208,7 +206,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_request_template.rb b/jcapiv2/lib/jcapiv2/models/policy_request_template.rb index e071569..95cf2a4 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_request_template.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_request_template.rb @@ -6,19 +6,17 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class PolicyRequestTemplate # ObjectId uniquely identifying a Policy instance; only allowed on POST requests. attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -90,7 +87,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -172,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -183,7 +180,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_result.rb b/jcapiv2/lib/jcapiv2/models/policy_result.rb index e881479..000f36a 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_result.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_result.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class PolicyResult # ObjectId uniquely identifying the parent Policy. attr_accessor :policy_id @@ -48,7 +47,6 @@ class PolicyResult # Details pertaining to the policy result. attr_accessor :detail - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -89,7 +87,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'policyID') self.policy_id = attributes[:'policyID'] @@ -134,20 +132,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'detail') self.detail = attributes[:'detail'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -190,7 +187,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -272,7 +269,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -283,7 +280,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template.rb b/jcapiv2/lib/jcapiv2/models/policy_template.rb index 880655e..e62d18f 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -94,7 +94,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -127,32 +127,31 @@ def initialize(attributes = {}) if attributes.has_key?(:'state') self.state = attributes[:'state'] else - self.state = "" + self.state = '' end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - os_meta_family_validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + os_meta_family_validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) return false unless os_meta_family_validator.valid?(@os_meta_family) - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] os_meta_family Object to be assigned def os_meta_family=(os_meta_family) - validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) unless validator.valid?(os_meta_family) - fail ArgumentError, "invalid value for 'os_meta_family', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "os_meta_family", must be one of #{validator.allowable_values}.' end @os_meta_family = os_meta_family end @@ -194,7 +193,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -276,7 +275,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -287,7 +286,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb b/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb index 0f8312b..a3c3ead 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class PolicyTemplateConfigField # ObjectId uniquely identifying a Policy Template Configuration Field attr_accessor :id @@ -94,7 +93,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -127,7 +126,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'tooltip') self.tooltip = attributes[:'tooltip'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -135,32 +133,32 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? - display_type_validator = EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) + display_type_validator = EnumAttributeValidator.new('String', ['checkbox', 'date', 'email', 'number', 'select', 'text', 'textarea']) return false unless display_type_validator.valid?(@display_type) return false if @name.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] display_type Object to be assigned def display_type=(display_type) - validator = EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) + validator = EnumAttributeValidator.new('String', ['checkbox', 'date', 'email', 'number', 'select', 'text', 'textarea']) unless validator.valid?(display_type) - fail ArgumentError, "invalid value for 'display_type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "display_type", must be one of #{validator.allowable_values}.' end @display_type = display_type end @@ -202,7 +200,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -284,7 +282,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -295,7 +293,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb index 4691ec3..9e61de4 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class PolicyTemplateConfigFieldTooltip attr_accessor :template attr_accessor :variables - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'template') self.template = attributes[:'template'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'variables') self.variables = attributes[:'variables'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb index b37c68d..2c19a63 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class PolicyTemplateConfigFieldTooltipVariables attr_accessor :icon attr_accessor :message - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'icon') self.icon = attributes[:'icon'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'message') self.message = attributes[:'message'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb b/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb index 21c8441..c54b3d1 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -94,7 +94,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -129,30 +129,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'behavior') self.behavior = attributes[:'behavior'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - os_meta_family_validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + os_meta_family_validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) return false unless os_meta_family_validator.valid?(@os_meta_family) - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] os_meta_family Object to be assigned def os_meta_family=(os_meta_family) - validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) unless validator.valid?(os_meta_family) - fail ArgumentError, "invalid value for 'os_meta_family', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "os_meta_family", must be one of #{validator.allowable_values}.' end @os_meta_family = os_meta_family end @@ -194,7 +193,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -276,7 +275,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -287,7 +286,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_value.rb b/jcapiv2/lib/jcapiv2/models/policy_value.rb index 3f5f2d4..ecbc5aa 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_value.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_value.rb @@ -6,19 +6,17 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class PolicyValue # The ObjectId of the corresponding Policy Template configuration field. attr_accessor :config_field_id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'configFieldID') self.config_field_id = attributes[:'configFieldID'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -90,7 +87,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -172,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -183,7 +180,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/policy_with_details.rb b/jcapiv2/lib/jcapiv2/models/policy_with_details.rb index ffcc9d6..e1e4ea2 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_with_details.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_with_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -27,7 +27,6 @@ class PolicyWithDetails attr_accessor :values - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -56,7 +55,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -81,20 +80,19 @@ def initialize(attributes = {}) self.values = value end end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -131,7 +129,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -213,7 +211,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -224,7 +222,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/provider.rb b/jcapiv2/lib/jcapiv2/models/provider.rb index b32e88b..8989582 100644 --- a/jcapiv2/lib/jcapiv2/models/provider.rb +++ b/jcapiv2/lib/jcapiv2/models/provider.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Provider attr_accessor :name attr_accessor :contact - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'contact') self.contact = attributes[:'contact'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/provider_contact.rb b/jcapiv2/lib/jcapiv2/models/provider_contact.rb index 5b086d2..14b76ba 100644 --- a/jcapiv2/lib/jcapiv2/models/provider_contact.rb +++ b/jcapiv2/lib/jcapiv2/models/provider_contact.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class ProviderContact attr_accessor :name attr_accessor :email - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'email') self.email = attributes[:'email'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb b/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb index fe7ed6a..25a6393 100644 --- a/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb +++ b/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SambaDomainInput # Name of this domain's WorkGroup attr_accessor :name @@ -21,7 +20,6 @@ class SambaDomainInput # Security identifier of this domain attr_accessor :sid - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -53,7 +51,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'sid') self.sid = attributes[:'sid'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -61,14 +58,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @sid.nil? - invalid_properties.push("invalid value for 'sid', sid cannot be nil.") + invalid_properties.push('invalid value for "sid", sid cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -76,7 +73,7 @@ def list_invalid_properties def valid? return false if @name.nil? return false if @sid.nil? - return true + true end # Checks equality by comparing each attribute. @@ -110,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -192,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -203,7 +200,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb b/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb index 069ab9d..d9fe583 100644 --- a/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb +++ b/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SambaDomainOutput # Name of this domain's WorkGroup attr_accessor :name @@ -24,7 +23,6 @@ class SambaDomainOutput # Unique identifier of this domain attr_accessor :id - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -62,7 +60,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -70,18 +67,18 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end if @sid.nil? - invalid_properties.push("invalid value for 'sid', sid cannot be nil.") + invalid_properties.push('invalid value for "sid", sid cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -90,7 +87,7 @@ def valid? return false if @name.nil? return false if @sid.nil? return false if @id.nil? - return true + true end # Checks equality by comparing each attribute. @@ -125,7 +122,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -218,7 +215,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/sshkeylist.rb b/jcapiv2/lib/jcapiv2/models/sshkeylist.rb index 3cec068..de5ab2e 100644 --- a/jcapiv2/lib/jcapiv2/models/sshkeylist.rb +++ b/jcapiv2/lib/jcapiv2/models/sshkeylist.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Sshkeylist # The date the SSH key was created. attr_accessor :create_date @@ -27,7 +26,6 @@ class Sshkeylist # The name of the SSH key. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'create_date') self.create_date = attributes[:'create_date'] @@ -71,20 +69,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -120,7 +117,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -202,7 +199,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -213,7 +210,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb index 5378f8a..facebaa 100644 --- a/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemGraphManagementReq attr_accessor :attributes @@ -73,7 +72,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -90,7 +89,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -98,39 +96,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) return false unless type_validator.valid?(@type) return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -138,9 +136,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -178,7 +176,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -260,7 +258,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -271,7 +269,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb index f79305e..656b266 100644 --- a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb +++ b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -17,7 +17,6 @@ module JCAPIv2 class SystemGraphManagementReqAttributes attr_accessor :sudo - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'sudo') self.sudo = attributes[:'sudo'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +87,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +180,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb index 32562e9..face2e4 100644 --- a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb +++ b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemGraphManagementReqAttributesSudo attr_accessor :enabled attr_accessor :without_password - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'enabled') self.enabled = attributes[:'enabled'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'withoutPassword') self.without_password = attributes[:'withoutPassword'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_group.rb b/jcapiv2/lib/jcapiv2/models/system_group.rb index dc5e6bd..05c7b88 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemGroup # ObjectId uniquely identifying a System Group. attr_accessor :id @@ -70,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -83,30 +82,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - type_validator = EnumAttributeValidator.new('String', ["system_group"]) + type_validator = EnumAttributeValidator.new('String', ['system_group']) return false unless type_validator.valid?(@type) - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["system_group"]) + validator = EnumAttributeValidator.new('String', ['system_group']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -143,7 +141,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -225,7 +223,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -236,7 +234,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_group_data.rb b/jcapiv2/lib/jcapiv2/models/system_group_data.rb index 346460f..eabe2ca 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group_data.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group_data.rb @@ -6,19 +6,17 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemGroupData # Display name of a System Group. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -39,12 +37,11 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -52,17 +49,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -95,7 +92,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +174,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,7 +185,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb index e83910b..9419677 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemGroupGraphManagementReq # How to modify the graph connection. attr_accessor :op @@ -69,7 +68,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -82,7 +81,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -90,39 +88,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) return false unless type_validator.valid?(@type) return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -130,9 +128,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -169,7 +167,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -251,7 +249,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -262,7 +260,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb b/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb index 0bc390e..650a6b4 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemGroupMembersReq # How to modify the membership connection. attr_accessor :op @@ -70,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -83,7 +82,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -91,39 +89,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove']) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["system"]) + type_validator = EnumAttributeValidator.new('String', ['system']) return false unless type_validator.valid?(@type) return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -131,9 +129,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["system"]) + validator = EnumAttributeValidator.new('String', ['system']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -170,7 +168,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -252,7 +250,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -263,7 +261,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/systemfdekey.rb b/jcapiv2/lib/jcapiv2/models/systemfdekey.rb index b0c7209..398e9d0 100644 --- a/jcapiv2/lib/jcapiv2/models/systemfdekey.rb +++ b/jcapiv2/lib/jcapiv2/models/systemfdekey.rb @@ -6,18 +6,16 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Systemfdekey attr_accessor :key - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,12 +36,11 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'key') self.key = attributes[:'key'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -51,17 +48,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @key.nil? - invalid_properties.push("invalid value for 'key', key cannot be nil.") + invalid_properties.push('invalid value for "key", key cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @key.nil? - return true + true end # Checks equality by comparing each attribute. @@ -94,7 +91,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -176,7 +173,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -187,7 +184,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/systemuser.rb b/jcapiv2/lib/jcapiv2/models/systemuser.rb index ed3b07c..2757e86 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuser.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuser.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Systemuser attr_accessor :email @@ -96,7 +95,6 @@ class Systemuser attr_accessor :mfa - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -195,7 +193,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -362,7 +360,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -370,74 +367,74 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@email.nil? && @email.to_s.length > 1024 - invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') end if !@username.nil? && @username.to_s.length > 1024 - invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') end if !@associated_tag_count.nil? && @associated_tag_count < 0 - invalid_properties.push("invalid value for 'associated_tag_count', must be greater than or equal to 0.") + invalid_properties.push('invalid value for "associated_tag_count", must be greater than or equal to 0.') end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") + invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -460,15 +457,14 @@ def valid? return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 return false if !@job_title.nil? && @job_title.to_s.length > 1024 return false if !@department.nil? && @department.to_s.length > 1024 - return true + true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) - if !email.nil? && email.to_s.length > 1024 - fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' end @email = email @@ -477,9 +473,8 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] username Value to be assigned def username=(username) - if !username.nil? && username.to_s.length > 1024 - fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' end @username = username @@ -488,9 +483,8 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) - if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' end @unix_uid = unix_uid @@ -499,9 +493,8 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) - if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' end @unix_guid = unix_guid @@ -510,9 +503,8 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) - if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' end @firstname = firstname @@ -521,9 +513,8 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) - if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' end @lastname = lastname @@ -532,9 +523,8 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] associated_tag_count Value to be assigned def associated_tag_count=(associated_tag_count) - if !associated_tag_count.nil? && associated_tag_count < 0 - fail ArgumentError, "invalid value for 'associated_tag_count', must be greater than or equal to 0." + fail ArgumentError, 'invalid value for "associated_tag_count", must be greater than or equal to 0.' end @associated_tag_count = associated_tag_count @@ -543,9 +533,8 @@ def associated_tag_count=(associated_tag_count) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) - if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' end @middlename = middlename @@ -554,9 +543,8 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) - if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' end @displayname = displayname @@ -565,9 +553,8 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) - if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' end @description = description @@ -576,9 +563,8 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) - if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' end @location = location @@ -587,9 +573,8 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) - if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' end @cost_center = cost_center @@ -598,9 +583,8 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) - if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' end @employee_type = employee_type @@ -609,9 +593,8 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) - if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' end @company = company @@ -620,9 +603,8 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) - if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." + fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' end @employee_identifier = employee_identifier @@ -631,9 +613,8 @@ def employee_identifier=(employee_identifier) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) - if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' end @job_title = job_title @@ -642,9 +623,8 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) - if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' end @department = department @@ -719,7 +699,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -801,7 +781,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -812,7 +792,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb index 5d8a0cd..3144cab 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class Systemuserputpost attr_accessor :email @@ -90,7 +89,6 @@ class Systemuserputpost attr_accessor :mfa - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -183,7 +181,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -342,7 +340,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -350,34 +347,34 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @email.nil? - invalid_properties.push("invalid value for 'email', email cannot be nil.") + invalid_properties.push('invalid value for "email", email cannot be nil.') end if @email.to_s.length > 1024 - invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') end if @username.nil? - invalid_properties.push("invalid value for 'username', username cannot be nil.") + invalid_properties.push('invalid value for "username", username cannot be nil.') end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") + invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") + invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") + invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid @@ -390,18 +387,18 @@ def valid? return false if !@unix_guid.nil? && @unix_guid < 1 return false if !@description.nil? && @description.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - return true + true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) if email.nil? - fail ArgumentError, "email cannot be nil" + fail ArgumentError, 'email cannot be nil' end if email.to_s.length > 1024 - fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' end @email = email @@ -410,9 +407,8 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) - if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' end @unix_uid = unix_uid @@ -421,9 +417,8 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) - if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." + fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' end @unix_guid = unix_guid @@ -432,9 +427,8 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) - if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." + fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' end @description = description @@ -443,9 +437,8 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) - if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." + fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' end @employee_identifier = employee_identifier @@ -517,7 +510,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -599,7 +592,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -610,7 +603,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb index 6d965ba..edd958d 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemuserputpostAddresses attr_accessor :type @@ -31,7 +30,6 @@ class SystemuserputpostAddresses attr_accessor :country - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -66,7 +64,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -99,20 +97,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -152,7 +149,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -234,7 +231,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -245,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb index f870366..9ae061d 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class SystemuserputpostPhoneNumbers attr_accessor :type attr_accessor :number - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb index b105511..aa49096 100644 --- a/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGraphManagementReq attr_accessor :attributes @@ -73,7 +72,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -90,7 +89,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -98,39 +96,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) return false unless type_validator.valid?(@type) return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -138,9 +136,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -178,7 +176,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -260,7 +258,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -271,7 +269,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group.rb b/jcapiv2/lib/jcapiv2/models/user_group.rb index e44d99d..3b66419 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGroup # ObjectId uniquely identifying a User Group. attr_accessor :id @@ -70,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -83,30 +82,29 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - type_validator = EnumAttributeValidator.new('String', ["user_group"]) + type_validator = EnumAttributeValidator.new('String', ['user_group']) return false unless type_validator.valid?(@type) - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["user_group"]) + validator = EnumAttributeValidator.new('String', ['user_group']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -143,7 +141,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -225,7 +223,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -236,7 +234,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb index 144de5a..4ebffc2 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGroupGraphManagementReq # How to modify the graph connection. attr_accessor :op @@ -70,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -83,7 +82,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -91,39 +89,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) return false unless type_validator.valid?(@type) return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -131,9 +129,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -170,7 +168,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -252,7 +250,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -263,7 +261,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb b/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb index 9b9c851..9167a6c 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGroupMembersReq # How to modify the membership connection. attr_accessor :op @@ -70,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -83,7 +82,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -91,39 +89,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push("invalid value for 'op', op cannot be nil.") + invalid_properties.push('invalid value for "op", op cannot be nil.') end if @type.nil? - invalid_properties.push("invalid value for 'type', type cannot be nil.") + invalid_properties.push('invalid value for "type", type cannot be nil.') end if @id.nil? - invalid_properties.push("invalid value for 'id', id cannot be nil.") + invalid_properties.push('invalid value for "id", id cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ["add", "remove"]) + op_validator = EnumAttributeValidator.new('String', ['add', 'remove']) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ["user"]) + type_validator = EnumAttributeValidator.new('String', ['user']) return false unless type_validator.valid?(@type) return false if @id.nil? - return true + true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ["add", "remove"]) + validator = EnumAttributeValidator.new('String', ['add', 'remove']) unless validator.valid?(op) - fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' end @op = op end @@ -131,9 +129,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ["user"]) + validator = EnumAttributeValidator.new('String', ['user']) unless validator.valid?(type) - fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." + fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end @@ -170,7 +168,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -252,7 +250,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -263,7 +261,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_post.rb b/jcapiv2/lib/jcapiv2/models/user_group_post.rb index 9fe6da9..6b98128 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_post.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_post.rb @@ -6,21 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGroupPost attr_accessor :attributes # Display name of a User Group. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -43,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -52,7 +50,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -60,17 +57,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -104,7 +101,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +183,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,7 +194,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb index a3ef36b..d102292 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -19,7 +19,6 @@ class UserGroupPostAttributes attr_accessor :samba_enabled - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'posixGroups') if (value = attributes[:'posixGroups']).is_a?(Array) @@ -53,20 +52,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'sambaEnabled') self.samba_enabled = attributes[:'sambaEnabled'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -100,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -182,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -193,7 +191,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb index 578c449..747935b 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGroupPostAttributesPosixGroups attr_accessor :id attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_put.rb b/jcapiv2/lib/jcapiv2/models/user_group_put.rb index f05997b..d65243f 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_put.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_put.rb @@ -6,21 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class UserGroupPut attr_accessor :attributes # Display name of a User Group. attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -43,7 +41,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -52,7 +50,6 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? @@ -60,17 +57,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push("invalid value for 'name', name cannot be nil.") + invalid_properties.push('invalid value for "name", name cannot be nil.') end - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - return true + true end # Checks equality by comparing each attribute. @@ -104,7 +101,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +183,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,7 +194,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb b/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb index 6935b0c..91083e5 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -17,7 +17,6 @@ module JCAPIv2 class UserGroupPutAttributes attr_accessor :samba_enabled - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,25 +37,24 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'sambaEnabled') self.samba_enabled = attributes[:'sambaEnabled'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -89,7 +87,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -171,7 +169,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -182,7 +180,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/workday_fields.rb b/jcapiv2/lib/jcapiv2/models/workday_fields.rb index 453f17a..bb8cfa0 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_fields.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_fields.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class WorkdayFields attr_accessor :report_url attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'reportUrl') self.report_url = attributes[:'reportUrl'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/workday_input.rb b/jcapiv2/lib/jcapiv2/models/workday_input.rb index e20cd48..edc4664 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_input.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_input.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class WorkdayInput attr_accessor :report_url @@ -21,7 +20,6 @@ class WorkdayInput attr_accessor :auth - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'reportUrl') self.report_url = attributes[:'reportUrl'] @@ -59,20 +57,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'auth') self.auth = attributes[:'auth'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -107,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,7 +197,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/workday_output.rb b/jcapiv2/lib/jcapiv2/models/workday_output.rb index 1bc4d66..c858041 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_output.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_output.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class WorkdayOutput attr_accessor :id @@ -25,7 +24,6 @@ class WorkdayOutput attr_accessor :auth - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -75,20 +73,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'auth') self.auth = attributes[:'auth'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -125,7 +122,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -218,7 +215,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/workday_request.rb b/jcapiv2/lib/jcapiv2/models/workday_request.rb index 1a74071..9eff152 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_request.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_request.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class WorkdayRequest attr_accessor :object_id attr_accessor :name - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'objectId') self.object_id = attributes[:'objectId'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/workday_worker.rb b/jcapiv2/lib/jcapiv2/models/workday_worker.rb index 22f5b03..8b7b173 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_worker.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_worker.rb @@ -6,14 +6,13 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class WorkdayWorker attr_accessor :username @@ -25,7 +24,6 @@ class WorkdayWorker attr_accessor :attributes - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +52,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'username') self.username = attributes[:'username'] @@ -75,20 +73,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -125,7 +122,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -218,7 +215,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb b/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb index d6a16b1..45cd8e3 100644 --- a/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb +++ b/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb @@ -6,20 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end require 'date' module JCAPIv2 - class WorkdayoutputAuth attr_accessor :basic attr_accessor :oauth - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +40,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'basic') self.basic = attributes[:'basic'] @@ -51,20 +49,19 @@ def initialize(attributes = {}) if attributes.has_key?(:'oauth') self.oauth = attributes[:'oauth'] end - end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - return invalid_properties + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return true + true end # Checks equality by comparing each attribute. @@ -98,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map{ |v| _to_hash(v) } + value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,7 +188,5 @@ def _to_hash(value) value end end - end - end diff --git a/jcapiv2/lib/jcapiv2/version.rb b/jcapiv2/lib/jcapiv2/version.rb index 5dcafff..0b2a850 100644 --- a/jcapiv2/lib/jcapiv2/version.rb +++ b/jcapiv2/lib/jcapiv2/version.rb @@ -6,10 +6,10 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end module JCAPIv2 - VERSION = "1.4.0" + VERSION = '1.4.0' end diff --git a/jcapiv2/spec/api/active_directory_api_spec.rb b/jcapiv2/spec/api/active_directory_api_spec.rb index f5ccfc1..69f1287 100644 --- a/jcapiv2/spec/api/active_directory_api_spec.rb +++ b/jcapiv2/spec/api/active_directory_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'activedirectories_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -57,7 +57,7 @@ # @option opts [String] :x_org_id # @return [ActiveDirectoryOutput] describe 'activedirectories_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -76,7 +76,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'activedirectories_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -91,7 +91,7 @@ # @option opts [String] :x_org_id # @return [ActiveDirectoryOutput] describe 'activedirectories_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -109,7 +109,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_active_directory_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -142,7 +142,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/applications_api_spec.rb b/jcapiv2/spec/api/applications_api_spec.rb index 563f97b..1a0d5e8 100644 --- a/jcapiv2/spec/api/applications_api_spec.rb +++ b/jcapiv2/spec/api/applications_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_application_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/bulk_job_requests_api_spec.rb b/jcapiv2/spec/api/bulk_job_requests_api_spec.rb index 2f4929c..87848bf 100644 --- a/jcapiv2/spec/api/bulk_job_requests_api_spec.rb +++ b/jcapiv2/spec/api/bulk_job_requests_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [JobId] describe 'bulk_users_create test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'bulk_users_create_results test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -74,7 +74,7 @@ # @option opts [String] :x_org_id # @return [JobId] describe 'bulk_users_update test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -89,7 +89,7 @@ # @option opts [String] :x_org_id # @return [JobDetails] describe 'jobs_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -106,7 +106,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'jobs_results test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/commands_api_spec.rb b/jcapiv2/spec/api/commands_api_spec.rb index f0d4183..4fb13f9 100644 --- a/jcapiv2/spec/api/commands_api_spec.rb +++ b/jcapiv2/spec/api/commands_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_command_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/directories_api_spec.rb b/jcapiv2/spec/api/directories_api_spec.rb index 3bfa289..9028ec1 100644 --- a/jcapiv2/spec/api/directories_api_spec.rb +++ b/jcapiv2/spec/api/directories_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'directories_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/fde_api_spec.rb b/jcapiv2/spec/api/fde_api_spec.rb index 04b2876..f92b3f6 100644 --- a/jcapiv2/spec/api/fde_api_spec.rb +++ b/jcapiv2/spec/api/fde_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -40,7 +40,7 @@ # @option opts [String] :x_org_id # @return [Systemfdekey] describe 'systems_get_fde_key test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/g_suite_api_spec.rb b/jcapiv2/spec/api/g_suite_api_spec.rb index 7078e78..3ab2608 100644 --- a/jcapiv2/spec/api/g_suite_api_spec.rb +++ b/jcapiv2/spec/api/g_suite_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_g_suite_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -76,7 +76,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -93,7 +93,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -108,7 +108,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'translation_rules_g_suite_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -123,7 +123,7 @@ # @param [Hash] opts the optional parameters # @return [GSuiteTranslationRule] describe 'translation_rules_g_suite_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -142,7 +142,7 @@ # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [Array] describe 'translation_rules_g_suite_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -157,7 +157,7 @@ # @option opts [GSuiteTranslationRuleRequest] :body # @return [GSuiteTranslationRule] describe 'translation_rules_g_suite_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/graph_api_spec.rb b/jcapiv2/spec/api/graph_api_spec.rb index 9133f47..7ba2c02 100644 --- a/jcapiv2/spec/api/graph_api_spec.rb +++ b/jcapiv2/spec/api/graph_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_active_directory_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -96,7 +96,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_application_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -146,7 +146,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -164,7 +164,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -180,7 +180,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_command_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -197,7 +197,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -214,7 +214,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -232,7 +232,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -246,7 +246,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_g_suite_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -263,7 +263,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -280,7 +280,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -298,7 +298,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -314,7 +314,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_ldap_server_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -331,7 +331,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -348,7 +348,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -366,7 +366,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -382,7 +382,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_office365_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -399,7 +399,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -416,7 +416,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -434,7 +434,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -450,7 +450,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_policy_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -467,7 +467,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -484,7 +484,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -502,7 +502,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -518,7 +518,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_radius_server_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -535,7 +535,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -552,7 +552,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -572,7 +572,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -590,7 +590,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -608,7 +608,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -624,7 +624,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -643,7 +643,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -660,7 +660,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -678,7 +678,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_members_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -697,7 +697,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_membership test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -714,7 +714,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_command test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -731,7 +731,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_policy test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -748,7 +748,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -765,7 +765,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -786,7 +786,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -803,7 +803,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_command test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -820,7 +820,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_policy test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -840,7 +840,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_system_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -859,7 +859,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -877,7 +877,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -893,7 +893,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -911,7 +911,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -927,7 +927,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -946,7 +946,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -963,7 +963,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -979,7 +979,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_members_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -998,7 +998,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_membership test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1015,7 +1015,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_active_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1032,7 +1032,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_application test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1049,7 +1049,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1066,7 +1066,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_g_suite test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1083,7 +1083,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_ldap_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1100,7 +1100,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_office365 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1117,7 +1117,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_radius_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1134,7 +1134,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1151,7 +1151,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1170,7 +1170,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1187,7 +1187,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_application test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1204,7 +1204,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1221,7 +1221,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_g_suite test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1238,7 +1238,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_ldap_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1255,7 +1255,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_office365 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1272,7 +1272,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_radius_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1290,7 +1290,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_user_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1307,7 +1307,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1327,7 +1327,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policystatuses_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/groups_api_spec.rb b/jcapiv2/spec/api/groups_api_spec.rb index cddbe69..751a025 100644 --- a/jcapiv2/spec/api/groups_api_spec.rb +++ b/jcapiv2/spec/api/groups_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'groups_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/ldap_servers_api_spec.rb b/jcapiv2/spec/api/ldap_servers_api_spec.rb index 72141a8..c6d1c3f 100644 --- a/jcapiv2/spec/api/ldap_servers_api_spec.rb +++ b/jcapiv2/spec/api/ldap_servers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_ldap_server_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -110,7 +110,7 @@ # @option opts [String] :x_org_id # @return [LdapServerOutput] describe 'ldapservers_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'ldapservers_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/office365_api_spec.rb b/jcapiv2/spec/api/office365_api_spec.rb index 3a85ae9..7fa068a 100644 --- a/jcapiv2/spec/api/office365_api_spec.rb +++ b/jcapiv2/spec/api/office365_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_office365_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -110,7 +110,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'translation_rules_office365_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @param [Hash] opts the optional parameters # @return [Office365TranslationRule] describe 'translation_rules_office365_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -144,7 +144,7 @@ # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [Array] describe 'translation_rules_office365_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -159,7 +159,7 @@ # @option opts [Office365TranslationRuleRequest] :body # @return [Office365TranslationRule] describe 'translation_rules_office365_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/policies_api_spec.rb b/jcapiv2/spec/api/policies_api_spec.rb index a2d71bc..65d9402 100644 --- a/jcapiv2/spec/api/policies_api_spec.rb +++ b/jcapiv2/spec/api/policies_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_policy_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -110,7 +110,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'policies_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @option opts [String] :x_org_id # @return [PolicyWithDetails] describe 'policies_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -144,7 +144,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policies_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -159,7 +159,7 @@ # @option opts [String] :x_org_id # @return [PolicyWithDetails] describe 'policies_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -173,7 +173,7 @@ # @option opts [String] :x_org_id # @return [Policy] describe 'policies_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -188,7 +188,7 @@ # @option opts [String] :x_org_id # @return [PolicyResult] describe 'policyresults_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -209,7 +209,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policyresults_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -229,7 +229,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policyresults_list_0 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -249,7 +249,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policystatuses_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -269,7 +269,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policystatuses_list_0 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -284,7 +284,7 @@ # @option opts [String] :x_org_id # @return [PolicyTemplateWithDetails] describe 'policytemplates_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -303,7 +303,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policytemplates_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/policytemplates_api_spec.rb b/jcapiv2/spec/api/policytemplates_api_spec.rb index 88c87a0..d3aafdb 100644 --- a/jcapiv2/spec/api/policytemplates_api_spec.rb +++ b/jcapiv2/spec/api/policytemplates_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [PolicyTemplateWithDetails] describe 'policytemplates_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policytemplates_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/providers_api_spec.rb b/jcapiv2/spec/api/providers_api_spec.rb index 3e47e69..3e928ca 100644 --- a/jcapiv2/spec/api/providers_api_spec.rb +++ b/jcapiv2/spec/api/providers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,7 +34,6 @@ # unit tests for providers_list_administrators # providersadministrators - # # @param provider_id # @param content_type # @param accept @@ -46,7 +45,7 @@ # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [InlineResponse200] describe 'providers_list_administrators test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/radius_servers_api_spec.rb b/jcapiv2/spec/api/radius_servers_api_spec.rb index 48b4aae..3615cba 100644 --- a/jcapiv2/spec/api/radius_servers_api_spec.rb +++ b/jcapiv2/spec/api/radius_servers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_radius_server_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/samba_domains_api_spec.rb b/jcapiv2/spec/api/samba_domains_api_spec.rb index 8f224a7..baebe1c 100644 --- a/jcapiv2/spec/api/samba_domains_api_spec.rb +++ b/jcapiv2/spec/api/samba_domains_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -43,7 +43,7 @@ # @option opts [String] :x_org_id # @return [String] describe 'ldapservers_samba_domains_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [SambaDomainOutput] describe 'ldapservers_samba_domains_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -79,7 +79,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'ldapservers_samba_domains_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [SambaDomainOutput] describe 'ldapservers_samba_domains_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [SambaDomainOutput] describe 'ldapservers_samba_domains_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/system_group_associations_api_spec.rb b/jcapiv2/spec/api/system_group_associations_api_spec.rb index 0bc1601..d3880fd 100644 --- a/jcapiv2/spec/api/system_group_associations_api_spec.rb +++ b/jcapiv2/spec/api/system_group_associations_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_command test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_policy test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/system_group_members_membership_api_spec.rb b/jcapiv2/spec/api/system_group_members_membership_api_spec.rb index 5ae3fc6..b0565bb 100644 --- a/jcapiv2/spec/api/system_group_members_membership_api_spec.rb +++ b/jcapiv2/spec/api/system_group_members_membership_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -81,7 +81,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_members_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -100,7 +100,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_membership test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/system_groups_api_spec.rb b/jcapiv2/spec/api/system_groups_api_spec.rb index c8b7a96..90250a4 100644 --- a/jcapiv2/spec/api/system_groups_api_spec.rb +++ b/jcapiv2/spec/api/system_groups_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -97,7 +97,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -115,7 +115,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_members_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -134,7 +134,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_membership test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -151,7 +151,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_policy test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -168,7 +168,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -185,7 +185,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -200,7 +200,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'groups_system_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -215,7 +215,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -234,7 +234,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'groups_system_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -250,7 +250,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_patch test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -265,7 +265,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -281,7 +281,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/systems_api_spec.rb b/jcapiv2/spec/api/systems_api_spec.rb index fb58081..a48313c 100644 --- a/jcapiv2/spec/api/systems_api_spec.rb +++ b/jcapiv2/spec/api/systems_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -47,7 +47,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -65,7 +65,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -86,7 +86,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -103,7 +103,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_command test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -120,7 +120,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_policy test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -140,7 +140,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_system_traverse_user test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -159,7 +159,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_user_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -172,7 +172,7 @@ # @option opts [String] :x_org_id # @return [Systemfdekey] describe 'systems_get_fde_key test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/user_group_associations_api_spec.rb b/jcapiv2/spec/api/user_group_associations_api_spec.rb index db85c9a..a1aafba 100644 --- a/jcapiv2/spec/api/user_group_associations_api_spec.rb +++ b/jcapiv2/spec/api/user_group_associations_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_active_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_application test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_g_suite test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -146,7 +146,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_ldap_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -163,7 +163,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_office365 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -180,7 +180,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_radius_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -197,7 +197,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -214,7 +214,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/user_group_members_membership_api_spec.rb b/jcapiv2/spec/api/user_group_members_membership_api_spec.rb index b85b852..db2b0d1 100644 --- a/jcapiv2/spec/api/user_group_members_membership_api_spec.rb +++ b/jcapiv2/spec/api/user_group_members_membership_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -79,7 +79,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_members_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -98,7 +98,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_membership test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/user_groups_api_spec.rb b/jcapiv2/spec/api/user_groups_api_spec.rb index ae0c4b2..fde16f8 100644 --- a/jcapiv2/spec/api/user_groups_api_spec.rb +++ b/jcapiv2/spec/api/user_groups_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -97,7 +97,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_members_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -113,7 +113,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_members_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -132,7 +132,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_membership test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -149,7 +149,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_active_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -166,7 +166,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_application test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -183,7 +183,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -200,7 +200,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_g_suite test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -217,7 +217,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_ldap_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -234,7 +234,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_office365 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -251,7 +251,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_radius_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -268,7 +268,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -285,7 +285,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -300,7 +300,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'groups_user_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -315,7 +315,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -334,7 +334,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'groups_user_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -350,7 +350,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_patch test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -365,7 +365,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -381,7 +381,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/users_api_spec.rb b/jcapiv2/spec/api/users_api_spec.rb index 7f14edd..eee0394 100644 --- a/jcapiv2/spec/api/users_api_spec.rb +++ b/jcapiv2/spec/api/users_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_associations_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_associations_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_member_of test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -97,7 +97,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_application test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -114,7 +114,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_directory test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -131,7 +131,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_g_suite test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -148,7 +148,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_ldap_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -165,7 +165,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_office365 test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -182,7 +182,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_radius_server test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -200,7 +200,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_user_traverse_system test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -217,7 +217,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_system_group test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -233,7 +233,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'users_send_emails test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/workday_import_api_spec.rb b/jcapiv2/spec/api/workday_import_api_spec.rb index 482524c..06f3dfc 100644 --- a/jcapiv2/spec/api/workday_import_api_spec.rb +++ b/jcapiv2/spec/api/workday_import_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -43,7 +43,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_authorize test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -58,7 +58,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_deauthorize test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -73,7 +73,7 @@ # @option opts [String] :x_org_id # @return [Object] describe 'workdays_delete test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -88,7 +88,7 @@ # @option opts [String] :x_org_id # @return [WorkdayOutput] describe 'workdays_get test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -104,7 +104,7 @@ # @option opts [String] :x_org_id # @return [JobId] describe 'workdays_import test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -122,7 +122,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'workdays_importresults test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -141,7 +141,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'workdays_list test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -156,7 +156,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_post test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -172,7 +172,7 @@ # @option opts [String] :x_org_id # @return [WorkdayOutput] describe 'workdays_put test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -187,7 +187,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_settings test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -205,7 +205,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'workdays_workers test' do - it "should work" do + it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api_client_spec.rb b/jcapiv2/spec/api_client_spec.rb index 5903dc8..314d1ce 100644 --- a/jcapiv2/spec/api_client_spec.rb +++ b/jcapiv2/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -51,11 +51,11 @@ end end - describe "params_encoding in #build_request" do + describe 'params_encoding in #build_request' do let(:config) { JCAPIv2::Configuration.new } let(:api_client) { JCAPIv2::ApiClient.new(config) } - it "defaults to nil" do + it 'defaults to nil' do expect(JCAPIv2::Configuration.default.params_encoding).to eq(nil) expect(config.params_encoding).to eq(nil) @@ -63,18 +63,18 @@ expect(request.options[:params_encoding]).to eq(nil) end - it "can be customized" do + it 'can be customized' do config.params_encoding = :multi request = api_client.build_request(:get, '/test') expect(request.options[:params_encoding]).to eq(:multi) end end - describe "timeout in #build_request" do + describe 'timeout in #build_request' do let(:config) { JCAPIv2::Configuration.new } let(:api_client) { JCAPIv2::ApiClient.new(config) } - it "defaults to 0" do + it 'defaults to 0' do expect(JCAPIv2::Configuration.default.timeout).to eq(0) expect(config.timeout).to eq(0) @@ -82,88 +82,88 @@ expect(request.options[:timeout]).to eq(0) end - it "can be customized" do + it 'can be customized' do config.timeout = 100 request = api_client.build_request(:get, '/test') expect(request.options[:timeout]).to eq(100) end end - describe "#deserialize" do + describe '#deserialize' do it "handles Array" do api_client = JCAPIv2::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '[12, 34]') data = api_client.deserialize(response, 'Array') expect(data).to be_instance_of(Array) expect(data).to eq([12, 34]) end - it "handles Array>" do + it 'handles Array>' do api_client = JCAPIv2::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '[[12, 34], [56]]') data = api_client.deserialize(response, 'Array>') expect(data).to be_instance_of(Array) expect(data).to eq([[12, 34], [56]]) end - it "handles Hash" do + it 'handles Hash' do api_client = JCAPIv2::ApiClient.new - headers = {'Content-Type' => 'application/json'} + headers = { 'Content-Type' => 'application/json' } response = double('response', headers: headers, body: '{"message": "Hello"}') data = api_client.deserialize(response, 'Hash') expect(data).to be_instance_of(Hash) - expect(data).to eq({:message => 'Hello'}) + expect(data).to eq(:message => 'Hello') end end describe "#object_to_hash" do - it "ignores nils and includes empty arrays" do + it 'ignores nils and includes empty arrays' do # uncomment below to test object_to_hash for model - #api_client = JCAPIv2::ApiClient.new - #_model = JCAPIv2::ModelName.new + # api_client = JCAPIv2::ApiClient.new + # _model = JCAPIv2::ModelName.new # update the model attribute below - #_model.id = 1 + # _model.id = 1 # update the expected value (hash) below - #expected = {id: 1, name: '', tags: []} - #expect(api_client.object_to_hash(_model)).to eq(expected) + # expected = {id: 1, name: '', tags: []} + # expect(api_client.object_to_hash(_model)).to eq(expected) end end - describe "#build_collection_param" do + describe '#build_collection_param' do let(:param) { ['aa', 'bb', 'cc'] } let(:api_client) { JCAPIv2::ApiClient.new } - it "works for csv" do + it 'works for csv' do expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') end - it "works for ssv" do + it 'works for ssv' do expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') end - it "works for tsv" do + it 'works for tsv' do expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") end - it "works for pipes" do + it 'works for pipes' do expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') end - it "works for multi" do + it 'works for multi' do expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) end - it "fails for invalid collection format" do + it 'fails for invalid collection format' do expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end - describe "#json_mime?" do + describe '#json_mime?' do let(:api_client) { JCAPIv2::ApiClient.new } - it "works" do + it 'works' do expect(api_client.json_mime?(nil)).to eq false expect(api_client.json_mime?('')).to eq false @@ -177,10 +177,10 @@ end end - describe "#select_header_accept" do + describe '#select_header_accept' do let(:api_client) { JCAPIv2::ApiClient.new } - it "works" do + it 'works' do expect(api_client.select_header_accept(nil)).to be_nil expect(api_client.select_header_accept([])).to be_nil @@ -193,10 +193,10 @@ end end - describe "#select_header_content_type" do + describe '#select_header_content_type' do let(:api_client) { JCAPIv2::ApiClient.new } - it "works" do + it 'works' do expect(api_client.select_header_content_type(nil)).to eq('application/json') expect(api_client.select_header_content_type([])).to eq('application/json') @@ -208,10 +208,10 @@ end end - describe "#sanitize_filename" do + describe '#sanitize_filename' do let(:api_client) { JCAPIv2::ApiClient.new } - it "works" do + it 'works' do expect(api_client.sanitize_filename('sun')).to eq('sun') expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') diff --git a/jcapiv2/spec/configuration_spec.rb b/jcapiv2/spec/configuration_spec.rb index bd77d21..3c34758 100644 --- a/jcapiv2/spec/configuration_spec.rb +++ b/jcapiv2/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -17,25 +17,25 @@ before(:each) do # uncomment below to setup host and base_path - #require 'URI' - #uri = URI.parse("https://console.jumpcloud.com/api/v2") - #JCAPIv2.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - #end + # require 'URI' + # uri = URI.parse("https://console.jumpcloud.com/api/v2") + # JCAPIv2.configure do |c| + # c.host = uri.host + # c.base_path = uri.path + # end end describe '#base_url' do it 'should have the default value' do # uncomment below to test default value of the base path - #expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") + # expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") end it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path # uncomment below to test trailing slashes - #expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") + # expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") end end end diff --git a/jcapiv2/spec/models/active_directory_input_spec.rb b/jcapiv2/spec/models/active_directory_input_spec.rb index c36ffc0..9d4f45e 100644 --- a/jcapiv2/spec/models/active_directory_input_spec.rb +++ b/jcapiv2/spec/models/active_directory_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/active_directory_output_spec.rb b/jcapiv2/spec/models/active_directory_output_spec.rb index bd2277d..745c04b 100644 --- a/jcapiv2/spec/models/active_directory_output_spec.rb +++ b/jcapiv2/spec/models/active_directory_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/administrator_spec.rb b/jcapiv2/spec/models/administrator_spec.rb index 67b47dc..18d899e 100644 --- a/jcapiv2/spec/models/administrator_spec.rb +++ b/jcapiv2/spec/models/administrator_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,39 +34,38 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_multi_factor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "registered"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/auth_info_spec.rb b/jcapiv2/spec/models/auth_info_spec.rb index bad3821..4c6d532 100644 --- a/jcapiv2/spec/models/auth_info_spec.rb +++ b/jcapiv2/spec/models/auth_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "expiry"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_valid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/auth_input_object_spec.rb b/jcapiv2/spec/models/auth_input_object_spec.rb index f1dfc73..b83db3d 100644 --- a/jcapiv2/spec/models/auth_input_object_spec.rb +++ b/jcapiv2/spec/models/auth_input_object_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "auth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/auth_input_spec.rb b/jcapiv2/spec/models/auth_input_spec.rb index e4fc40a..522b99c 100644 --- a/jcapiv2/spec/models/auth_input_spec.rb +++ b/jcapiv2/spec/models/auth_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "oauth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "basic"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/authinput_basic_spec.rb b/jcapiv2/spec/models/authinput_basic_spec.rb index b3a6d14..366eba7 100644 --- a/jcapiv2/spec/models/authinput_basic_spec.rb +++ b/jcapiv2/spec/models/authinput_basic_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/authinput_oauth_spec.rb b/jcapiv2/spec/models/authinput_oauth_spec.rb index d5b071e..6c0dd05 100644 --- a/jcapiv2/spec/models/authinput_oauth_spec.rb +++ b/jcapiv2/spec/models/authinput_oauth_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/bulk_user_create_spec.rb b/jcapiv2/spec/models/bulk_user_create_spec.rb index 6421b61..2693ca8 100644 --- a/jcapiv2/spec/models/bulk_user_create_spec.rb +++ b/jcapiv2/spec/models/bulk_user_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,33 +34,32 @@ end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/bulk_user_update_spec.rb b/jcapiv2/spec/models/bulk_user_update_spec.rb index b0f3ecd..4f91b15 100644 --- a/jcapiv2/spec/models/bulk_user_update_spec.rb +++ b/jcapiv2/spec/models/bulk_user_update_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,39 +34,38 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/directory_spec.rb b/jcapiv2/spec/models/directory_spec.rb index ed9263c..af0eafd 100644 --- a/jcapiv2/spec/models/directory_spec.rb +++ b/jcapiv2/spec/models/directory_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,25 +34,24 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/emailrequest_spec.rb b/jcapiv2/spec/models/emailrequest_spec.rb index c120321..b3ef48f 100644 --- a/jcapiv2/spec/models/emailrequest_spec.rb +++ b/jcapiv2/spec/models/emailrequest_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,13 +34,12 @@ end describe 'test attribute "email_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["activation"]) - #validator.allowable_values.each do |value| - # expect { @instance.email_type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["activation"]) + # validator.allowable_values.each do |value| + # expect { @instance.email_type = value }.not_to raise_error + # end end end end - diff --git a/jcapiv2/spec/models/error_spec.rb b/jcapiv2/spec/models/error_spec.rb index 321fd6a..b7c79df 100644 --- a/jcapiv2/spec/models/error_spec.rb +++ b/jcapiv2/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/errorresponse_spec.rb b/jcapiv2/spec/models/errorresponse_spec.rb index c31a36d..a18ea09 100644 --- a/jcapiv2/spec/models/errorresponse_spec.rb +++ b/jcapiv2/spec/models/errorresponse_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb b/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb index 76012e8..2113e65 100644 --- a/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb +++ b/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,4 +33,3 @@ end end end - diff --git a/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb b/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb index 4203aba..8bd05c9 100644 --- a/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb +++ b/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/g_suite_translation_rule_spec.rb b/jcapiv2/spec/models/g_suite_translation_rule_spec.rb index da930ec..3b0af86 100644 --- a/jcapiv2/spec/models/g_suite_translation_rule_spec.rb +++ b/jcapiv2/spec/models/g_suite_translation_rule_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/graph_connection_spec.rb b/jcapiv2/spec/models/graph_connection_spec.rb index 4348567..6d4a02f 100644 --- a/jcapiv2/spec/models/graph_connection_spec.rb +++ b/jcapiv2/spec/models/graph_connection_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/graph_management_req_spec.rb b/jcapiv2/spec/models/graph_management_req_spec.rb index a569857..ee67d17 100644 --- a/jcapiv2/spec/models/graph_management_req_spec.rb +++ b/jcapiv2/spec/models/graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,25 +34,24 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/graph_object_spec.rb b/jcapiv2/spec/models/graph_object_spec.rb index 49d2a97..f3d94ae 100644 --- a/jcapiv2/spec/models/graph_object_spec.rb +++ b/jcapiv2/spec/models/graph_object_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/graph_object_with_paths_spec.rb b/jcapiv2/spec/models/graph_object_with_paths_spec.rb index 2e07cd8..042c169 100644 --- a/jcapiv2/spec/models/graph_object_with_paths_spec.rb +++ b/jcapiv2/spec/models/graph_object_with_paths_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "paths"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/graph_type_spec.rb b/jcapiv2/spec/models/graph_type_spec.rb index 160c6e8..1889812 100644 --- a/jcapiv2/spec/models/graph_type_spec.rb +++ b/jcapiv2/spec/models/graph_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,4 +33,3 @@ end end end - diff --git a/jcapiv2/spec/models/group_spec.rb b/jcapiv2/spec/models/group_spec.rb index f2bedf0..8657b6c 100644 --- a/jcapiv2/spec/models/group_spec.rb +++ b/jcapiv2/spec/models/group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/group_type_spec.rb b/jcapiv2/spec/models/group_type_spec.rb index d0f7222..ccb086a 100644 --- a/jcapiv2/spec/models/group_type_spec.rb +++ b/jcapiv2/spec/models/group_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,4 +33,3 @@ end end end - diff --git a/jcapiv2/spec/models/inline_response_200_spec.rb b/jcapiv2/spec/models/inline_response_200_spec.rb index 941fd11..7497e84 100644 --- a/jcapiv2/spec/models/inline_response_200_spec.rb +++ b/jcapiv2/spec/models/inline_response_200_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/inline_response_401_spec.rb b/jcapiv2/spec/models/inline_response_401_spec.rb index f1b2445..1fdfaa9 100644 --- a/jcapiv2/spec/models/inline_response_401_spec.rb +++ b/jcapiv2/spec/models/inline_response_401_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/job_details_spec.rb b/jcapiv2/spec/models/job_details_spec.rb index 9f42e6d..8a4fcd2 100644 --- a/jcapiv2/spec/models/job_details_spec.rb +++ b/jcapiv2/spec/models/job_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,51 +34,50 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "admin_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "work_units_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "meta"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "persisted_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/job_id_spec.rb b/jcapiv2/spec/models/job_id_spec.rb index 47b4dba..bb8868e 100644 --- a/jcapiv2/spec/models/job_id_spec.rb +++ b/jcapiv2/spec/models/job_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "job_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/job_workresult_spec.rb b/jcapiv2/spec/models/job_workresult_spec.rb index 03d4bdd..b02b6c9 100644 --- a/jcapiv2/spec/models/job_workresult_spec.rb +++ b/jcapiv2/spec/models/job_workresult_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "meta"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/ldap_server_input_spec.rb b/jcapiv2/spec/models/ldap_server_input_spec.rb index 92970c9..9e944fd 100644 --- a/jcapiv2/spec/models/ldap_server_input_spec.rb +++ b/jcapiv2/spec/models/ldap_server_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/ldap_server_output_spec.rb b/jcapiv2/spec/models/ldap_server_output_spec.rb index 21b74c4..719dc59 100644 --- a/jcapiv2/spec/models/ldap_server_output_spec.rb +++ b/jcapiv2/spec/models/ldap_server_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/mfa_spec.rb b/jcapiv2/spec/models/mfa_spec.rb index 059c72b..6ddff71 100644 --- a/jcapiv2/spec/models/mfa_spec.rb +++ b/jcapiv2/spec/models/mfa_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "exclusion"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exclusion_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "configured"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/oauth_code_input_spec.rb b/jcapiv2/spec/models/oauth_code_input_spec.rb index 68196f6..ba58ee0 100644 --- a/jcapiv2/spec/models/oauth_code_input_spec.rb +++ b/jcapiv2/spec/models/oauth_code_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/office365_builtin_translation_spec.rb b/jcapiv2/spec/models/office365_builtin_translation_spec.rb index f242a84..d4faed1 100644 --- a/jcapiv2/spec/models/office365_builtin_translation_spec.rb +++ b/jcapiv2/spec/models/office365_builtin_translation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -33,4 +33,3 @@ end end end - diff --git a/jcapiv2/spec/models/office365_translation_rule_request_spec.rb b/jcapiv2/spec/models/office365_translation_rule_request_spec.rb index 75dad8b..0d9113d 100644 --- a/jcapiv2/spec/models/office365_translation_rule_request_spec.rb +++ b/jcapiv2/spec/models/office365_translation_rule_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/office365_translation_rule_spec.rb b/jcapiv2/spec/models/office365_translation_rule_spec.rb index 3ff4f99..0b56a06 100644 --- a/jcapiv2/spec/models/office365_translation_rule_spec.rb +++ b/jcapiv2/spec/models/office365_translation_rule_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_request_spec.rb b/jcapiv2/spec/models/policy_request_spec.rb index 2e6cd57..b9211fb 100644 --- a/jcapiv2/spec/models/policy_request_spec.rb +++ b/jcapiv2/spec/models/policy_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "values"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_request_template_spec.rb b/jcapiv2/spec/models/policy_request_template_spec.rb index 3e90d4a..e7b426d 100644 --- a/jcapiv2/spec/models/policy_request_template_spec.rb +++ b/jcapiv2/spec/models/policy_request_template_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_result_spec.rb b/jcapiv2/spec/models/policy_result_spec.rb index c3dd2ce..acedf96 100644 --- a/jcapiv2/spec/models/policy_result_spec.rb +++ b/jcapiv2/spec/models/policy_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,69 +34,68 @@ end describe 'test attribute "policy_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ended_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "success"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exit_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "std_err"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "std_out"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "detail"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_spec.rb b/jcapiv2/spec/models/policy_spec.rb index 9d259a9..e8187db 100644 --- a/jcapiv2/spec/models/policy_spec.rb +++ b/jcapiv2/spec/models/policy_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_template_config_field_spec.rb b/jcapiv2/spec/models/policy_template_config_field_spec.rb index fd8cf12..458f0b9 100644 --- a/jcapiv2/spec/models/policy_template_config_field_spec.rb +++ b/jcapiv2/spec/models/policy_template_config_field_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,55 +34,54 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) - #validator.allowable_values.each do |value| - # expect { @instance.display_type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) + # validator.allowable_values.each do |value| + # expect { @instance.display_type = value }.not_to raise_error + # end end end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tooltip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb b/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb index 708550d..6ef3575 100644 --- a/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb +++ b/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "variables"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb b/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb index 4278de2..dc7bc35 100644 --- a/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb +++ b/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "icon"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_template_spec.rb b/jcapiv2/spec/models/policy_template_spec.rb index 8a0a404..4dcb0a5 100644 --- a/jcapiv2/spec/models/policy_template_spec.rb +++ b/jcapiv2/spec/models/policy_template_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,55 +34,54 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "os_meta_family"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) - #validator.allowable_values.each do |value| - # expect { @instance.os_meta_family = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + # validator.allowable_values.each do |value| + # expect { @instance.os_meta_family = value }.not_to raise_error + # end end end describe 'test attribute "activation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "behavior"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_template_with_details_spec.rb b/jcapiv2/spec/models/policy_template_with_details_spec.rb index 753151a..c541ae9 100644 --- a/jcapiv2/spec/models/policy_template_with_details_spec.rb +++ b/jcapiv2/spec/models/policy_template_with_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,55 +34,54 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "os_meta_family"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) - #validator.allowable_values.each do |value| - # expect { @instance.os_meta_family = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + # validator.allowable_values.each do |value| + # expect { @instance.os_meta_family = value }.not_to raise_error + # end end end describe 'test attribute "config_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "behavior"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_value_spec.rb b/jcapiv2/spec/models/policy_value_spec.rb index ad517b7..ede49e4 100644 --- a/jcapiv2/spec/models/policy_value_spec.rb +++ b/jcapiv2/spec/models/policy_value_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "config_field_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/policy_with_details_spec.rb b/jcapiv2/spec/models/policy_with_details_spec.rb index 758c5cd..310b6bf 100644 --- a/jcapiv2/spec/models/policy_with_details_spec.rb +++ b/jcapiv2/spec/models/policy_with_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,33 +34,32 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "config_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "values"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/provider_contact_spec.rb b/jcapiv2/spec/models/provider_contact_spec.rb index 627f601..6872ec3 100644 --- a/jcapiv2/spec/models/provider_contact_spec.rb +++ b/jcapiv2/spec/models/provider_contact_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/provider_spec.rb b/jcapiv2/spec/models/provider_spec.rb index ad425b0..b514179 100644 --- a/jcapiv2/spec/models/provider_spec.rb +++ b/jcapiv2/spec/models/provider_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "contact"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/samba_domain_input_spec.rb b/jcapiv2/spec/models/samba_domain_input_spec.rb index 5d70048..5902a09 100644 --- a/jcapiv2/spec/models/samba_domain_input_spec.rb +++ b/jcapiv2/spec/models/samba_domain_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/samba_domain_output_spec.rb b/jcapiv2/spec/models/samba_domain_output_spec.rb index e987d9e..839c406 100644 --- a/jcapiv2/spec/models/samba_domain_output_spec.rb +++ b/jcapiv2/spec/models/samba_domain_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/sshkeylist_spec.rb b/jcapiv2/spec/models/sshkeylist_spec.rb index bc02d39..a02c317 100644 --- a/jcapiv2/spec/models/sshkeylist_spec.rb +++ b/jcapiv2/spec/models/sshkeylist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,27 +34,26 @@ end describe 'test attribute "create_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb b/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb index a63291c..0e6a3a9 100644 --- a/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb +++ b/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb b/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb index 756b114..8d1635e 100644 --- a/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb +++ b/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "without_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_graph_management_req_spec.rb b/jcapiv2/spec/models/system_graph_management_req_spec.rb index 86a47e1..1290ae4 100644 --- a/jcapiv2/spec/models/system_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/system_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,35 +34,34 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_group_data_spec.rb b/jcapiv2/spec/models/system_group_data_spec.rb index c39cde7..0ed81a0 100644 --- a/jcapiv2/spec/models/system_group_data_spec.rb +++ b/jcapiv2/spec/models/system_group_data_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_group_graph_management_req_spec.rb b/jcapiv2/spec/models/system_group_graph_management_req_spec.rb index e8aa31e..f5564e2 100644 --- a/jcapiv2/spec/models/system_group_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/system_group_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,29 +34,28 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_group_members_req_spec.rb b/jcapiv2/spec/models/system_group_members_req_spec.rb index 39454e1..927b80a 100644 --- a/jcapiv2/spec/models/system_group_members_req_spec.rb +++ b/jcapiv2/spec/models/system_group_members_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,29 +34,28 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/system_group_spec.rb b/jcapiv2/spec/models/system_group_spec.rb index dd1a2f7..4a7fc48 100644 --- a/jcapiv2/spec/models/system_group_spec.rb +++ b/jcapiv2/spec/models/system_group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,25 +34,24 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_group"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_group"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/systemfdekey_spec.rb b/jcapiv2/spec/models/systemfdekey_spec.rb index 934e50f..fbcfa1b 100644 --- a/jcapiv2/spec/models/systemfdekey_spec.rb +++ b/jcapiv2/spec/models/systemfdekey_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/systemuser_spec.rb b/jcapiv2/spec/models/systemuser_spec.rb index fd34a08..4bdeb81 100644 --- a/jcapiv2/spec/models/systemuser_spec.rb +++ b/jcapiv2/spec/models/systemuser_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,243 +34,242 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "associated_tag_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expiration_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb b/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb index 93dd3d0..662a6d2 100644 --- a/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,51 +34,50 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb b/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb index 5c569c3..e04e6b6 100644 --- a/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/systemuserputpost_spec.rb b/jcapiv2/spec/models/systemuserputpost_spec.rb index 706cca3..a281b8d 100644 --- a/jcapiv2/spec/models/systemuserputpost_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,225 +34,224 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_graph_management_req_spec.rb b/jcapiv2/spec/models/user_graph_management_req_spec.rb index 93e73e1..15d8939 100644 --- a/jcapiv2/spec/models/user_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/user_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,35 +34,34 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_graph_management_req_spec.rb b/jcapiv2/spec/models/user_group_graph_management_req_spec.rb index 7922a62..82d8e66 100644 --- a/jcapiv2/spec/models/user_group_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/user_group_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,29 +34,28 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_members_req_spec.rb b/jcapiv2/spec/models/user_group_members_req_spec.rb index 8423755..614b0f1 100644 --- a/jcapiv2/spec/models/user_group_members_req_spec.rb +++ b/jcapiv2/spec/models/user_group_members_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,29 +34,28 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) - #validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) + # validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + # end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb b/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb index 08305da..ddc93cb 100644 --- a/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb +++ b/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_post_attributes_spec.rb b/jcapiv2/spec/models/user_group_post_attributes_spec.rb index 225918c..1e74353 100644 --- a/jcapiv2/spec/models/user_group_post_attributes_spec.rb +++ b/jcapiv2/spec/models/user_group_post_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "posix_groups"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_post_spec.rb b/jcapiv2/spec/models/user_group_post_spec.rb index b8f1122..181d472 100644 --- a/jcapiv2/spec/models/user_group_post_spec.rb +++ b/jcapiv2/spec/models/user_group_post_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_put_attributes_spec.rb b/jcapiv2/spec/models/user_group_put_attributes_spec.rb index cb179f6..9b65f80 100644 --- a/jcapiv2/spec/models/user_group_put_attributes_spec.rb +++ b/jcapiv2/spec/models/user_group_put_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,9 +34,8 @@ end describe 'test attribute "samba_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_put_spec.rb b/jcapiv2/spec/models/user_group_put_spec.rb index a409804..a7cd4f1 100644 --- a/jcapiv2/spec/models/user_group_put_spec.rb +++ b/jcapiv2/spec/models/user_group_put_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/user_group_spec.rb b/jcapiv2/spec/models/user_group_spec.rb index 9afdaa7..9666339 100644 --- a/jcapiv2/spec/models/user_group_spec.rb +++ b/jcapiv2/spec/models/user_group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,25 +34,24 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user_group"]) - #validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - #end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user_group"]) + # validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + # end end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/workday_fields_spec.rb b/jcapiv2/spec/models/workday_fields_spec.rb index a2add16..ac7cc4c 100644 --- a/jcapiv2/spec/models/workday_fields_spec.rb +++ b/jcapiv2/spec/models/workday_fields_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "report_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/workday_input_spec.rb b/jcapiv2/spec/models/workday_input_spec.rb index 2702758..54e7fd3 100644 --- a/jcapiv2/spec/models/workday_input_spec.rb +++ b/jcapiv2/spec/models/workday_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,21 +34,20 @@ end describe 'test attribute "report_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "auth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/workday_output_spec.rb b/jcapiv2/spec/models/workday_output_spec.rb index f8009cd..ba696d2 100644 --- a/jcapiv2/spec/models/workday_output_spec.rb +++ b/jcapiv2/spec/models/workday_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,33 +34,32 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "report_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_import"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "auth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/workday_request_spec.rb b/jcapiv2/spec/models/workday_request_spec.rb index 9e78bdf..83be233 100644 --- a/jcapiv2/spec/models/workday_request_spec.rb +++ b/jcapiv2/spec/models/workday_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "object_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/workday_worker_spec.rb b/jcapiv2/spec/models/workday_worker_spec.rb index 0e67cc7..7f014c6 100644 --- a/jcapiv2/spec/models/workday_worker_spec.rb +++ b/jcapiv2/spec/models/workday_worker_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,33 +34,32 @@ end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "first_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/models/workdayoutput_auth_spec.rb b/jcapiv2/spec/models/workdayoutput_auth_spec.rb index 0774e14..c9d10df 100644 --- a/jcapiv2/spec/models/workdayoutput_auth_spec.rb +++ b/jcapiv2/spec/models/workdayoutput_auth_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end @@ -34,15 +34,14 @@ end describe 'test attribute "basic"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "oauth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end - diff --git a/jcapiv2/spec/spec_helper.rb b/jcapiv2/spec/spec_helper.rb index 38b718d..3318310 100644 --- a/jcapiv2/spec/spec_helper.rb +++ b/jcapiv2/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.3.1 +Swagger Codegen version: 2.4.2 =end From 47e86e4549d4748c0b7dbbde7140c865e6357df6 Mon Sep 17 00:00:00 2001 From: Jon Casey Date: Wed, 20 Feb 2019 14:31:19 -0700 Subject: [PATCH 3/6] Regenerate v1 and v2 APIs without provider endpoints --- jcapiv1/docs/ApplicationsApi.md | 2 +- jcapiv1/docs/CommandResultsApi.md | 4 +- jcapiv1/docs/CommandsApi.md | 4 +- jcapiv1/docs/OrganizationsApi.md | 2 +- jcapiv1/docs/RadiusServersApi.md | 2 +- jcapiv1/docs/SearchApi.md | 6 +- jcapiv1/docs/SystemsApi.md | 4 +- jcapiv1/docs/SystemusersApi.md | 10 +- jcapiv1/lib/jcapiv1/api/applications_api.rb | 4 +- .../lib/jcapiv1/api/command_results_api.rb | 8 +- jcapiv1/lib/jcapiv1/api/commands_api.rb | 8 +- jcapiv1/lib/jcapiv1/api/organizations_api.rb | 4 +- jcapiv1/lib/jcapiv1/api/radius_servers_api.rb | 4 +- jcapiv1/lib/jcapiv1/api/search_api.rb | 12 +- jcapiv1/lib/jcapiv1/api/systems_api.rb | 8 +- jcapiv1/lib/jcapiv1/api/systemusers_api.rb | 20 +- jcapiv1/spec/api/applications_api_spec.rb | 2 +- jcapiv1/spec/api/command_results_api_spec.rb | 4 +- jcapiv1/spec/api/commands_api_spec.rb | 4 +- jcapiv1/spec/api/organizations_api_spec.rb | 2 +- jcapiv1/spec/api/radius_servers_api_spec.rb | 2 +- jcapiv1/spec/api/search_api_spec.rb | 6 +- jcapiv1/spec/api/systems_api_spec.rb | 4 +- jcapiv1/spec/api/systemusers_api_spec.rb | 10 +- jcapiv2/README.md | 5 - jcapiv2/docs/InlineResponse200.md | 9 - jcapiv2/docs/InlineResponse401.md | 8 - jcapiv2/docs/Provider.md | 9 - jcapiv2/docs/ProviderContact.md | 9 - jcapiv2/docs/ProvidersApi.md | 79 ------- jcapiv2/lib/jcapiv2.rb | 5 - jcapiv2/lib/jcapiv2/api/providers_api.rb | 104 ---------- .../lib/jcapiv2/models/inline_response_200.rb | 194 ------------------ .../lib/jcapiv2/models/inline_response_401.rb | 183 ----------------- jcapiv2/lib/jcapiv2/models/provider.rb | 192 ----------------- .../lib/jcapiv2/models/provider_contact.rb | 192 ----------------- jcapiv2/spec/api/providers_api_spec.rb | 53 ----- .../spec/models/inline_response_200_spec.rb | 47 ----- .../spec/models/inline_response_401_spec.rb | 41 ---- jcapiv2/spec/models/provider_contact_spec.rb | 47 ----- jcapiv2/spec/models/provider_spec.rb | 47 ----- 41 files changed, 68 insertions(+), 1292 deletions(-) delete mode 100644 jcapiv2/docs/InlineResponse200.md delete mode 100644 jcapiv2/docs/InlineResponse401.md delete mode 100644 jcapiv2/docs/Provider.md delete mode 100644 jcapiv2/docs/ProviderContact.md delete mode 100644 jcapiv2/docs/ProvidersApi.md delete mode 100644 jcapiv2/lib/jcapiv2/api/providers_api.rb delete mode 100644 jcapiv2/lib/jcapiv2/models/inline_response_200.rb delete mode 100644 jcapiv2/lib/jcapiv2/models/inline_response_401.rb delete mode 100644 jcapiv2/lib/jcapiv2/models/provider.rb delete mode 100644 jcapiv2/lib/jcapiv2/models/provider_contact.rb delete mode 100644 jcapiv2/spec/api/providers_api_spec.rb delete mode 100644 jcapiv2/spec/models/inline_response_200_spec.rb delete mode 100644 jcapiv2/spec/models/inline_response_401_spec.rb delete mode 100644 jcapiv2/spec/models/provider_contact_spec.rb delete mode 100644 jcapiv2/spec/models/provider_spec.rb diff --git a/jcapiv1/docs/ApplicationsApi.md b/jcapiv1/docs/ApplicationsApi.md index 58ca045..4e53e58 100644 --- a/jcapiv1/docs/ApplicationsApi.md +++ b/jcapiv1/docs/ApplicationsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Applications -The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby diff --git a/jcapiv1/docs/CommandResultsApi.md b/jcapiv1/docs/CommandResultsApi.md index 7ac9ad3..f4ccf64 100644 --- a/jcapiv1/docs/CommandResultsApi.md +++ b/jcapiv1/docs/CommandResultsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Delete a Command result -This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` +This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` ### Example ```ruby @@ -78,7 +78,7 @@ Name | Type | Description | Notes List an individual Command result -This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby diff --git a/jcapiv1/docs/CommandsApi.md b/jcapiv1/docs/CommandsApi.md index 3f422e8..9816c4e 100644 --- a/jcapiv1/docs/CommandsApi.md +++ b/jcapiv1/docs/CommandsApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description Get a Command File -This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -150,7 +150,7 @@ nil (empty response body) List an individual Command -This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby diff --git a/jcapiv1/docs/OrganizationsApi.md b/jcapiv1/docs/OrganizationsApi.md index c303ae1..8665fd2 100644 --- a/jcapiv1/docs/OrganizationsApi.md +++ b/jcapiv1/docs/OrganizationsApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description Get Organization Details -This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby diff --git a/jcapiv1/docs/RadiusServersApi.md b/jcapiv1/docs/RadiusServersApi.md index a4cee3a..223fbbf 100644 --- a/jcapiv1/docs/RadiusServersApi.md +++ b/jcapiv1/docs/RadiusServersApi.md @@ -148,7 +148,7 @@ Name | Type | Description | Notes Update Radius Servers -This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` +This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` ### Example ```ruby diff --git a/jcapiv1/docs/SearchApi.md b/jcapiv1/docs/SearchApi.md index 1fc6751..ed7a932 100644 --- a/jcapiv1/docs/SearchApi.md +++ b/jcapiv1/docs/SearchApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Search Organizations -This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` +This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` ### Example ```ruby @@ -83,7 +83,7 @@ Name | Type | Description | Notes Search Systems -Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` +Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` ### Example ```ruby @@ -154,7 +154,7 @@ Name | Type | Description | Notes Search System Users -Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` +Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` ### Example ```ruby diff --git a/jcapiv1/docs/SystemsApi.md b/jcapiv1/docs/SystemsApi.md index 638a54c..cbe7a20 100644 --- a/jcapiv1/docs/SystemsApi.md +++ b/jcapiv1/docs/SystemsApi.md @@ -85,7 +85,7 @@ Name | Type | Description | Notes List an individual system -This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -157,7 +157,7 @@ Name | Type | Description | Notes List All Systems -This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby diff --git a/jcapiv1/docs/SystemusersApi.md b/jcapiv1/docs/SystemusersApi.md index 752a445..2eaa902 100644 --- a/jcapiv1/docs/SystemusersApi.md +++ b/jcapiv1/docs/SystemusersApi.md @@ -216,7 +216,7 @@ Name | Type | Description | Notes Delete a system user -This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -348,7 +348,7 @@ Name | Type | Description | Notes List all system users -This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` +This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` ### Example ```ruby @@ -550,7 +550,7 @@ Name | Type | Description | Notes Reset a system user's MFA token -This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` +This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` ### Example ```ruby @@ -613,7 +613,7 @@ Name | Type | Description | Notes List system user binding -Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` +Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` ### Example ```ruby @@ -687,7 +687,7 @@ Name | Type | Description | Notes Update a system user binding -Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` +Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` ### Example ```ruby diff --git a/jcapiv1/lib/jcapiv1/api/applications_api.rb b/jcapiv1/lib/jcapiv1/api/applications_api.rb index 6464d62..4bf9eaa 100644 --- a/jcapiv1/lib/jcapiv1/api/applications_api.rb +++ b/jcapiv1/lib/jcapiv1/api/applications_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Applications - # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -37,7 +37,7 @@ def applications_list(content_type, accept, opts = {}) end # Applications - # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/lib/jcapiv1/api/command_results_api.rb b/jcapiv1/lib/jcapiv1/api/command_results_api.rb index 97269cd..9adb0d9 100644 --- a/jcapiv1/lib/jcapiv1/api/command_results_api.rb +++ b/jcapiv1/lib/jcapiv1/api/command_results_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Delete a Command result - # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` + # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id # @param content_type # @param accept @@ -33,7 +33,7 @@ def command_results_delete(id, content_type, accept, opts = {}) end # Delete a Command result - # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` + # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id # @param content_type # @param accept @@ -91,7 +91,7 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # List an individual Command result - # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -106,7 +106,7 @@ def command_results_get(id, content_type, accept, opts = {}) end # List an individual Command result - # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept diff --git a/jcapiv1/lib/jcapiv1/api/commands_api.rb b/jcapiv1/lib/jcapiv1/api/commands_api.rb index d90f837..fc62a34 100644 --- a/jcapiv1/lib/jcapiv1/api/commands_api.rb +++ b/jcapiv1/lib/jcapiv1/api/commands_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Get a Command File - # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -36,7 +36,7 @@ def command_file_get(id, content_type, accept, opts = {}) end # Get a Command File - # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -170,7 +170,7 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # List an individual Command - # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -185,7 +185,7 @@ def commands_get(id, content_type, accept, opts = {}) end # List an individual Command - # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept diff --git a/jcapiv1/lib/jcapiv1/api/organizations_api.rb b/jcapiv1/lib/jcapiv1/api/organizations_api.rb index 20e3d32..2b0f2eb 100644 --- a/jcapiv1/lib/jcapiv1/api/organizations_api.rb +++ b/jcapiv1/lib/jcapiv1/api/organizations_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Get Organization Details - # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -37,7 +37,7 @@ def organization_list(content_type, accept, opts = {}) end # Get Organization Details - # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb index 6fb41ad..5139e2c 100644 --- a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb @@ -167,7 +167,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) return data, status_code, headers end # Update Radius Servers - # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` + # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -180,7 +180,7 @@ def radius_servers_put(content_type, accept, opts = {}) end # Update Radius Servers - # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` + # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/lib/jcapiv1/api/search_api.rb b/jcapiv1/lib/jcapiv1/api/search_api.rb index 1436134..a52c465 100644 --- a/jcapiv1/lib/jcapiv1/api/search_api.rb +++ b/jcapiv1/lib/jcapiv1/api/search_api.rb @@ -20,7 +20,7 @@ def initialize(api_client = ApiClient.default) @api_client = api_client end # Search Organizations - # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` + # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -36,7 +36,7 @@ def search_organizations_post(content_type, accept, opts = {}) end # Search Organizations - # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` + # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -96,7 +96,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) return data, status_code, headers end # Search Systems - # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` + # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -113,7 +113,7 @@ def search_systems_post(content_type, accept, opts = {}) end # Search Systems - # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` + # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -175,7 +175,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) return data, status_code, headers end # Search System Users - # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` + # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -192,7 +192,7 @@ def search_systemusers_post(content_type, accept, opts = {}) end # Search System Users - # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` + # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/lib/jcapiv1/api/systems_api.rb b/jcapiv1/lib/jcapiv1/api/systems_api.rb index d619ea8..d9047dc 100644 --- a/jcapiv1/lib/jcapiv1/api/systems_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systems_api.rb @@ -97,7 +97,7 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # List an individual system - # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -114,7 +114,7 @@ def systems_get(id, content_type, accept, opts = {}) end # List an individual system - # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -180,7 +180,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # List All Systems - # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -198,7 +198,7 @@ def systems_list(content_type, accept, opts = {}) end # List All Systems - # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb index 4c4e383..597778b 100644 --- a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb @@ -234,7 +234,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # Delete a system user - # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -247,7 +247,7 @@ def systemusers_delete(id, content_type, accept, opts = {}) end # Delete a system user - # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -382,7 +382,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # List all system users - # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -400,7 +400,7 @@ def systemusers_list(content_type, accept, opts = {}) end # List all system users - # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -605,7 +605,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) return data, status_code, headers end # Reset a system user's MFA token - # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` + # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id # @param x_api_key # @param [Hash] opts the optional parameters @@ -618,7 +618,7 @@ def systemusers_resetmfa(id, x_api_key, opts = {}) end # Reset a system user's MFA token - # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` + # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id # @param x_api_key # @param [Hash] opts the optional parameters @@ -671,7 +671,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) return data, status_code, headers end # List system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -689,7 +689,7 @@ def systemusers_systems_binding_list(id, content_type, accept, opts = {}) end # List system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -757,7 +757,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op return data, status_code, headers end # Update a system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -771,7 +771,7 @@ def systemusers_systems_binding_put(id, content_type, accept, opts = {}) end # Update a system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept diff --git a/jcapiv1/spec/api/applications_api_spec.rb b/jcapiv1/spec/api/applications_api_spec.rb index dc08084..b15af38 100644 --- a/jcapiv1/spec/api/applications_api_spec.rb +++ b/jcapiv1/spec/api/applications_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for applications_list # Applications - # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/spec/api/command_results_api_spec.rb b/jcapiv1/spec/api/command_results_api_spec.rb index f815362..60e9782 100644 --- a/jcapiv1/spec/api/command_results_api_spec.rb +++ b/jcapiv1/spec/api/command_results_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for command_results_delete # Delete a Command result - # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` + # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id # @param content_type # @param accept @@ -49,7 +49,7 @@ # unit tests for command_results_get # List an individual Command result - # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept diff --git a/jcapiv1/spec/api/commands_api_spec.rb b/jcapiv1/spec/api/commands_api_spec.rb index a4e7c9a..fd50fd1 100644 --- a/jcapiv1/spec/api/commands_api_spec.rb +++ b/jcapiv1/spec/api/commands_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for command_file_get # Get a Command File - # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -67,7 +67,7 @@ # unit tests for commands_get # List an individual Command - # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept diff --git a/jcapiv1/spec/api/organizations_api_spec.rb b/jcapiv1/spec/api/organizations_api_spec.rb index 9617dc8..40c733d 100644 --- a/jcapiv1/spec/api/organizations_api_spec.rb +++ b/jcapiv1/spec/api/organizations_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for organization_list # Get Organization Details - # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/spec/api/radius_servers_api_spec.rb b/jcapiv1/spec/api/radius_servers_api_spec.rb index 5921518..ee5e730 100644 --- a/jcapiv1/spec/api/radius_servers_api_spec.rb +++ b/jcapiv1/spec/api/radius_servers_api_spec.rb @@ -68,7 +68,7 @@ # unit tests for radius_servers_put # Update Radius Servers - # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` + # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/spec/api/search_api_spec.rb b/jcapiv1/spec/api/search_api_spec.rb index cffa414..4bcf31a 100644 --- a/jcapiv1/spec/api/search_api_spec.rb +++ b/jcapiv1/spec/api/search_api_spec.rb @@ -34,7 +34,7 @@ # unit tests for search_organizations_post # Search Organizations - # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` + # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -52,7 +52,7 @@ # unit tests for search_systems_post # Search Systems - # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` + # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -71,7 +71,7 @@ # unit tests for search_systemusers_post # Search System Users - # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` + # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/spec/api/systems_api_spec.rb b/jcapiv1/spec/api/systems_api_spec.rb index 9e378e9..7144930 100644 --- a/jcapiv1/spec/api/systems_api_spec.rb +++ b/jcapiv1/spec/api/systems_api_spec.rb @@ -51,7 +51,7 @@ # unit tests for systems_get # List an individual system - # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -70,7 +70,7 @@ # unit tests for systems_list # List All Systems - # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters diff --git a/jcapiv1/spec/api/systemusers_api_spec.rb b/jcapiv1/spec/api/systemusers_api_spec.rb index 37f7d77..f31d40f 100644 --- a/jcapiv1/spec/api/systemusers_api_spec.rb +++ b/jcapiv1/spec/api/systemusers_api_spec.rb @@ -80,7 +80,7 @@ # unit tests for systemusers_delete # Delete a system user - # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id # @param content_type # @param accept @@ -112,7 +112,7 @@ # unit tests for systemusers_list # List all system users - # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` + # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters @@ -163,7 +163,7 @@ # unit tests for systemusers_resetmfa # Reset a system user's MFA token - # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` + # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id # @param x_api_key # @param [Hash] opts the optional parameters @@ -178,7 +178,7 @@ # unit tests for systemusers_systems_binding_list # List system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept @@ -198,7 +198,7 @@ # unit tests for systemusers_systems_binding_put # Update a system user binding - # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` + # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id # @param content_type # @param accept diff --git a/jcapiv2/README.md b/jcapiv2/README.md index 69f96b0..c788cc7 100644 --- a/jcapiv2/README.md +++ b/jcapiv2/README.md @@ -227,7 +227,6 @@ Class | Method | HTTP request | Description *JCAPIv2::PoliciesApi* | [**policytemplates_list**](docs/PoliciesApi.md#policytemplates_list) | **GET** /policytemplates | Lists all of the Policy Templates *JCAPIv2::PolicytemplatesApi* | [**policytemplates_get**](docs/PolicytemplatesApi.md#policytemplates_get) | **GET** /policytemplates/{id} | Get a specific Policy Template *JCAPIv2::PolicytemplatesApi* | [**policytemplates_list**](docs/PolicytemplatesApi.md#policytemplates_list) | **GET** /policytemplates | Lists all of the Policy Templates -*JCAPIv2::ProvidersApi* | [**providers_list_administrators**](docs/ProvidersApi.md#providers_list_administrators) | **GET** /providers/{provider_id}/administrators | providersadministrators *JCAPIv2::RADIUSServersApi* | [**graph_radius_server_associations_list**](docs/RADIUSServersApi.md#graph_radius_server_associations_list) | **GET** /radiusservers/{radiusserver_id}/associations | List the associations of a RADIUS Server *JCAPIv2::RADIUSServersApi* | [**graph_radius_server_associations_post**](docs/RADIUSServersApi.md#graph_radius_server_associations_post) | **POST** /radiusservers/{radiusserver_id}/associations | Manage the associations of a RADIUS Server *JCAPIv2::RADIUSServersApi* | [**graph_radius_server_traverse_user**](docs/RADIUSServersApi.md#graph_radius_server_traverse_user) | **GET** /radiusservers/{radiusserver_id}/users | List the Users bound to a RADIUS Server @@ -356,8 +355,6 @@ Class | Method | HTTP request | Description - [JCAPIv2::GraphType](docs/GraphType.md) - [JCAPIv2::Group](docs/Group.md) - [JCAPIv2::GroupType](docs/GroupType.md) - - [JCAPIv2::InlineResponse200](docs/InlineResponse200.md) - - [JCAPIv2::InlineResponse401](docs/InlineResponse401.md) - [JCAPIv2::JobDetails](docs/JobDetails.md) - [JCAPIv2::JobId](docs/JobId.md) - [JCAPIv2::JobWorkresult](docs/JobWorkresult.md) @@ -378,8 +375,6 @@ Class | Method | HTTP request | Description - [JCAPIv2::PolicyTemplateWithDetails](docs/PolicyTemplateWithDetails.md) - [JCAPIv2::PolicyValue](docs/PolicyValue.md) - [JCAPIv2::PolicyWithDetails](docs/PolicyWithDetails.md) - - [JCAPIv2::Provider](docs/Provider.md) - - [JCAPIv2::ProviderContact](docs/ProviderContact.md) - [JCAPIv2::SambaDomainInput](docs/SambaDomainInput.md) - [JCAPIv2::Sshkeylist](docs/Sshkeylist.md) - [JCAPIv2::SystemGraphManagementReq](docs/SystemGraphManagementReq.md) diff --git a/jcapiv2/docs/InlineResponse200.md b/jcapiv2/docs/InlineResponse200.md deleted file mode 100644 index a9d5242..0000000 --- a/jcapiv2/docs/InlineResponse200.md +++ /dev/null @@ -1,9 +0,0 @@ -# JCAPIv2::InlineResponse200 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total_count** | **Integer** | | [optional] -**results** | [**Array<Administrator>**](Administrator.md) | | [optional] - - diff --git a/jcapiv2/docs/InlineResponse401.md b/jcapiv2/docs/InlineResponse401.md deleted file mode 100644 index 30a8ef5..0000000 --- a/jcapiv2/docs/InlineResponse401.md +++ /dev/null @@ -1,8 +0,0 @@ -# JCAPIv2::InlineResponse401 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] - - diff --git a/jcapiv2/docs/Provider.md b/jcapiv2/docs/Provider.md deleted file mode 100644 index b7e3ca5..0000000 --- a/jcapiv2/docs/Provider.md +++ /dev/null @@ -1,9 +0,0 @@ -# JCAPIv2::Provider - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**contact** | [**ProviderContact**](ProviderContact.md) | | [optional] - - diff --git a/jcapiv2/docs/ProviderContact.md b/jcapiv2/docs/ProviderContact.md deleted file mode 100644 index 0089985..0000000 --- a/jcapiv2/docs/ProviderContact.md +++ /dev/null @@ -1,9 +0,0 @@ -# JCAPIv2::ProviderContact - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**email** | **String** | | [optional] - - diff --git a/jcapiv2/docs/ProvidersApi.md b/jcapiv2/docs/ProvidersApi.md deleted file mode 100644 index be69e3d..0000000 --- a/jcapiv2/docs/ProvidersApi.md +++ /dev/null @@ -1,79 +0,0 @@ -# JCAPIv2::ProvidersApi - -All URIs are relative to *https://console.jumpcloud.com/api/v2* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**providers_list_administrators**](ProvidersApi.md#providers_list_administrators) | **GET** /providers/{provider_id}/administrators | providersadministrators - - -# **providers_list_administrators** -> InlineResponse200 providers_list_administrators(provider_id, content_type, accept, opts) - -providersadministrators - -### Example -```ruby -# load the gem -require 'jcapiv2' -# setup authorization -JCAPIv2.configure do |config| - # Configure API key authorization: x-api-key - config.api_key['x-api-key'] = 'YOUR API KEY' - # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) - #config.api_key_prefix['x-api-key'] = 'Bearer' -end - -api_instance = JCAPIv2::ProvidersApi.new - -provider_id = 'provider_id_example' # String | - -content_type = 'application/json' # String | - -accept = 'application/json' # String | - -opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - limit: 10, # Integer | The number of records to return at once. Limited to 100. - skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. -} - -begin - #providersadministrators - result = api_instance.providers_list_administrators(provider_id, content_type, accept, opts) - p result -rescue JCAPIv2::ApiError => e - puts "Exception when calling ProvidersApi->providers_list_administrators: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **provider_id** | **String**| | - **content_type** | **String**| | [default to application/json] - **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] - **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] - **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] - -### Return type - -[**InlineResponse200**](InlineResponse200.md) - -### Authorization - -[x-api-key](../README.md#x-api-key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - - diff --git a/jcapiv2/lib/jcapiv2.rb b/jcapiv2/lib/jcapiv2.rb index 83bdc91..597da57 100644 --- a/jcapiv2/lib/jcapiv2.rb +++ b/jcapiv2/lib/jcapiv2.rb @@ -40,8 +40,6 @@ require 'jcapiv2/models/graph_type' require 'jcapiv2/models/group' require 'jcapiv2/models/group_type' -require 'jcapiv2/models/inline_response_200' -require 'jcapiv2/models/inline_response_401' require 'jcapiv2/models/job_details' require 'jcapiv2/models/job_id' require 'jcapiv2/models/job_workresult' @@ -62,8 +60,6 @@ require 'jcapiv2/models/policy_template_with_details' require 'jcapiv2/models/policy_value' require 'jcapiv2/models/policy_with_details' -require 'jcapiv2/models/provider' -require 'jcapiv2/models/provider_contact' require 'jcapiv2/models/samba_domain_input' require 'jcapiv2/models/sshkeylist' require 'jcapiv2/models/system_graph_management_req' @@ -111,7 +107,6 @@ require 'jcapiv2/api/office365_api' require 'jcapiv2/api/policies_api' require 'jcapiv2/api/policytemplates_api' -require 'jcapiv2/api/providers_api' require 'jcapiv2/api/radius_servers_api' require 'jcapiv2/api/samba_domains_api' require 'jcapiv2/api/system_group_associations_api' diff --git a/jcapiv2/lib/jcapiv2/api/providers_api.rb b/jcapiv2/lib/jcapiv2/api/providers_api.rb deleted file mode 100644 index b64ad10..0000000 --- a/jcapiv2/lib/jcapiv2/api/providers_api.rb +++ /dev/null @@ -1,104 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'uri' - -module JCAPIv2 - class ProvidersApi - attr_accessor :api_client - - def initialize(api_client = ApiClient.default) - @api_client = api_client - end - # providersadministrators - # @param provider_id - # @param content_type - # @param accept - # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) - # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) - # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) - # @return [InlineResponse200] - def providers_list_administrators(provider_id, content_type, accept, opts = {}) - data, _status_code, _headers = providers_list_administrators_with_http_info(provider_id, content_type, accept, opts) - data - end - - # providersadministrators - # @param provider_id - # @param content_type - # @param accept - # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - # @option opts [Integer] :limit The number of records to return at once. Limited to 100. - # @option opts [Integer] :skip The offset into the records to return. - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers - def providers_list_administrators_with_http_info(provider_id, content_type, accept, opts = {}) - if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ProvidersApi.providers_list_administrators ...' - end - # verify the required parameter 'provider_id' is set - if @api_client.config.client_side_validation && provider_id.nil? - fail ArgumentError, "Missing the required parameter 'provider_id' when calling ProvidersApi.providers_list_administrators" - end - # verify the required parameter 'content_type' is set - if @api_client.config.client_side_validation && content_type.nil? - fail ArgumentError, "Missing the required parameter 'content_type' when calling ProvidersApi.providers_list_administrators" - end - # verify the required parameter 'accept' is set - if @api_client.config.client_side_validation && accept.nil? - fail ArgumentError, "Missing the required parameter 'accept' when calling ProvidersApi.providers_list_administrators" - end - # resource path - local_var_path = '/providers/{provider_id}/administrators'.sub('{' + 'provider_id' + '}', provider_id.to_s) - - # query parameters - query_params = {} - query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :csv) if !opts[:'fields'].nil? - query_params[:'filter'] = @api_client.build_collection_param(opts[:'filter'], :csv) if !opts[:'filter'].nil? - query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? - query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil? - query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :csv) if !opts[:'sort'].nil? - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) - header_params[:'Content-Type'] = content_type - header_params[:'Accept'] = accept - - # form parameters - form_params = {} - - # http body (model) - post_body = nil - auth_names = ['x-api-key'] - data, status_code, headers = @api_client.call_api(:GET, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'InlineResponse200') - if @api_client.config.debugging - @api_client.config.logger.debug "API called: ProvidersApi#providers_list_administrators\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - end - return data, status_code, headers - end - end -end diff --git a/jcapiv2/lib/jcapiv2/models/inline_response_200.rb b/jcapiv2/lib/jcapiv2/models/inline_response_200.rb deleted file mode 100644 index 0ff081a..0000000 --- a/jcapiv2/lib/jcapiv2/models/inline_response_200.rb +++ /dev/null @@ -1,194 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'date' - -module JCAPIv2 - class InlineResponse200 - attr_accessor :total_count - - attr_accessor :results - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'total_count' => :'totalCount', - :'results' => :'results' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'total_count' => :'Integer', - :'results' => :'Array' - } - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - return unless attributes.is_a?(Hash) - - # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - - if attributes.has_key?(:'totalCount') - self.total_count = attributes[:'totalCount'] - end - - if attributes.has_key?(:'results') - if (value = attributes[:'results']).is_a?(Array) - self.results = value - end - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - total_count == o.total_count && - results == o.results - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Fixnum] Hash code - def hash - [total_count, results].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.swagger_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end # or else data not found in attributes(hash), not an issue as the data can be optional - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :BOOLEAN - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - temp_model = JCAPIv2.const_get(type).new - temp_model.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - next if value.nil? - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/jcapiv2/lib/jcapiv2/models/inline_response_401.rb b/jcapiv2/lib/jcapiv2/models/inline_response_401.rb deleted file mode 100644 index 7a628ed..0000000 --- a/jcapiv2/lib/jcapiv2/models/inline_response_401.rb +++ /dev/null @@ -1,183 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'date' - -module JCAPIv2 - class InlineResponse401 - attr_accessor :message - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'message' => :'message' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'message' => :'String' - } - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - return unless attributes.is_a?(Hash) - - # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - - if attributes.has_key?(:'message') - self.message = attributes[:'message'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - message == o.message - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Fixnum] Hash code - def hash - [message].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.swagger_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end # or else data not found in attributes(hash), not an issue as the data can be optional - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :BOOLEAN - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - temp_model = JCAPIv2.const_get(type).new - temp_model.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - next if value.nil? - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/jcapiv2/lib/jcapiv2/models/provider.rb b/jcapiv2/lib/jcapiv2/models/provider.rb deleted file mode 100644 index 8989582..0000000 --- a/jcapiv2/lib/jcapiv2/models/provider.rb +++ /dev/null @@ -1,192 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'date' - -module JCAPIv2 - class Provider - attr_accessor :name - - attr_accessor :contact - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'contact' => :'contact' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'name' => :'String', - :'contact' => :'ProviderContact' - } - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - return unless attributes.is_a?(Hash) - - # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - - if attributes.has_key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.has_key?(:'contact') - self.contact = attributes[:'contact'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - contact == o.contact - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Fixnum] Hash code - def hash - [name, contact].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.swagger_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end # or else data not found in attributes(hash), not an issue as the data can be optional - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :BOOLEAN - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - temp_model = JCAPIv2.const_get(type).new - temp_model.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - next if value.nil? - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/jcapiv2/lib/jcapiv2/models/provider_contact.rb b/jcapiv2/lib/jcapiv2/models/provider_contact.rb deleted file mode 100644 index 14b76ba..0000000 --- a/jcapiv2/lib/jcapiv2/models/provider_contact.rb +++ /dev/null @@ -1,192 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'date' - -module JCAPIv2 - class ProviderContact - attr_accessor :name - - attr_accessor :email - - # Attribute mapping from ruby-style variable name to JSON key. - def self.attribute_map - { - :'name' => :'name', - :'email' => :'email' - } - end - - # Attribute type mapping. - def self.swagger_types - { - :'name' => :'String', - :'email' => :'String' - } - end - - # Initializes the object - # @param [Hash] attributes Model attributes in the form of hash - def initialize(attributes = {}) - return unless attributes.is_a?(Hash) - - # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - - if attributes.has_key?(:'name') - self.name = attributes[:'name'] - end - - if attributes.has_key?(:'email') - self.email = attributes[:'email'] - end - end - - # Show invalid properties with the reasons. Usually used together with valid? - # @return Array for valid properties with the reasons - def list_invalid_properties - invalid_properties = Array.new - invalid_properties - end - - # Check to see if the all the properties in the model are valid - # @return true if the model is valid - def valid? - true - end - - # Checks equality by comparing each attribute. - # @param [Object] Object to be compared - def ==(o) - return true if self.equal?(o) - self.class == o.class && - name == o.name && - email == o.email - end - - # @see the `==` method - # @param [Object] Object to be compared - def eql?(o) - self == o - end - - # Calculates hash code according to all attributes. - # @return [Fixnum] Hash code - def hash - [name, email].hash - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) - return nil unless attributes.is_a?(Hash) - self.class.swagger_types.each_pair do |key, type| - if type =~ /\AArray<(.*)>/i - # check to ensure the input is an array given that the the attribute - # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) - end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) - end # or else data not found in attributes(hash), not an issue as the data can be optional - end - - self - end - - # Deserializes the data based on type - # @param string type Data type - # @param string value Value to be deserialized - # @return [Object] Deserialized data - def _deserialize(type, value) - case type.to_sym - when :DateTime - DateTime.parse(value) - when :Date - Date.parse(value) - when :String - value.to_s - when :Integer - value.to_i - when :Float - value.to_f - when :BOOLEAN - if value.to_s =~ /\A(true|t|yes|y|1)\z/i - true - else - false - end - when :Object - # generic object (usually a Hash), return directly - value - when /\AArray<(?.+)>\z/ - inner_type = Regexp.last_match[:inner_type] - value.map { |v| _deserialize(inner_type, v) } - when /\AHash<(?.+?), (?.+)>\z/ - k_type = Regexp.last_match[:k_type] - v_type = Regexp.last_match[:v_type] - {}.tap do |hash| - value.each do |k, v| - hash[_deserialize(k_type, k)] = _deserialize(v_type, v) - end - end - else # model - temp_model = JCAPIv2.const_get(type).new - temp_model.build_from_hash(value) - end - end - - # Returns the string representation of the object - # @return [String] String presentation of the object - def to_s - to_hash.to_s - end - - # to_body is an alias to to_hash (backward compatibility) - # @return [Hash] Returns the object in the form of hash - def to_body - to_hash - end - - # Returns the object in the form of hash - # @return [Hash] Returns the object in the form of hash - def to_hash - hash = {} - self.class.attribute_map.each_pair do |attr, param| - value = self.send(attr) - next if value.nil? - hash[param] = _to_hash(value) - end - hash - end - - # Outputs non-array value in the form of hash - # For object, use to_hash. Otherwise, just return the value - # @param [Object] value Any valid value - # @return [Hash] Returns the value in the form of hash - def _to_hash(value) - if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } - elsif value.is_a?(Hash) - {}.tap do |hash| - value.each { |k, v| hash[k] = _to_hash(v) } - end - elsif value.respond_to? :to_hash - value.to_hash - else - value - end - end - end -end diff --git a/jcapiv2/spec/api/providers_api_spec.rb b/jcapiv2/spec/api/providers_api_spec.rb deleted file mode 100644 index 3e928ca..0000000 --- a/jcapiv2/spec/api/providers_api_spec.rb +++ /dev/null @@ -1,53 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for JCAPIv2::ProvidersApi -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ProvidersApi' do - before do - # run before each test - @instance = JCAPIv2::ProvidersApi.new - end - - after do - # run after each test - end - - describe 'test an instance of ProvidersApi' do - it 'should create an instance of ProvidersApi' do - expect(@instance).to be_instance_of(JCAPIv2::ProvidersApi) - end - end - - # unit tests for providers_list_administrators - # providersadministrators - # @param provider_id - # @param content_type - # @param accept - # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - # @option opts [Integer] :limit The number of records to return at once. Limited to 100. - # @option opts [Integer] :skip The offset into the records to return. - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - # @return [InlineResponse200] - describe 'providers_list_administrators test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/jcapiv2/spec/models/inline_response_200_spec.rb b/jcapiv2/spec/models/inline_response_200_spec.rb deleted file mode 100644 index 7497e84..0000000 --- a/jcapiv2/spec/models/inline_response_200_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for JCAPIv2::InlineResponse200 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse200' do - before do - # run before each test - @instance = JCAPIv2::InlineResponse200.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse200' do - it 'should create an instance of InlineResponse200' do - expect(@instance).to be_instance_of(JCAPIv2::InlineResponse200) - end - end - describe 'test attribute "total_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "results"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/jcapiv2/spec/models/inline_response_401_spec.rb b/jcapiv2/spec/models/inline_response_401_spec.rb deleted file mode 100644 index 1fdfaa9..0000000 --- a/jcapiv2/spec/models/inline_response_401_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for JCAPIv2::InlineResponse401 -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'InlineResponse401' do - before do - # run before each test - @instance = JCAPIv2::InlineResponse401.new - end - - after do - # run after each test - end - - describe 'test an instance of InlineResponse401' do - it 'should create an instance of InlineResponse401' do - expect(@instance).to be_instance_of(JCAPIv2::InlineResponse401) - end - end - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/jcapiv2/spec/models/provider_contact_spec.rb b/jcapiv2/spec/models/provider_contact_spec.rb deleted file mode 100644 index 6872ec3..0000000 --- a/jcapiv2/spec/models/provider_contact_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for JCAPIv2::ProviderContact -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'ProviderContact' do - before do - # run before each test - @instance = JCAPIv2::ProviderContact.new - end - - after do - # run after each test - end - - describe 'test an instance of ProviderContact' do - it 'should create an instance of ProviderContact' do - expect(@instance).to be_instance_of(JCAPIv2::ProviderContact) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "email"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/jcapiv2/spec/models/provider_spec.rb b/jcapiv2/spec/models/provider_spec.rb deleted file mode 100644 index b514179..0000000 --- a/jcapiv2/spec/models/provider_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -=begin -#JumpCloud APIs - -# JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph. - -OpenAPI spec version: 2.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for JCAPIv2::Provider -# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) -# Please update as you see appropriate -describe 'Provider' do - before do - # run before each test - @instance = JCAPIv2::Provider.new - end - - after do - # run after each test - end - - describe 'test an instance of Provider' do - it 'should create an instance of Provider' do - expect(@instance).to be_instance_of(JCAPIv2::Provider) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "contact"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end From bd919a86b434f853c6e71c779de01cbb98df83d9 Mon Sep 17 00:00:00 2001 From: Jon Casey Date: Fri, 22 Feb 2019 12:42:22 -0700 Subject: [PATCH 4/6] Revert swagger-codegen to 2.3.1 --- docker-compose.yml | 2 +- jcapiv1/.gitignore | 2 +- jcapiv1/.rubocop.yml | 154 ---- jcapiv1/.swagger-codegen/VERSION | 2 +- jcapiv1/README.md | 12 +- jcapiv1/docs/ApplicationsApi.md | 12 +- jcapiv1/docs/CommandResultsApi.md | 32 +- jcapiv1/docs/CommandTriggersApi.md | 8 +- jcapiv1/docs/CommandsApi.md | 56 +- jcapiv1/docs/OrganizationsApi.md | 12 +- jcapiv1/docs/RadiusServersApi.md | 24 +- jcapiv1/docs/SearchApi.md | 28 +- jcapiv1/docs/SystemsApi.md | 76 +- jcapiv1/docs/SystemusersApi.md | 104 +-- jcapiv1/docs/TagsApi.md | 38 +- jcapiv1/jcapiv1.gemspec | 9 +- jcapiv1/lib/jcapiv1.rb | 2 +- jcapiv1/lib/jcapiv1/api/applications_api.rb | 11 +- .../lib/jcapiv1/api/command_results_api.rb | 25 +- .../lib/jcapiv1/api/command_triggers_api.rb | 11 +- jcapiv1/lib/jcapiv1/api/commands_api.rb | 46 +- jcapiv1/lib/jcapiv1/api/organizations_api.rb | 11 +- jcapiv1/lib/jcapiv1/api/radius_servers_api.rb | 25 +- jcapiv1/lib/jcapiv1/api/search_api.rb | 25 +- jcapiv1/lib/jcapiv1/api/systems_api.rb | 46 +- jcapiv1/lib/jcapiv1/api/systemusers_api.rb | 88 ++- jcapiv1/lib/jcapiv1/api/tags_api.rb | 39 +- jcapiv1/lib/jcapiv1/api_client.rb | 18 +- jcapiv1/lib/jcapiv1/api_error.rb | 2 +- jcapiv1/lib/jcapiv1/configuration.rb | 4 +- jcapiv1/lib/jcapiv1/models/application.rb | 17 +- .../lib/jcapiv1/models/application_config.rb | 17 +- .../application_config_constant_attributes.rb | 17 +- ...cation_config_constant_attributes_value.rb | 17 +- .../application_config_database_attributes.rb | 17 +- .../application_config_idp_entity_id.rb | 17 +- ...pplication_config_idp_entity_id_tooltip.rb | 17 +- ..._config_idp_entity_id_tooltip_variables.rb | 17 +- .../lib/jcapiv1/models/applicationslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/body.rb | 21 +- jcapiv1/lib/jcapiv1/models/body_1.rb | 17 +- jcapiv1/lib/jcapiv1/models/command.rb | 21 +- .../lib/jcapiv1/models/commandfilereturn.rb | 17 +- .../models/commandfilereturn_results.rb | 17 +- jcapiv1/lib/jcapiv1/models/commandresult.rb | 17 +- .../jcapiv1/models/commandresult_response.rb | 17 +- .../models/commandresult_response_data.rb | 17 +- .../lib/jcapiv1/models/commandresultslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/commandslist.rb | 17 +- .../jcapiv1/models/commandslist_results.rb | 17 +- jcapiv1/lib/jcapiv1/models/errorresponse.rb | 17 +- jcapiv1/lib/jcapiv1/models/fde.rb | 17 +- jcapiv1/lib/jcapiv1/models/mfa.rb | 17 +- .../lib/jcapiv1/models/organizationslist.rb | 17 +- .../models/organizationslist_results.rb | 17 +- jcapiv1/lib/jcapiv1/models/radiusserver.rb | 17 +- .../lib/jcapiv1/models/radiusserverpost.rb | 23 +- jcapiv1/lib/jcapiv1/models/radiusserverput.rb | 17 +- .../lib/jcapiv1/models/radiusserverslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/search.rb | 17 +- jcapiv1/lib/jcapiv1/models/sshkeylist.rb | 17 +- jcapiv1/lib/jcapiv1/models/sshkeypost.rb | 21 +- jcapiv1/lib/jcapiv1/models/system.rb | 17 +- .../models/system_network_interfaces.rb | 17 +- .../lib/jcapiv1/models/system_sshd_params.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemput.rb | 17 +- .../models/systemput_agent_bound_messages.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/systemuser.rb | 102 ++- .../lib/jcapiv1/models/systemuserbinding.rb | 17 +- .../jcapiv1/models/systemuserbindingsput.rb | 21 +- jcapiv1/lib/jcapiv1/models/systemuserput.rb | 103 +-- .../jcapiv1/models/systemuserput_addresses.rb | 57 +- .../models/systemuserput_phone_numbers.rb | 27 +- .../lib/jcapiv1/models/systemuserputpost.rb | 47 +- .../models/systemuserputpost_addresses.rb | 17 +- .../models/systemuserputpost_phone_numbers.rb | 17 +- .../lib/jcapiv1/models/systemuserreturn.rb | 102 ++- .../models/systemuserreturn_addresses.rb | 57 +- .../models/systemuserreturn_phone_numbers.rb | 27 +- jcapiv1/lib/jcapiv1/models/systemuserslist.rb | 17 +- jcapiv1/lib/jcapiv1/models/tag.rb | 17 +- jcapiv1/lib/jcapiv1/models/tagpost.rb | 19 +- jcapiv1/lib/jcapiv1/models/tagput.rb | 17 +- jcapiv1/lib/jcapiv1/models/tagslist.rb | 17 +- .../lib/jcapiv1/models/usersystembinding.rb | 17 +- .../jcapiv1/models/usersystembindingsput.rb | 21 +- jcapiv1/lib/jcapiv1/version.rb | 4 +- jcapiv1/spec/api/applications_api_spec.rb | 4 +- jcapiv1/spec/api/command_results_api_spec.rb | 8 +- jcapiv1/spec/api/command_triggers_api_spec.rb | 4 +- jcapiv1/spec/api/commands_api_spec.rb | 14 +- jcapiv1/spec/api/organizations_api_spec.rb | 4 +- jcapiv1/spec/api/radius_servers_api_spec.rb | 8 +- jcapiv1/spec/api/search_api_spec.rb | 8 +- jcapiv1/spec/api/systems_api_spec.rb | 14 +- jcapiv1/spec/api/systemusers_api_spec.rb | 26 +- jcapiv1/spec/api/tags_api_spec.rb | 12 +- jcapiv1/spec/api_client_spec.rb | 70 +- jcapiv1/spec/configuration_spec.rb | 18 +- ...ication_config_constant_attributes_spec.rb | 21 +- ...n_config_constant_attributes_value_spec.rb | 13 +- ...ication_config_database_attributes_spec.rb | 5 +- .../application_config_idp_entity_id_spec.rb | 19 +- ...ation_config_idp_entity_id_tooltip_spec.rb | 7 +- ...ig_idp_entity_id_tooltip_variables_spec.rb | 7 +- .../spec/models/application_config_spec.rb | 15 +- jcapiv1/spec/models/application_spec.rb | 21 +- jcapiv1/spec/models/applicationslist_spec.rb | 7 +- jcapiv1/spec/models/body_1_spec.rb | 7 +- jcapiv1/spec/models/body_spec.rb | 9 +- jcapiv1/spec/models/command_spec.rb | 31 +- .../models/commandfilereturn_results_spec.rb | 9 +- jcapiv1/spec/models/commandfilereturn_spec.rb | 7 +- .../commandresult_response_data_spec.rb | 7 +- .../models/commandresult_response_spec.rb | 9 +- jcapiv1/spec/models/commandresult_spec.rb | 31 +- .../spec/models/commandresultslist_spec.rb | 7 +- .../spec/models/commandslist_results_spec.rb | 23 +- jcapiv1/spec/models/commandslist_spec.rb | 7 +- jcapiv1/spec/models/errorresponse_spec.rb | 5 +- jcapiv1/spec/models/fde_spec.rb | 7 +- jcapiv1/spec/models/mfa_spec.rb | 9 +- .../models/organizationslist_results_spec.rb | 9 +- jcapiv1/spec/models/organizationslist_spec.rb | 7 +- jcapiv1/spec/models/radiusserver_spec.rb | 17 +- jcapiv1/spec/models/radiusserverpost_spec.rb | 11 +- jcapiv1/spec/models/radiusserverput_spec.rb | 11 +- jcapiv1/spec/models/radiusserverslist_spec.rb | 7 +- jcapiv1/spec/models/search_spec.rb | 7 +- jcapiv1/spec/models/sshkeylist_spec.rb | 11 +- jcapiv1/spec/models/sshkeypost_spec.rb | 7 +- .../models/system_network_interfaces_spec.rb | 11 +- jcapiv1/spec/models/system_spec.rb | 55 +- .../spec/models/system_sshd_params_spec.rb | 7 +- .../systemput_agent_bound_messages_spec.rb | 5 +- jcapiv1/spec/models/systemput_spec.rb | 17 +- jcapiv1/spec/models/systemslist_spec.rb | 7 +- jcapiv1/spec/models/systemuser_spec.rb | 83 +- jcapiv1/spec/models/systemuserbinding_spec.rb | 3 +- .../spec/models/systemuserbindingsput_spec.rb | 7 +- .../models/systemuserput_addresses_spec.rb | 19 +- .../systemuserput_phone_numbers_spec.rb | 7 +- jcapiv1/spec/models/systemuserput_spec.rb | 75 +- .../systemuserputpost_addresses_spec.rb | 19 +- .../systemuserputpost_phone_numbers_spec.rb | 7 +- jcapiv1/spec/models/systemuserputpost_spec.rb | 77 +- .../models/systemuserreturn_addresses_spec.rb | 21 +- .../systemuserreturn_phone_numbers_spec.rb | 9 +- jcapiv1/spec/models/systemuserreturn_spec.rb | 89 +-- jcapiv1/spec/models/systemuserslist_spec.rb | 7 +- jcapiv1/spec/models/tag_spec.rb | 27 +- jcapiv1/spec/models/tagpost_spec.rb | 23 +- jcapiv1/spec/models/tagput_spec.rb | 23 +- jcapiv1/spec/models/tagslist_spec.rb | 7 +- jcapiv1/spec/models/usersystembinding_spec.rb | 3 +- .../spec/models/usersystembindingsput_spec.rb | 7 +- jcapiv1/spec/spec_helper.rb | 2 +- jcapiv2/.gitignore | 2 +- jcapiv2/.rubocop.yml | 154 ---- jcapiv2/.swagger-codegen/VERSION | 2 +- jcapiv2/README.md | 8 +- jcapiv2/docs/ActiveDirectoryApi.md | 66 +- jcapiv2/docs/ApplicationsApi.md | 34 +- jcapiv2/docs/BulkJobRequestsApi.md | 36 +- jcapiv2/docs/CommandsApi.md | 34 +- jcapiv2/docs/DirectoriesApi.md | 14 +- jcapiv2/docs/FdeApi.md | 4 +- jcapiv2/docs/GSuiteApi.md | 70 +- jcapiv2/docs/GraphApi.md | 712 +++++++++--------- jcapiv2/docs/GroupsApi.md | 18 +- jcapiv2/docs/LDAPServersApi.md | 60 +- jcapiv2/docs/Office365Api.md | 74 +- jcapiv2/docs/PoliciesApi.md | 198 ++--- jcapiv2/docs/PolicyTemplate.md | 2 +- jcapiv2/docs/PolicytemplatesApi.md | 26 +- jcapiv2/docs/RADIUSServersApi.md | 34 +- jcapiv2/docs/SambaDomainsApi.md | 58 +- jcapiv2/docs/SystemGroupAssociationsApi.md | 50 +- .../docs/SystemGroupMembersMembershipApi.md | 52 +- jcapiv2/docs/SystemGroupsApi.md | 150 ++-- jcapiv2/docs/SystemsApi.md | 94 +-- jcapiv2/docs/UserGroupAssociationsApi.md | 90 +-- jcapiv2/docs/UserGroupMembersMembershipApi.md | 48 +- jcapiv2/docs/UserGroupsApi.md | 194 ++--- jcapiv2/docs/UsersApi.md | 110 +-- jcapiv2/docs/WorkdayImportApi.md | 102 +-- jcapiv2/jcapiv2.gemspec | 9 +- jcapiv2/lib/jcapiv2.rb | 2 +- .../lib/jcapiv2/api/active_directory_api.rb | 59 +- jcapiv2/lib/jcapiv2/api/applications_api.rb | 32 +- .../lib/jcapiv2/api/bulk_job_requests_api.rb | 39 +- jcapiv2/lib/jcapiv2/api/commands_api.rb | 32 +- jcapiv2/lib/jcapiv2/api/directories_api.rb | 15 +- jcapiv2/lib/jcapiv2/api/fde_api.rb | 11 +- jcapiv2/lib/jcapiv2/api/g_suite_api.rb | 66 +- jcapiv2/lib/jcapiv2/api/graph_api.rb | 563 ++++++++------ jcapiv2/lib/jcapiv2/api/groups_api.rb | 17 +- jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb | 52 +- jcapiv2/lib/jcapiv2/api/office365_api.rb | 66 +- jcapiv2/lib/jcapiv2/api/policies_api.rb | 156 ++-- .../lib/jcapiv2/api/policytemplates_api.rb | 24 +- jcapiv2/lib/jcapiv2/api/radius_servers_api.rb | 32 +- jcapiv2/lib/jcapiv2/api/samba_domains_api.rb | 45 +- .../api/system_group_associations_api.rb | 46 +- .../system_group_members_membership_api.rb | 40 +- jcapiv2/lib/jcapiv2/api/system_groups_api.rb | 123 +-- jcapiv2/lib/jcapiv2/api/systems_api.rb | 66 +- .../api/user_group_associations_api.rb | 81 +- .../api/user_group_members_membership_api.rb | 40 +- jcapiv2/lib/jcapiv2/api/user_groups_api.rb | 165 ++-- jcapiv2/lib/jcapiv2/api/users_api.rb | 94 ++- jcapiv2/lib/jcapiv2/api/workday_import_api.rb | 89 ++- jcapiv2/lib/jcapiv2/api_client.rb | 18 +- jcapiv2/lib/jcapiv2/api_error.rb | 2 +- jcapiv2/lib/jcapiv2/configuration.rb | 4 +- .../jcapiv2/models/active_directory_input.rb | 17 +- .../jcapiv2/models/active_directory_output.rb | 19 +- jcapiv2/lib/jcapiv2/models/administrator.rb | 17 +- jcapiv2/lib/jcapiv2/models/auth_info.rb | 17 +- jcapiv2/lib/jcapiv2/models/auth_input.rb | 17 +- .../lib/jcapiv2/models/auth_input_object.rb | 17 +- jcapiv2/lib/jcapiv2/models/authinput_basic.rb | 17 +- jcapiv2/lib/jcapiv2/models/authinput_oauth.rb | 17 +- .../lib/jcapiv2/models/bulk_user_create.rb | 16 +- .../lib/jcapiv2/models/bulk_user_update.rb | 16 +- jcapiv2/lib/jcapiv2/models/directory.rb | 28 +- jcapiv2/lib/jcapiv2/models/emailrequest.rb | 22 +- jcapiv2/lib/jcapiv2/models/error.rb | 17 +- jcapiv2/lib/jcapiv2/models/errorresponse.rb | 17 +- .../models/g_suite_builtin_translation.rb | 33 +- .../models/g_suite_translation_rule.rb | 17 +- .../g_suite_translation_rule_request.rb | 17 +- .../lib/jcapiv2/models/graph_connection.rb | 18 +- .../jcapiv2/models/graph_management_req.rb | 28 +- jcapiv2/lib/jcapiv2/models/graph_object.rb | 21 +- .../jcapiv2/models/graph_object_with_paths.rb | 23 +- jcapiv2/lib/jcapiv2/models/graph_type.rb | 29 +- jcapiv2/lib/jcapiv2/models/group.rb | 17 +- jcapiv2/lib/jcapiv2/models/group_type.rb | 9 +- jcapiv2/lib/jcapiv2/models/job_details.rb | 17 +- jcapiv2/lib/jcapiv2/models/job_id.rb | 17 +- jcapiv2/lib/jcapiv2/models/job_workresult.rb | 17 +- .../lib/jcapiv2/models/ldap_server_input.rb | 17 +- .../lib/jcapiv2/models/ldap_server_output.rb | 19 +- jcapiv2/lib/jcapiv2/models/mfa.rb | 17 +- .../lib/jcapiv2/models/oauth_code_input.rb | 17 +- .../models/office365_builtin_translation.rb | 25 +- .../models/office365_translation_rule.rb | 17 +- .../office365_translation_rule_request.rb | 17 +- jcapiv2/lib/jcapiv2/models/policy.rb | 16 +- jcapiv2/lib/jcapiv2/models/policy_request.rb | 18 +- .../jcapiv2/models/policy_request_template.rb | 17 +- jcapiv2/lib/jcapiv2/models/policy_result.rb | 17 +- jcapiv2/lib/jcapiv2/models/policy_template.rb | 23 +- .../models/policy_template_config_field.rb | 26 +- .../policy_template_config_field_tooltip.rb | 17 +- ...template_config_field_tooltip_variables.rb | 17 +- .../models/policy_template_with_details.rb | 21 +- jcapiv2/lib/jcapiv2/models/policy_value.rb | 17 +- .../lib/jcapiv2/models/policy_with_details.rb | 16 +- .../lib/jcapiv2/models/samba_domain_input.rb | 21 +- .../lib/jcapiv2/models/samba_domain_output.rb | 23 +- jcapiv2/lib/jcapiv2/models/sshkeylist.rb | 17 +- .../models/system_graph_management_req.rb | 34 +- .../system_graph_management_req_attributes.rb | 16 +- ...em_graph_management_req_attributes_sudo.rb | 17 +- jcapiv2/lib/jcapiv2/models/system_group.rb | 22 +- .../lib/jcapiv2/models/system_group_data.rb | 19 +- .../system_group_graph_management_req.rb | 34 +- .../models/system_group_members_req.rb | 34 +- jcapiv2/lib/jcapiv2/models/systemfdekey.rb | 19 +- jcapiv2/lib/jcapiv2/models/systemuser.rb | 102 ++- .../lib/jcapiv2/models/systemuserputpost.rb | 47 +- .../models/systemuserputpost_addresses.rb | 17 +- .../models/systemuserputpost_phone_numbers.rb | 17 +- .../models/user_graph_management_req.rb | 34 +- jcapiv2/lib/jcapiv2/models/user_group.rb | 22 +- .../models/user_group_graph_management_req.rb | 34 +- .../jcapiv2/models/user_group_members_req.rb | 34 +- jcapiv2/lib/jcapiv2/models/user_group_post.rb | 19 +- .../models/user_group_post_attributes.rb | 16 +- ...user_group_post_attributes_posix_groups.rb | 17 +- jcapiv2/lib/jcapiv2/models/user_group_put.rb | 19 +- .../models/user_group_put_attributes.rb | 16 +- jcapiv2/lib/jcapiv2/models/workday_fields.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_input.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_output.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_request.rb | 17 +- jcapiv2/lib/jcapiv2/models/workday_worker.rb | 17 +- .../lib/jcapiv2/models/workdayoutput_auth.rb | 17 +- jcapiv2/lib/jcapiv2/version.rb | 4 +- jcapiv2/spec/api/active_directory_api_spec.rb | 16 +- jcapiv2/spec/api/applications_api_spec.rb | 10 +- .../spec/api/bulk_job_requests_api_spec.rb | 12 +- jcapiv2/spec/api/commands_api_spec.rb | 10 +- jcapiv2/spec/api/directories_api_spec.rb | 4 +- jcapiv2/spec/api/fde_api_spec.rb | 4 +- jcapiv2/spec/api/g_suite_api_spec.rb | 18 +- jcapiv2/spec/api/graph_api_spec.rb | 152 ++-- jcapiv2/spec/api/groups_api_spec.rb | 4 +- jcapiv2/spec/api/ldap_servers_api_spec.rb | 14 +- jcapiv2/spec/api/office365_api_spec.rb | 18 +- jcapiv2/spec/api/policies_api_spec.rb | 34 +- jcapiv2/spec/api/policytemplates_api_spec.rb | 6 +- jcapiv2/spec/api/radius_servers_api_spec.rb | 10 +- jcapiv2/spec/api/samba_domains_api_spec.rb | 12 +- .../api/system_group_associations_api_spec.rb | 14 +- ...ystem_group_members_membership_api_spec.rb | 10 +- jcapiv2/spec/api/system_groups_api_spec.rb | 32 +- jcapiv2/spec/api/systems_api_spec.rb | 18 +- .../api/user_group_associations_api_spec.rb | 24 +- .../user_group_members_membership_api_spec.rb | 10 +- jcapiv2/spec/api/user_groups_api_spec.rb | 44 +- jcapiv2/spec/api/users_api_spec.rb | 26 +- jcapiv2/spec/api/workday_import_api_spec.rb | 24 +- jcapiv2/spec/api_client_spec.rb | 70 +- jcapiv2/spec/configuration_spec.rb | 18 +- .../models/active_directory_input_spec.rb | 5 +- .../models/active_directory_output_spec.rb | 7 +- jcapiv2/spec/models/administrator_spec.rb | 15 +- jcapiv2/spec/models/auth_info_spec.rb | 9 +- jcapiv2/spec/models/auth_input_object_spec.rb | 5 +- jcapiv2/spec/models/auth_input_spec.rb | 7 +- jcapiv2/spec/models/authinput_basic_spec.rb | 7 +- jcapiv2/spec/models/authinput_oauth_spec.rb | 5 +- jcapiv2/spec/models/bulk_user_create_spec.rb | 13 +- jcapiv2/spec/models/bulk_user_update_spec.rb | 15 +- jcapiv2/spec/models/directory_spec.rb | 17 +- jcapiv2/spec/models/emailrequest_spec.rb | 13 +- jcapiv2/spec/models/error_spec.rb | 9 +- jcapiv2/spec/models/errorresponse_spec.rb | 5 +- .../g_suite_builtin_translation_spec.rb | 3 +- .../g_suite_translation_rule_request_spec.rb | 5 +- .../models/g_suite_translation_rule_spec.rb | 7 +- jcapiv2/spec/models/graph_connection_spec.rb | 7 +- .../spec/models/graph_management_req_spec.rb | 17 +- jcapiv2/spec/models/graph_object_spec.rb | 7 +- .../models/graph_object_with_paths_spec.rb | 9 +- jcapiv2/spec/models/graph_type_spec.rb | 3 +- jcapiv2/spec/models/group_spec.rb | 9 +- jcapiv2/spec/models/group_type_spec.rb | 3 +- jcapiv2/spec/models/job_details_spec.rb | 19 +- jcapiv2/spec/models/job_id_spec.rb | 5 +- jcapiv2/spec/models/job_workresult_spec.rb | 5 +- jcapiv2/spec/models/ldap_server_input_spec.rb | 5 +- .../spec/models/ldap_server_output_spec.rb | 7 +- jcapiv2/spec/models/mfa_spec.rb | 9 +- jcapiv2/spec/models/oauth_code_input_spec.rb | 5 +- .../office365_builtin_translation_spec.rb | 3 +- ...office365_translation_rule_request_spec.rb | 5 +- .../models/office365_translation_rule_spec.rb | 7 +- jcapiv2/spec/models/policy_request_spec.rb | 9 +- .../models/policy_request_template_spec.rb | 5 +- jcapiv2/spec/models/policy_result_spec.rb | 25 +- jcapiv2/spec/models/policy_spec.rb | 9 +- .../policy_template_config_field_spec.rb | 27 +- ...licy_template_config_field_tooltip_spec.rb | 7 +- ...ate_config_field_tooltip_variables_spec.rb | 7 +- jcapiv2/spec/models/policy_template_spec.rb | 27 +- .../policy_template_with_details_spec.rb | 27 +- jcapiv2/spec/models/policy_value_spec.rb | 5 +- .../spec/models/policy_with_details_spec.rb | 13 +- .../spec/models/samba_domain_input_spec.rb | 7 +- .../spec/models/samba_domain_output_spec.rb | 9 +- jcapiv2/spec/models/sshkeylist_spec.rb | 11 +- ...em_graph_management_req_attributes_spec.rb | 5 +- ...aph_management_req_attributes_sudo_spec.rb | 7 +- .../system_graph_management_req_spec.rb | 27 +- jcapiv2/spec/models/system_group_data_spec.rb | 5 +- .../system_group_graph_management_req_spec.rb | 25 +- .../models/system_group_members_req_spec.rb | 25 +- jcapiv2/spec/models/system_group_spec.rb | 17 +- jcapiv2/spec/models/systemfdekey_spec.rb | 5 +- jcapiv2/spec/models/systemuser_spec.rb | 83 +- .../systemuserputpost_addresses_spec.rb | 19 +- .../systemuserputpost_phone_numbers_spec.rb | 7 +- jcapiv2/spec/models/systemuserputpost_spec.rb | 77 +- .../models/user_graph_management_req_spec.rb | 27 +- .../user_group_graph_management_req_spec.rb | 25 +- .../models/user_group_members_req_spec.rb | 25 +- ...group_post_attributes_posix_groups_spec.rb | 7 +- .../models/user_group_post_attributes_spec.rb | 7 +- jcapiv2/spec/models/user_group_post_spec.rb | 7 +- .../models/user_group_put_attributes_spec.rb | 5 +- jcapiv2/spec/models/user_group_put_spec.rb | 7 +- jcapiv2/spec/models/user_group_spec.rb | 17 +- jcapiv2/spec/models/workday_fields_spec.rb | 7 +- jcapiv2/spec/models/workday_input_spec.rb | 9 +- jcapiv2/spec/models/workday_output_spec.rb | 13 +- jcapiv2/spec/models/workday_request_spec.rb | 7 +- jcapiv2/spec/models/workday_worker_spec.rb | 13 +- .../spec/models/workdayoutput_auth_spec.rb | 7 +- jcapiv2/spec/spec_helper.rb | 2 +- 394 files changed, 5979 insertions(+), 5161 deletions(-) delete mode 100644 jcapiv1/.rubocop.yml delete mode 100644 jcapiv2/.rubocop.yml diff --git a/docker-compose.yml b/docker-compose.yml index ff7f9b6..8b71bcf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '2' services: swagger-codegen: - image: swaggerapi/swagger-codegen-cli:2.4.2 + image: jimschubert/swagger-codegen-cli:2.3.1 volumes: - ./input:/swagger-api/yaml # volume for input yaml files - ./output:/swagger-api/out # volume for generated files diff --git a/jcapiv1/.gitignore b/jcapiv1/.gitignore index c021594..4b91271 100644 --- a/jcapiv1/.gitignore +++ b/jcapiv1/.gitignore @@ -1,5 +1,5 @@ # Generated by: https://github.com/swagger-api/swagger-codegen.git -# +# *.gem *.rbc diff --git a/jcapiv1/.rubocop.yml b/jcapiv1/.rubocop.yml deleted file mode 100644 index 19a777e..0000000 --- a/jcapiv1/.rubocop.yml +++ /dev/null @@ -1,154 +0,0 @@ -# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) -# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen) -AllCops: - TargetRubyVersion: 2.2 - # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explicitly set in this file are enabled. - DisabledByDefault: true - Exclude: - - '**/templates/**/*' - - '**/vendor/**/*' - - 'actionpack/lib/action_dispatch/journey/parser.rb' - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Do not use braces for hash literals when they are the last argument of a -# method call. -Style/BracesAroundHashParameters: - Enabled: true - EnforcedStyle: context_dependent - -# Align `when` with `case`. -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/ElseAlignment: - Enabled: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstParameterIndentation: - Enabled: true - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: false - -# Method definitions after `private` or `protected` isolated calls need one -# extra level of indentation. -Layout/IndentationConsistency: - Enabled: true - EnforcedStyle: rails - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: false - EnforcedStyle: always - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Check quotes usage according to lint rule below. -#Style/StringLiterals: -# Enabled: true -# EnforcedStyle: single_quotes - -# Detect hard tabs, no hard tabs. -Layout/Tab: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingBlankLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: false - -# Use quotes for string literals when they are enough. -Style/UnneededPercentQ: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Lint/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. -Lint/RequireParentheses: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true diff --git a/jcapiv1/.swagger-codegen/VERSION b/jcapiv1/.swagger-codegen/VERSION index acdc3f1..a625450 100644 --- a/jcapiv1/.swagger-codegen/VERSION +++ b/jcapiv1/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.2 \ No newline at end of file +2.3.1 \ No newline at end of file diff --git a/jcapiv1/README.md b/jcapiv1/README.md index 10a42f5..6131bb6 100644 --- a/jcapiv1/README.md +++ b/jcapiv1/README.md @@ -64,17 +64,17 @@ end api_instance = JCAPIv1::ApplicationsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: 'fields_example', # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: "fields_example", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 56, # Integer | The number of records to return at once. skip: 56, # Integer | The offset into the records to return. - sort: 'The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.', # String | - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + sort: "The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.", # String | + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/ApplicationsApi.md b/jcapiv1/docs/ApplicationsApi.md index 4e53e58..ea42614 100644 --- a/jcapiv1/docs/ApplicationsApi.md +++ b/jcapiv1/docs/ApplicationsApi.md @@ -28,17 +28,17 @@ end api_instance = JCAPIv1::ApplicationsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: 'fields_example', # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: "fields_example", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 56, # Integer | The number of records to return at once. skip: 56, # Integer | The offset into the records to return. - sort: 'The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.', # String | - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + sort: "The comma separated fields used to sort the collection. Default sort is ascending, prefix with - to sort descending.", # String | + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/CommandResultsApi.md b/jcapiv1/docs/CommandResultsApi.md index f4ccf64..2abf57e 100644 --- a/jcapiv1/docs/CommandResultsApi.md +++ b/jcapiv1/docs/CommandResultsApi.md @@ -30,14 +30,14 @@ end api_instance = JCAPIv1::CommandResultsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -94,16 +94,16 @@ end api_instance = JCAPIv1::CommandResultsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin @@ -162,17 +162,17 @@ end api_instance = JCAPIv1::CommandResultsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/CommandTriggersApi.md b/jcapiv1/docs/CommandTriggersApi.md index 7ee13ab..7e5fea3 100644 --- a/jcapiv1/docs/CommandTriggersApi.md +++ b/jcapiv1/docs/CommandTriggersApi.md @@ -28,14 +28,14 @@ end api_instance = JCAPIv1::CommandTriggersApi.new -triggername = 'triggername_example' # String | +triggername = "triggername_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/CommandsApi.md b/jcapiv1/docs/CommandsApi.md index 9816c4e..fcb98c5 100644 --- a/jcapiv1/docs/CommandsApi.md +++ b/jcapiv1/docs/CommandsApi.md @@ -33,17 +33,17 @@ end api_instance = JCAPIv1::CommandsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -103,14 +103,14 @@ end api_instance = JCAPIv1::CommandsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -166,16 +166,16 @@ end api_instance = JCAPIv1::CommandsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin @@ -234,17 +234,17 @@ end api_instance = JCAPIv1::CommandsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { skip: 0, # Integer | The offset into the records to return. - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin @@ -305,13 +305,13 @@ end api_instance = JCAPIv1::CommandsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Command.new, # Command | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -368,15 +368,15 @@ end api_instance = JCAPIv1::CommandsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Command.new, # Command | - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/OrganizationsApi.md b/jcapiv1/docs/OrganizationsApi.md index 8665fd2..b7b402d 100644 --- a/jcapiv1/docs/OrganizationsApi.md +++ b/jcapiv1/docs/OrganizationsApi.md @@ -28,17 +28,17 @@ end api_instance = JCAPIv1::OrganizationsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - search: 'search_example', # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. } begin diff --git a/jcapiv1/docs/RadiusServersApi.md b/jcapiv1/docs/RadiusServersApi.md index 223fbbf..184e342 100644 --- a/jcapiv1/docs/RadiusServersApi.md +++ b/jcapiv1/docs/RadiusServersApi.md @@ -30,17 +30,17 @@ end api_instance = JCAPIv1::RadiusServersApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - x_org_id: '' # String | + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -101,13 +101,13 @@ end api_instance = JCAPIv1::RadiusServersApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Radiusserverpost.new, # Radiusserverpost | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -164,13 +164,13 @@ end api_instance = JCAPIv1::RadiusServersApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Body.new, # Body | - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/SearchApi.md b/jcapiv1/docs/SearchApi.md index ed7a932..4149281 100644 --- a/jcapiv1/docs/SearchApi.md +++ b/jcapiv1/docs/SearchApi.md @@ -30,14 +30,14 @@ end api_instance = JCAPIv1::SearchApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Search.new, # Search | - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. } @@ -99,17 +99,17 @@ end api_instance = JCAPIv1::SearchApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Search.new, # Search | - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: '' # String | + x_org_id: "" # String | skip: 0, # Integer | The offset into the records to return. - filter: 'filter_example' # String | A filter to apply to the query. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -170,17 +170,17 @@ end api_instance = JCAPIv1::SearchApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Search.new, # Search | - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/SystemsApi.md b/jcapiv1/docs/SystemsApi.md index cbe7a20..fe72d06 100644 --- a/jcapiv1/docs/SystemsApi.md +++ b/jcapiv1/docs/SystemsApi.md @@ -33,16 +33,16 @@ end api_instance = JCAPIv1::SystemsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -101,18 +101,18 @@ end api_instance = JCAPIv1::SystemsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -173,18 +173,18 @@ end api_instance = JCAPIv1::SystemsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: '' # String | - search: 'search_example', # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + x_org_id: "" # String | + search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -246,17 +246,17 @@ end api_instance = JCAPIv1::SystemsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Systemput.new, # Systemput | - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -315,19 +315,19 @@ end api_instance = JCAPIv1::SystemsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin @@ -389,15 +389,15 @@ end api_instance = JCAPIv1::SystemsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Systemuserbindingsput.new, # Systemuserbindingsput | - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/SystemusersApi.md b/jcapiv1/docs/SystemusersApi.md index 2eaa902..cb38690 100644 --- a/jcapiv1/docs/SystemusersApi.md +++ b/jcapiv1/docs/SystemusersApi.md @@ -39,14 +39,14 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -102,14 +102,14 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -166,15 +166,15 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Sshkeypost.new, # Sshkeypost | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -232,14 +232,14 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -296,16 +296,16 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin @@ -364,18 +364,18 @@ end api_instance = JCAPIv1::SystemusersApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - fields: '', # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - x_org_id: '' # String | - search: 'search_example', # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. - filter: 'filter_example' # String | A filter to apply to the query. + sort: "", # String | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + fields: "", # String | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + x_org_id: "" # String | + search: "search_example", # String | A nested object containing a string `searchTerm` and a list of `fields` to search on. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -437,13 +437,13 @@ end api_instance = JCAPIv1::SystemusersApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Systemuserputpost.new, # Systemuserputpost | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -500,15 +500,15 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Systemuserput.new, # Systemuserput | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -566,13 +566,13 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -x_api_key = 'x_api_key_example' # String | +x_api_key = "x_api_key_example" # String | opts = { body: JCAPIv1::Body1.new, # Body1 | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -629,19 +629,19 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. - x_org_id: '' # String | + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. + x_org_id: "" # String | } begin @@ -703,15 +703,15 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Usersystembindingsput.new, # Usersystembindingsput | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -769,10 +769,10 @@ end api_instance = JCAPIv1::SystemusersApi.new -id = 'id_example' # String | +id = "id_example" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv1/docs/TagsApi.md b/jcapiv1/docs/TagsApi.md index 4c42692..798acd8 100644 --- a/jcapiv1/docs/TagsApi.md +++ b/jcapiv1/docs/TagsApi.md @@ -32,11 +32,11 @@ end api_instance = JCAPIv1::TagsApi.new -name = 'name_example' # String | +name = "name_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | begin @@ -92,18 +92,18 @@ end api_instance = JCAPIv1::TagsApi.new -name = 'name_example' # String | +name = "name_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -164,16 +164,16 @@ end api_instance = JCAPIv1::TagsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: '', # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. + fields: "", # String | Use a space seperated string of field parameters to include the data in the response. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: '', # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. - filter: 'filter_example' # String | A filter to apply to the query. + sort: "", # String | Use space separated sort parameters to sort the collection. Default sort is ascending. Prefix with `-` to sort descending. + filter: "filter_example" # String | A filter to apply to the query. } begin @@ -233,9 +233,9 @@ end api_instance = JCAPIv1::TagsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Tagpost.new # Tagpost | @@ -294,11 +294,11 @@ end api_instance = JCAPIv1::TagsApi.new -name = 'name_example' # String | +name = "name_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv1::Tagput.new # Tagput | diff --git a/jcapiv1/jcapiv1.gemspec b/jcapiv1/jcapiv1.gemspec index 852c9d8..1102153 100644 --- a/jcapiv1/jcapiv1.gemspec +++ b/jcapiv1/jcapiv1.gemspec @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- - +# =begin #JumpCloud APIs @@ -8,7 +8,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -24,7 +24,8 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/swagger-api/swagger-codegen" s.summary = "JumpCloud APIs Ruby Gem" s.description = " JumpCloud's V1 API. This set of endpoints allows JumpCloud customers to manage commands, systems, & system users." - s.license = "Unlicense" + # TODO uncommnet and update below with a proper license + #s.license = "Apache 2.0" s.required_ruby_version = ">= 1.9" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' @@ -38,7 +39,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16' s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12' - s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } + s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] s.require_paths = ["lib"] diff --git a/jcapiv1/lib/jcapiv1.rb b/jcapiv1/lib/jcapiv1.rb index c3b06be..eced466 100644 --- a/jcapiv1/lib/jcapiv1.rb +++ b/jcapiv1/lib/jcapiv1.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end diff --git a/jcapiv1/lib/jcapiv1/api/applications_api.rb b/jcapiv1/lib/jcapiv1/api/applications_api.rb index 4bf9eaa..04086cd 100644 --- a/jcapiv1/lib/jcapiv1/api/applications_api.rb +++ b/jcapiv1/lib/jcapiv1/api/applications_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class ApplicationsApi @@ -19,6 +19,7 @@ class ApplicationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Applications # The endpoint returns all your SSO / SAML Applications. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -33,7 +34,7 @@ def initialize(api_client = ApiClient.default) # @return [Applicationslist] def applications_list(content_type, accept, opts = {}) data, _status_code, _headers = applications_list_with_http_info(content_type, accept, opts) - data + return data end # Applications @@ -50,7 +51,7 @@ def applications_list(content_type, accept, opts = {}) # @return [Array<(Applicationslist, Fixnum, Hash)>] Applicationslist data, response status code and response headers def applications_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ApplicationsApi.applications_list ...' + @api_client.config.logger.debug "Calling API: ApplicationsApi.applications_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -61,7 +62,7 @@ def applications_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.applications_list" end # resource path - local_var_path = '/applications' + local_var_path = "/applications" # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/command_results_api.rb b/jcapiv1/lib/jcapiv1/api/command_results_api.rb index 9adb0d9..4b81174 100644 --- a/jcapiv1/lib/jcapiv1/api/command_results_api.rb +++ b/jcapiv1/lib/jcapiv1/api/command_results_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class CommandResultsApi @@ -19,6 +19,7 @@ class CommandResultsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Delete a Command result # This endpoint deletes a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ```` # @param id @@ -29,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [Commandresult] def command_results_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = command_results_delete_with_http_info(id, content_type, accept, opts) - data + return data end # Delete a Command result @@ -42,7 +43,7 @@ def command_results_delete(id, content_type, accept, opts = {}) # @return [Array<(Commandresult, Fixnum, Hash)>] Commandresult data, response status code and response headers def command_results_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandResultsApi.command_results_delete ...' + @api_client.config.logger.debug "Calling API: CommandResultsApi.command_results_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -57,7 +58,7 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandResultsApi.command_results_delete" end # resource path - local_var_path = '/commandresults/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/commandresults/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -90,6 +91,7 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List an individual Command result # This endpoint returns a specific command result. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults/{CommandResultID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -102,7 +104,7 @@ def command_results_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Commandresult] def command_results_get(id, content_type, accept, opts = {}) data, _status_code, _headers = command_results_get_with_http_info(id, content_type, accept, opts) - data + return data end # List an individual Command result @@ -117,7 +119,7 @@ def command_results_get(id, content_type, accept, opts = {}) # @return [Array<(Commandresult, Fixnum, Hash)>] Commandresult data, response status code and response headers def command_results_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandResultsApi.command_results_get ...' + @api_client.config.logger.debug "Calling API: CommandResultsApi.command_results_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -132,7 +134,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandResultsApi.command_results_get" end # resource path - local_var_path = '/commandresults/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/commandresults/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -167,6 +169,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List all Command Results # This endpoint returns all command results. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commandresults \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key:{API_KEY}' ``` # @param content_type @@ -181,7 +184,7 @@ def command_results_get_with_http_info(id, content_type, accept, opts = {}) # @return [Commandresultslist] def command_results_list(content_type, accept, opts = {}) data, _status_code, _headers = command_results_list_with_http_info(content_type, accept, opts) - data + return data end # List all Command Results @@ -198,7 +201,7 @@ def command_results_list(content_type, accept, opts = {}) # @return [Array<(Commandresultslist, Fixnum, Hash)>] Commandresultslist data, response status code and response headers def command_results_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandResultsApi.command_results_list ...' + @api_client.config.logger.debug "Calling API: CommandResultsApi.command_results_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -209,7 +212,7 @@ def command_results_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandResultsApi.command_results_list" end # resource path - local_var_path = '/commandresults' + local_var_path = "/commandresults" # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb b/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb index 4b2a6cf..fa5d935 100644 --- a/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/command_triggers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class CommandTriggersApi @@ -19,6 +19,7 @@ class CommandTriggersApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Launch a command via a Trigger # This endpoint allows you to launch a command based on a defined trigger. #### Sample Requests **Launch a Command via a Trigger** ``` curl --silent \\ -X 'POST' \\ -H \"x-api-key: {API_KEY}\" \\ \"https://console.jumpcloud.com/api/command/trigger/{TriggerName}\" ``` **Launch a Command via a Trigger passing a JSON object to the command** ``` curl --silent \\ -X 'POST' \\ -H \"x-api-key: {API_KEY}\" \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -d '{ \"srcip\":\"192.168.2.32\", \"attack\":\"Cross Site Scripting Attempt\" }' \\ \"https://console.jumpcloud.com/api/command/trigger/{TriggerName}\" ``` # @param triggername @@ -29,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def command_trigger_webhook_post(triggername, content_type, accept, opts = {}) command_trigger_webhook_post_with_http_info(triggername, content_type, accept, opts) - nil + return nil end # Launch a command via a Trigger @@ -42,7 +43,7 @@ def command_trigger_webhook_post(triggername, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def command_trigger_webhook_post_with_http_info(triggername, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandTriggersApi.command_trigger_webhook_post ...' + @api_client.config.logger.debug "Calling API: CommandTriggersApi.command_trigger_webhook_post ..." end # verify the required parameter 'triggername' is set if @api_client.config.client_side_validation && triggername.nil? @@ -57,7 +58,7 @@ def command_trigger_webhook_post_with_http_info(triggername, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling CommandTriggersApi.command_trigger_webhook_post" end # resource path - local_var_path = '/command/trigger/{triggername}'.sub('{' + 'triggername' + '}', triggername.to_s) + local_var_path = "/command/trigger/{triggername}".sub('{' + 'triggername' + '}', triggername.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/commands_api.rb b/jcapiv1/lib/jcapiv1/api/commands_api.rb index fc62a34..cebe2d5 100644 --- a/jcapiv1/lib/jcapiv1/api/commands_api.rb +++ b/jcapiv1/lib/jcapiv1/api/commands_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class CommandsApi @@ -19,6 +19,7 @@ class CommandsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Get a Command File # This endpoint returns the uploaded file(s) associated with a specific command. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/files/command/{commandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Commandfilereturn] def command_file_get(id, content_type, accept, opts = {}) data, _status_code, _headers = command_file_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get a Command File @@ -48,7 +49,7 @@ def command_file_get(id, content_type, accept, opts = {}) # @return [Array<(Commandfilereturn, Fixnum, Hash)>] Commandfilereturn data, response status code and response headers def command_file_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.command_file_get ...' + @api_client.config.logger.debug "Calling API: CommandsApi.command_file_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -63,7 +64,7 @@ def command_file_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.command_file_get" end # resource path - local_var_path = '/files/command/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/files/command/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -99,6 +100,7 @@ def command_file_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Delete a Command # This endpoint deletes a specific command based on the Command ID. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -109,7 +111,7 @@ def command_file_get_with_http_info(id, content_type, accept, opts = {}) # @return [nil] def commands_delete(id, content_type, accept, opts = {}) commands_delete_with_http_info(id, content_type, accept, opts) - nil + return nil end # Delete a Command @@ -122,7 +124,7 @@ def commands_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def commands_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.commands_delete ...' + @api_client.config.logger.debug "Calling API: CommandsApi.commands_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -137,7 +139,7 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_delete" end # resource path - local_var_path = '/commands/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/commands/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -169,6 +171,7 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List an individual Command # This endpoint returns a specific command based on the command ID. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -181,7 +184,7 @@ def commands_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Command] def commands_get(id, content_type, accept, opts = {}) data, _status_code, _headers = commands_get_with_http_info(id, content_type, accept, opts) - data + return data end # List an individual Command @@ -196,7 +199,7 @@ def commands_get(id, content_type, accept, opts = {}) # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.commands_get ...' + @api_client.config.logger.debug "Calling API: CommandsApi.commands_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -211,7 +214,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_get" end # resource path - local_var_path = '/commands/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/commands/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -246,6 +249,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List All Commands # This endpoint returns all commands. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/commands/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -260,7 +264,7 @@ def commands_get_with_http_info(id, content_type, accept, opts = {}) # @return [Commandslist] def commands_list(content_type, accept, opts = {}) data, _status_code, _headers = commands_list_with_http_info(content_type, accept, opts) - data + return data end # List All Commands @@ -277,7 +281,7 @@ def commands_list(content_type, accept, opts = {}) # @return [Array<(Commandslist, Fixnum, Hash)>] Commandslist data, response status code and response headers def commands_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.commands_list ...' + @api_client.config.logger.debug "Calling API: CommandsApi.commands_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -288,7 +292,7 @@ def commands_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_list" end # resource path - local_var_path = '/commands/' + local_var_path = "/commands/" # query parameters query_params = {} @@ -326,6 +330,7 @@ def commands_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create A Command # This endpoint allows you to create a new command. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/commands/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\":\"Test API Command\", \"command\":\"String\", \"user\":\"{UserID}\", \"schedule\":\"\", \"timeout\":\"100\" }' ``` # @param content_type @@ -336,7 +341,7 @@ def commands_list_with_http_info(content_type, accept, opts = {}) # @return [Command] def commands_post(content_type, accept, opts = {}) data, _status_code, _headers = commands_post_with_http_info(content_type, accept, opts) - data + return data end # Create A Command @@ -349,7 +354,7 @@ def commands_post(content_type, accept, opts = {}) # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.commands_post ...' + @api_client.config.logger.debug "Calling API: CommandsApi.commands_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -360,7 +365,7 @@ def commands_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_post" end # resource path - local_var_path = '/commands/' + local_var_path = "/commands/" # query parameters query_params = {} @@ -393,6 +398,7 @@ def commands_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update a Command # This endpoint Updates a command based on the command ID and returns the modified command record. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/commands/{CommandID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\":\"Test API Command\", \"command\":\"String\", \"user\":\"{UserID}\", \"schedule\":\"\", \"timeout\":\"100\" }' ``` # @param id @@ -404,7 +410,7 @@ def commands_post_with_http_info(content_type, accept, opts = {}) # @return [Command] def commands_put(id, content_type, accept, opts = {}) data, _status_code, _headers = commands_put_with_http_info(id, content_type, accept, opts) - data + return data end # Update a Command @@ -418,7 +424,7 @@ def commands_put(id, content_type, accept, opts = {}) # @return [Array<(Command, Fixnum, Hash)>] Command data, response status code and response headers def commands_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.commands_put ...' + @api_client.config.logger.debug "Calling API: CommandsApi.commands_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -433,7 +439,7 @@ def commands_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.commands_put" end # resource path - local_var_path = '/commands/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/commands/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/organizations_api.rb b/jcapiv1/lib/jcapiv1/api/organizations_api.rb index 2b0f2eb..55dbf4c 100644 --- a/jcapiv1/lib/jcapiv1/api/organizations_api.rb +++ b/jcapiv1/lib/jcapiv1/api/organizations_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class OrganizationsApi @@ -19,6 +19,7 @@ class OrganizationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Get Organization Details # This endpoint returns Organization Details. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -33,7 +34,7 @@ def initialize(api_client = ApiClient.default) # @return [Organizationslist] def organization_list(content_type, accept, opts = {}) data, _status_code, _headers = organization_list_with_http_info(content_type, accept, opts) - data + return data end # Get Organization Details @@ -50,7 +51,7 @@ def organization_list(content_type, accept, opts = {}) # @return [Array<(Organizationslist, Fixnum, Hash)>] Organizationslist data, response status code and response headers def organization_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: OrganizationsApi.organization_list ...' + @api_client.config.logger.debug "Calling API: OrganizationsApi.organization_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -61,7 +62,7 @@ def organization_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling OrganizationsApi.organization_list" end # resource path - local_var_path = '/organizations' + local_var_path = "/organizations" # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb index 5139e2c..2d22442 100644 --- a/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/radius_servers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class RadiusServersApi @@ -19,6 +19,7 @@ class RadiusServersApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List Radius Servers # This endpoint allows you to get a list of all RADIUS servers in your organization. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/radiusservers/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ ``` # @param content_type @@ -33,7 +34,7 @@ def initialize(api_client = ApiClient.default) # @return [Radiusserverslist] def radius_servers_list(content_type, accept, opts = {}) data, _status_code, _headers = radius_servers_list_with_http_info(content_type, accept, opts) - data + return data end # List Radius Servers @@ -50,7 +51,7 @@ def radius_servers_list(content_type, accept, opts = {}) # @return [Array<(Radiusserverslist, Fixnum, Hash)>] Radiusserverslist data, response status code and response headers def radius_servers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RadiusServersApi.radius_servers_list ...' + @api_client.config.logger.debug "Calling API: RadiusServersApi.radius_servers_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -61,7 +62,7 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling RadiusServersApi.radius_servers_list" end # resource path - local_var_path = '/radiusservers' + local_var_path = "/radiusservers" # query parameters query_params = {} @@ -99,6 +100,7 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create a Radius Server # This endpoint allows you to create RADIUS servers in your organization. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/radiusservers/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{test_radius}\", \"networkSourceIp\": \"{0.0.0.0}\", \"sharedSecret\":\"{secretpassword}\" }' ``` # @param content_type @@ -109,7 +111,7 @@ def radius_servers_list_with_http_info(content_type, accept, opts = {}) # @return [Radiusserverslist] def radius_servers_post(content_type, accept, opts = {}) data, _status_code, _headers = radius_servers_post_with_http_info(content_type, accept, opts) - data + return data end # Create a Radius Server @@ -122,7 +124,7 @@ def radius_servers_post(content_type, accept, opts = {}) # @return [Array<(Radiusserverslist, Fixnum, Hash)>] Radiusserverslist data, response status code and response headers def radius_servers_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RadiusServersApi.radius_servers_post ...' + @api_client.config.logger.debug "Calling API: RadiusServersApi.radius_servers_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -133,7 +135,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling RadiusServersApi.radius_servers_post" end # resource path - local_var_path = '/radiusservers' + local_var_path = "/radiusservers" # query parameters query_params = {} @@ -166,6 +168,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update Radius Servers # This endpoint allows you to update RADIUS servers in your organization. #### ``` curl -X PUT https://console.jumpcloud.com/api/radiusservers/{ServerID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{name_update}\", \"networkSourceIp\": \"{0.0.0.0}\" }' ``` # @param content_type @@ -176,7 +179,7 @@ def radius_servers_post_with_http_info(content_type, accept, opts = {}) # @return [Radiusserverput] def radius_servers_put(content_type, accept, opts = {}) data, _status_code, _headers = radius_servers_put_with_http_info(content_type, accept, opts) - data + return data end # Update Radius Servers @@ -189,7 +192,7 @@ def radius_servers_put(content_type, accept, opts = {}) # @return [Array<(Radiusserverput, Fixnum, Hash)>] Radiusserverput data, response status code and response headers def radius_servers_put_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RadiusServersApi.radius_servers_put ...' + @api_client.config.logger.debug "Calling API: RadiusServersApi.radius_servers_put ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -200,7 +203,7 @@ def radius_servers_put_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling RadiusServersApi.radius_servers_put" end # resource path - local_var_path = '/radiusservers:id' + local_var_path = "/radiusservers:id" # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/search_api.rb b/jcapiv1/lib/jcapiv1/api/search_api.rb index a52c465..1c2ef7c 100644 --- a/jcapiv1/lib/jcapiv1/api/search_api.rb +++ b/jcapiv1/lib/jcapiv1/api/search_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class SearchApi @@ -19,6 +19,7 @@ class SearchApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Search Organizations # This endpoint will return Organization data based on your search parameters. This endpoint WILL NOT allow you to add a new Organization. You can use the supported parameters and pass those in the body of request. The parameters must be passed as Content-Type application/json. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/search/organizations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"search\":{ \"fields\" : [\"settings.name\"], \"searchTerm\": \"Second\" }, \"fields\": [\"_id\", \"displayName\", \"logoUrl\"], \"limit\" : 0, \"skip\" : 0 }' ``` # @param content_type @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Organizationslist] def search_organizations_post(content_type, accept, opts = {}) data, _status_code, _headers = search_organizations_post_with_http_info(content_type, accept, opts) - data + return data end # Search Organizations @@ -48,7 +49,7 @@ def search_organizations_post(content_type, accept, opts = {}) # @return [Array<(Organizationslist, Fixnum, Hash)>] Organizationslist data, response status code and response headers def search_organizations_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SearchApi.search_organizations_post ...' + @api_client.config.logger.debug "Calling API: SearchApi.search_organizations_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -59,7 +60,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SearchApi.search_organizations_post" end # resource path - local_var_path = '/search/organizations' + local_var_path = "/search/organizations" # query parameters query_params = {} @@ -95,6 +96,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Search Systems # Return Systems in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of hostnames ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\": { \"or\": [ {\"hostname\" : \"my-hostname\"}, {\"hostname\" : \"other-hostname\"} ] }, \"fields\" : \"os hostname displayName\" }' ``` Text search for a hostname or display name ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"fields\": \"os hostname displayName\" }' ``` Combining `filter` and `searchFilter` to search for names that match a given OS ``` curl -X POST https://console.jumpcloud.com/api/search/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"my-host\", \"fields\": [\"hostname\", \"displayName\"] }, \"filter\": { \"or\": [ {\"os\" : \"Ubuntu\"}, {\"os\" : \"Mac OS X\"} ] }, \"fields\": \"os hostname displayName\" }' ``` # @param content_type @@ -109,7 +111,7 @@ def search_organizations_post_with_http_info(content_type, accept, opts = {}) # @return [Systemslist] def search_systems_post(content_type, accept, opts = {}) data, _status_code, _headers = search_systems_post_with_http_info(content_type, accept, opts) - data + return data end # Search Systems @@ -126,7 +128,7 @@ def search_systems_post(content_type, accept, opts = {}) # @return [Array<(Systemslist, Fixnum, Hash)>] Systemslist data, response status code and response headers def search_systems_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SearchApi.search_systems_post ...' + @api_client.config.logger.debug "Calling API: SearchApi.search_systems_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -137,7 +139,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SearchApi.search_systems_post" end # resource path - local_var_path = '/search/systems' + local_var_path = "/search/systems" # query parameters query_params = {} @@ -174,6 +176,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Search System Users # Return System Users in multi-record format allowing for the passing of the `filter` and `searchFilter` parameters. This WILL NOT allow you to add a new system user. To support advanced filtering you can use the `filter` and `searchFilter` parameters that can only be passed in the body of POST /api/search/* routes. The `filter` and `searchFilter` parameters must be passed as Content-Type application/json. The `filter` parameter is an object with a single property, either `and` or `or` with the value of the property being an array of query expressions. This allows you to filter records using the logic of matching ALL or ANY records in the array of query expressions. If the `and` or `or` are not included the default behavior is to match ALL query expressions. The `searchFilter` parameter allows text searching on supported fields by specifying a `searchTerm` and a list of `fields` to query on. If any `field` has a partial text match on the`searchTerm` the record will be returned. #### Sample Request Exact search for a list of system users in a department ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"filter\" : [{\"department\" : \"IT\"}], \"fields\" : \"email username sudo\" }' ``` Text search for system users with and email on a domain ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\" : { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"fields\" : \"email username sudo\" }' ``` Combining `filter` and `searchFilter` to text search for system users with and email on a domain who are in a list of departments ``` curl -X POST https://console.jumpcloud.com/api/search/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"searchFilter\": { \"searchTerm\": \"@jumpcloud.com\", \"fields\": [\"email\"] }, \"filter\": { \"or\": [ {\"department\" : \"IT\"}, {\"department\" : \"Sales\"} ] }, \"fields\" : \"email username sudo\" }' ``` # @param content_type @@ -188,7 +191,7 @@ def search_systems_post_with_http_info(content_type, accept, opts = {}) # @return [Systemuserslist] def search_systemusers_post(content_type, accept, opts = {}) data, _status_code, _headers = search_systemusers_post_with_http_info(content_type, accept, opts) - data + return data end # Search System Users @@ -205,7 +208,7 @@ def search_systemusers_post(content_type, accept, opts = {}) # @return [Array<(Systemuserslist, Fixnum, Hash)>] Systemuserslist data, response status code and response headers def search_systemusers_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SearchApi.search_systemusers_post ...' + @api_client.config.logger.debug "Calling API: SearchApi.search_systemusers_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -216,7 +219,7 @@ def search_systemusers_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SearchApi.search_systemusers_post" end # resource path - local_var_path = '/search/systemusers' + local_var_path = "/search/systemusers" # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/systems_api.rb b/jcapiv1/lib/jcapiv1/api/systems_api.rb index d9047dc..78b98bd 100644 --- a/jcapiv1/lib/jcapiv1/api/systems_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systems_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class SystemsApi @@ -19,6 +19,7 @@ class SystemsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Delete a System # This endpoint allows you to delete a system. This command will cause the system to uninstall the JumpCloud agent from its self which can can take about a minute. If the system is not connected to JumpCloud the system record will simply be removed. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -31,7 +32,7 @@ def initialize(api_client = ApiClient.default) # @return [System] def systems_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = systems_delete_with_http_info(id, content_type, accept, opts) - data + return data end # Delete a System @@ -46,7 +47,7 @@ def systems_delete(id, content_type, accept, opts = {}) # @return [Array<(System, Fixnum, Hash)>] System data, response status code and response headers def systems_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_delete ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -61,7 +62,7 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_delete" end # resource path - local_var_path = '/systems/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systems/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -96,6 +97,7 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List an individual system # This endpoint returns an individual system. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -110,7 +112,7 @@ def systems_delete_with_http_info(id, content_type, accept, opts = {}) # @return [System] def systems_get(id, content_type, accept, opts = {}) data, _status_code, _headers = systems_get_with_http_info(id, content_type, accept, opts) - data + return data end # List an individual system @@ -127,7 +129,7 @@ def systems_get(id, content_type, accept, opts = {}) # @return [Array<(System, Fixnum, Hash)>] System data, response status code and response headers def systems_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_get ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -142,7 +144,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_get" end # resource path - local_var_path = '/systems/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systems/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -179,6 +181,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List All Systems # This endpoint returns all Systems. #### Sample Requests ``` curl -X GET https://console.jumpcloud.com/api/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -194,7 +197,7 @@ def systems_get_with_http_info(id, content_type, accept, opts = {}) # @return [Systemslist] def systems_list(content_type, accept, opts = {}) data, _status_code, _headers = systems_list_with_http_info(content_type, accept, opts) - data + return data end # List All Systems @@ -212,7 +215,7 @@ def systems_list(content_type, accept, opts = {}) # @return [Array<(Systemslist, Fixnum, Hash)>] Systemslist data, response status code and response headers def systems_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_list ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -223,7 +226,7 @@ def systems_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_list" end # resource path - local_var_path = '/systems' + local_var_path = "/systems" # query parameters query_params = {} @@ -262,6 +265,7 @@ def systems_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update a system # This endpoint allows you to update a system. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/systems/{SystemID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"displayName\":\"Name_Update\", \"allowSshPasswordAuthentication\":\"true\", \"allowSshRootLogin\":\"true\", \"allowMultiFactorAuthentication\":\"true\", \"allowPublicKeyAuthentication\":\"false\" }' ``` # @param id @@ -275,7 +279,7 @@ def systems_list_with_http_info(content_type, accept, opts = {}) # @return [nil] def systems_put(id, content_type, accept, opts = {}) systems_put_with_http_info(id, content_type, accept, opts) - nil + return nil end # Update a system @@ -291,7 +295,7 @@ def systems_put(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def systems_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_put ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -306,7 +310,7 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_put" end # resource path - local_var_path = '/systems/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systems/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -340,6 +344,7 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List system user bindings # Hidden as Tags is deprecated List system user bindings for a specific system in a system and user binding format. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). #### Sample Request *List system user bindings for specific system* ``` curl -X https://console.jumpcloud.com/api/systems/{SystemID}/systemusers\\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ \" ``` # @param id @@ -355,7 +360,7 @@ def systems_put_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserbinding] def systems_systemusers_binding_list(id, content_type, accept, opts = {}) data, _status_code, _headers = systems_systemusers_binding_list_with_http_info(id, content_type, accept, opts) - data + return data end # List system user bindings @@ -373,7 +378,7 @@ def systems_systemusers_binding_list(id, content_type, accept, opts = {}) # @return [Array<(Systemuserbinding, Fixnum, Hash)>] Systemuserbinding data, response status code and response headers def systems_systemusers_binding_list_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_systemusers_binding_list ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_systemusers_binding_list ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -388,7 +393,7 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_systemusers_binding_list" end # resource path - local_var_path = '/systems/{id}/systemusers'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systems/{id}/systemusers".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -426,6 +431,7 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op end return data, status_code, headers end + # Update a system's or user's binding # Hidden as Tags is deprecated Adds or removes a user binding for a system. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). #### Sample Request *Add (or remove) a system user to (from) a system* ``` curl \\ -d '{ \"add\": [\"[SYSTEM_USER_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_USER_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systems/[SYSTEM_ID_HERE]/systemusers # @param id @@ -437,7 +443,7 @@ def systems_systemusers_binding_list_with_http_info(id, content_type, accept, op # @return [nil] def systems_systemusers_binding_put(id, content_type, accept, opts = {}) systems_systemusers_binding_put_with_http_info(id, content_type, accept, opts) - nil + return nil end # Update a system's or user's binding @@ -451,7 +457,7 @@ def systems_systemusers_binding_put(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def systems_systemusers_binding_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_systemusers_binding_put ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_systemusers_binding_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -466,7 +472,7 @@ def systems_systemusers_binding_put_with_http_info(id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.systems_systemusers_binding_put" end # resource path - local_var_path = '/systems/{id}/systemusers'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systems/{id}/systemusers".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb index 597778b..c97e71b 100644 --- a/jcapiv1/lib/jcapiv1/api/systemusers_api.rb +++ b/jcapiv1/lib/jcapiv1/api/systemusers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class SystemusersApi @@ -19,6 +19,7 @@ class SystemusersApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Delete a system user's Public SSH Keys # This endpoint will delete a specific System User's SSH Key. # @param id @@ -29,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def sshkey_delete(id, content_type, accept, opts = {}) sshkey_delete_with_http_info(id, content_type, accept, opts) - nil + return nil end # Delete a system user's Public SSH Keys @@ -42,7 +43,7 @@ def sshkey_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.sshkey_delete ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.sshkey_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -57,7 +58,7 @@ def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.sshkey_delete" end # resource path - local_var_path = '/systemusers/{id}/sshkeys/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/sshkeys/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -89,6 +90,7 @@ def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List a system user's public SSH keys # This endpoint will return a specific System User's public SSH key. # @param id @@ -99,7 +101,7 @@ def sshkey_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Sshkeylist] def sshkey_list(id, content_type, accept, opts = {}) data, _status_code, _headers = sshkey_list_with_http_info(id, content_type, accept, opts) - data + return data end # List a system user's public SSH keys @@ -112,7 +114,7 @@ def sshkey_list(id, content_type, accept, opts = {}) # @return [Array<(Sshkeylist, Fixnum, Hash)>] Sshkeylist data, response status code and response headers def sshkey_list_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.sshkey_list ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.sshkey_list ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -127,7 +129,7 @@ def sshkey_list_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.sshkey_list" end # resource path - local_var_path = '/systemusers/{id}/sshkeys'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/sshkeys".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -160,6 +162,7 @@ def sshkey_list_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Create a system user's Public SSH Key # This endpoint will create a specific System User's Public SSH Key. # @param id @@ -171,7 +174,7 @@ def sshkey_list_with_http_info(id, content_type, accept, opts = {}) # @return [Sshkeylist] def sshkey_post(id, content_type, accept, opts = {}) data, _status_code, _headers = sshkey_post_with_http_info(id, content_type, accept, opts) - data + return data end # Create a system user's Public SSH Key @@ -185,7 +188,7 @@ def sshkey_post(id, content_type, accept, opts = {}) # @return [Array<(Sshkeylist, Fixnum, Hash)>] Sshkeylist data, response status code and response headers def sshkey_post_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.sshkey_post ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.sshkey_post ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -200,7 +203,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.sshkey_post" end # resource path - local_var_path = '/systemusers/{id}/sshkeys'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/sshkeys".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -233,6 +236,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Delete a system user # This endpoint allows you to delete a particular system user. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -243,7 +247,7 @@ def sshkey_post_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_delete_with_http_info(id, content_type, accept, opts) - data + return data end # Delete a system user @@ -256,7 +260,7 @@ def systemusers_delete(id, content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_delete ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -271,7 +275,7 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_delete" end # resource path - local_var_path = '/systemusers/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -304,6 +308,7 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List a system user # This endpoint returns a particular System User. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -316,7 +321,7 @@ def systemusers_delete_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_get(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_get_with_http_info(id, content_type, accept, opts) - data + return data end # List a system user @@ -331,7 +336,7 @@ def systemusers_get(id, content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_get ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -346,7 +351,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_get" end # resource path - local_var_path = '/systemusers/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -381,6 +386,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List all system users # This endpoint returns all systemusers. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type @@ -396,7 +402,7 @@ def systemusers_get_with_http_info(id, content_type, accept, opts = {}) # @return [Systemuserslist] def systemusers_list(content_type, accept, opts = {}) data, _status_code, _headers = systemusers_list_with_http_info(content_type, accept, opts) - data + return data end # List all system users @@ -414,7 +420,7 @@ def systemusers_list(content_type, accept, opts = {}) # @return [Array<(Systemuserslist, Fixnum, Hash)>] Systemuserslist data, response status code and response headers def systemusers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_list ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -425,7 +431,7 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_list" end # resource path - local_var_path = '/systemusers' + local_var_path = "/systemusers" # query parameters query_params = {} @@ -464,6 +470,7 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create a system user # This endpoint allows you to create a new system user. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/systemusers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"username\":\"{username}\", \"email\":\"{email_address}\", \"firstname\":\"{Name}\", \"lastname\":\"{Name}\" }' ``` # @param content_type @@ -474,7 +481,7 @@ def systemusers_list_with_http_info(content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_post(content_type, accept, opts = {}) data, _status_code, _headers = systemusers_post_with_http_info(content_type, accept, opts) - data + return data end # Create a system user @@ -487,7 +494,7 @@ def systemusers_post(content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_post ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -498,7 +505,7 @@ def systemusers_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_post" end # resource path - local_var_path = '/systemusers' + local_var_path = "/systemusers" # query parameters query_params = {} @@ -531,6 +538,7 @@ def systemusers_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update a system user # This endpoint allows you to update a system user. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/systemusers/{UserID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"email\":\"{email_address}\", \"firstname\":\"{Name}\", \"lastname\":\"{Name}\" }' ``` # @param id @@ -542,7 +550,7 @@ def systemusers_post_with_http_info(content_type, accept, opts = {}) # @return [Systemuserreturn] def systemusers_put(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_put_with_http_info(id, content_type, accept, opts) - data + return data end # Update a system user @@ -556,7 +564,7 @@ def systemusers_put(id, content_type, accept, opts = {}) # @return [Array<(Systemuserreturn, Fixnum, Hash)>] Systemuserreturn data, response status code and response headers def systemusers_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_put ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -571,7 +579,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_put" end # resource path - local_var_path = '/systemusers/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -604,6 +612,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Reset a system user's MFA token # This endpoint allows you to reset the MFA TOTP token for a specified system user and put them in an MFA enrollment period. This will result in the user being prompted to setup MFA when logging into userportal. Please be aware that if the user does not complete MFA setup before the `exclusionUntil` date, they will be locked out of any resources that require MFA. Please refer to our [Knowledge Base Article](https://support.jumpcloud.com/customer/en/portal/articles/2959138-using-multifactor-authentication-with-jumpcloud) on setting up MFA for more information. #### Sample Request ``` curl -X POST \\ https://console.jumpcloud.com/api/systemusers/{UserID}/resetmfa \\ -H 'x-api-key: {API_KEY}' \\ -H 'Content-Type: application/json' \\ -d '{\"exclusion\": true, \"exclusionUntil\": \"{date-time}\"}' ``` # @param id @@ -614,7 +623,7 @@ def systemusers_put_with_http_info(id, content_type, accept, opts = {}) # @return [String] def systemusers_resetmfa(id, x_api_key, opts = {}) data, _status_code, _headers = systemusers_resetmfa_with_http_info(id, x_api_key, opts) - data + return data end # Reset a system user's MFA token @@ -627,7 +636,7 @@ def systemusers_resetmfa(id, x_api_key, opts = {}) # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_resetmfa ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_resetmfa ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -638,7 +647,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) fail ArgumentError, "Missing the required parameter 'x_api_key' when calling SystemusersApi.systemusers_resetmfa" end # resource path - local_var_path = '/systemusers/{id}/resetmfa'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/resetmfa".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -670,6 +679,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) end return data, status_code, headers end + # List system user binding # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). List system bindings for a specific system user in a system and user binding format. ### Examples #### List system bindings for specific system user ``` curl \\ -H 'Content-Type: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id @@ -685,7 +695,7 @@ def systemusers_resetmfa_with_http_info(id, x_api_key, opts = {}) # @return [Object] def systemusers_systems_binding_list(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_systems_binding_list_with_http_info(id, content_type, accept, opts) - data + return data end # List system user binding @@ -703,7 +713,7 @@ def systemusers_systems_binding_list(id, content_type, accept, opts = {}) # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def systemusers_systems_binding_list_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_systems_binding_list ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_systems_binding_list ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -718,7 +728,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_systems_binding_list" end # resource path - local_var_path = '/systemusers/{id}/systems'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/systems".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -756,6 +766,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op end return data, status_code, headers end + # Update a system user binding # Hidden as Tags is deprecated Adds or removes a system binding for a user. This endpoint is only used for users still using JumpCloud Tags. If you are using JumpCloud Groups please refer to the documentation found [here](https://docs.jumpcloud.com/2.0/systems/manage-associations-of-a-system). ### Example #### Add (or remove) system to system user ``` curl \\ -d '{ \"add\": [\"[SYSTEM_ID_TO_ADD_HERE]\"], \"remove\": [\"[SYSTEM_ID_TO_REMOVE_HERE]\"] }' \\ -X PUT \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/systemusers/[SYSTEM_USER_ID_HERE]/systems\" ``` # @param id @@ -767,7 +778,7 @@ def systemusers_systems_binding_list_with_http_info(id, content_type, accept, op # @return [Usersystembinding] def systemusers_systems_binding_put(id, content_type, accept, opts = {}) data, _status_code, _headers = systemusers_systems_binding_put_with_http_info(id, content_type, accept, opts) - data + return data end # Update a system user binding @@ -781,7 +792,7 @@ def systemusers_systems_binding_put(id, content_type, accept, opts = {}) # @return [Array<(Usersystembinding, Fixnum, Hash)>] Usersystembinding data, response status code and response headers def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_systems_binding_put ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_systems_binding_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -796,7 +807,7 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling SystemusersApi.systemusers_systems_binding_put" end # resource path - local_var_path = '/systemusers/{id}/systems'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/systems".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -829,6 +840,7 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt end return data, status_code, headers end + # Unlock a system user # This endpoint allows you to unlock a user's account. # @param id @@ -837,7 +849,7 @@ def systemusers_systems_binding_put_with_http_info(id, content_type, accept, opt # @return [nil] def systemusers_unlock(id, opts = {}) systemusers_unlock_with_http_info(id, opts) - nil + return nil end # Unlock a system user @@ -848,14 +860,14 @@ def systemusers_unlock(id, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def systemusers_unlock_with_http_info(id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemusersApi.systemusers_unlock ...' + @api_client.config.logger.debug "Calling API: SystemusersApi.systemusers_unlock ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling SystemusersApi.systemusers_unlock" end # resource path - local_var_path = '/systemusers/{id}/unlock'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemusers/{id}/unlock".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api/tags_api.rb b/jcapiv1/lib/jcapiv1/api/tags_api.rb index b8d0404..d8fb907 100644 --- a/jcapiv1/lib/jcapiv1/api/tags_api.rb +++ b/jcapiv1/lib/jcapiv1/api/tags_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv1 class TagsApi @@ -19,6 +19,7 @@ class TagsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Delete a Tag # Hidden as Tags is deprecated Delete a Tag. # @param name @@ -28,7 +29,7 @@ def initialize(api_client = ApiClient.default) # @return [Tag] def tags_delete(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_delete_with_http_info(name, content_type, accept, opts) - data + return data end # Delete a Tag @@ -40,7 +41,7 @@ def tags_delete(name, content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_delete_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TagsApi.tags_delete ...' + @api_client.config.logger.debug "Calling API: TagsApi.tags_delete ..." end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? @@ -55,7 +56,7 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_delete" end # resource path - local_var_path = '/tags/{name}'.sub('{' + 'name' + '}', name.to_s) + local_var_path = "/tags/{name}".sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} @@ -87,6 +88,7 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) end return data, status_code, headers end + # List a Tag # Hidden as Tags is deprecated Returns a specific tag. # @param name @@ -101,7 +103,7 @@ def tags_delete_with_http_info(name, content_type, accept, opts = {}) # @return [Tag] def tags_get(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_get_with_http_info(name, content_type, accept, opts) - data + return data end # List a Tag @@ -118,7 +120,7 @@ def tags_get(name, content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_get_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TagsApi.tags_get ...' + @api_client.config.logger.debug "Calling API: TagsApi.tags_get ..." end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? @@ -133,7 +135,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_get" end # resource path - local_var_path = '/Tags/{name}'.sub('{' + 'name' + '}', name.to_s) + local_var_path = "/Tags/{name}".sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} @@ -170,6 +172,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) end return data, status_code, headers end + # List All Tags # Hidden as Tags is deprecated Returns all Tags. # @param content_type @@ -183,7 +186,7 @@ def tags_get_with_http_info(name, content_type, accept, opts = {}) # @return [Tagslist] def tags_list(content_type, accept, opts = {}) data, _status_code, _headers = tags_list_with_http_info(content_type, accept, opts) - data + return data end # List All Tags @@ -199,7 +202,7 @@ def tags_list(content_type, accept, opts = {}) # @return [Array<(Tagslist, Fixnum, Hash)>] Tagslist data, response status code and response headers def tags_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TagsApi.tags_list ...' + @api_client.config.logger.debug "Calling API: TagsApi.tags_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -210,7 +213,7 @@ def tags_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_list" end # resource path - local_var_path = '/tags' + local_var_path = "/tags" # query parameters query_params = {} @@ -247,6 +250,7 @@ def tags_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create a Tag # Hidden as Tags is deprecated Create a tag. ### Examples #### Create a new Tag ``` curl \\ -d '{\"name\" : \"Developers\"}' \\ -X 'POST' \\ -H 'Content-Type: application/json' \\ -H 'Accept: application/json' \\ -H \"x-api-key: [YOUR_API_KEY_HERE]\" \\ \"https://console.jumpcloud.com/api/tags\" ``` # @param content_type @@ -256,7 +260,7 @@ def tags_list_with_http_info(content_type, accept, opts = {}) # @return [Tag] def tags_post(content_type, accept, opts = {}) data, _status_code, _headers = tags_post_with_http_info(content_type, accept, opts) - data + return data end # Create a Tag @@ -268,7 +272,7 @@ def tags_post(content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TagsApi.tags_post ...' + @api_client.config.logger.debug "Calling API: TagsApi.tags_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -279,7 +283,7 @@ def tags_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_post" end # resource path - local_var_path = '/tags' + local_var_path = "/tags" # query parameters query_params = {} @@ -311,6 +315,7 @@ def tags_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update a Tag # Hidden as Tags is deprecated Update a specific tag. # @param name @@ -321,7 +326,7 @@ def tags_post_with_http_info(content_type, accept, opts = {}) # @return [Tag] def tags_put(name, content_type, accept, opts = {}) data, _status_code, _headers = tags_put_with_http_info(name, content_type, accept, opts) - data + return data end # Update a Tag @@ -334,7 +339,7 @@ def tags_put(name, content_type, accept, opts = {}) # @return [Array<(Tag, Fixnum, Hash)>] Tag data, response status code and response headers def tags_put_with_http_info(name, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: TagsApi.tags_put ...' + @api_client.config.logger.debug "Calling API: TagsApi.tags_put ..." end # verify the required parameter 'name' is set if @api_client.config.client_side_validation && name.nil? @@ -349,7 +354,7 @@ def tags_put_with_http_info(name, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling TagsApi.tags_put" end # resource path - local_var_path = '/Tag/{name}'.sub('{' + 'name' + '}', name.to_s) + local_var_path = "/Tag/{name}".sub('{' + 'name' + '}', name.to_s) # query parameters query_params = {} diff --git a/jcapiv1/lib/jcapiv1/api_client.rb b/jcapiv1/lib/jcapiv1/api_client.rb index 029dfb0..90a6d66 100644 --- a/jcapiv1/lib/jcapiv1/api_client.rb +++ b/jcapiv1/lib/jcapiv1/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,7 +33,7 @@ def initialize(config = Configuration.default) @config = config @user_agent = "Swagger-Codegen/#{VERSION}/ruby" @default_headers = { - 'Content-Type' => 'application/json', + 'Content-Type' => "application/json", 'User-Agent' => @user_agent } end @@ -137,7 +137,7 @@ def build_request(http_method, path, opts = {}) # @param [String] mime MIME # @return [Boolean] True if the MIME is application/json def json_mime?(mime) - (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? + (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? end # Deserialize the response to the given return type. @@ -201,12 +201,12 @@ def convert_to_type(data, return_type) when /\AArray<(.+)>\z/ # e.g. Array sub_type = $1 - data.map { |item| convert_to_type(item, sub_type) } + data.map {|item| convert_to_type(item, sub_type) } when /\AHash\\z/ # e.g. Hash sub_type = $1 {}.tap do |hash| - data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } + data.each {|k, v| hash[k] = convert_to_type(v, sub_type) } end else # models, e.g. Pet @@ -228,7 +228,7 @@ def download_file(request) encoding = nil request.on_headers do |response| content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i + if content_disposition and content_disposition =~ /filename=/i filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] prefix = sanitize_filename(filename) else @@ -327,7 +327,7 @@ def select_header_accept(accepts) return nil if accepts.nil? || accepts.empty? # use JSON when present, otherwise use all of the provided json_accept = accepts.find { |s| json_mime?(s) } - json_accept || accepts.join(',') + return json_accept || accepts.join(',') end # Return Content-Type header based on an array of content types provided. @@ -338,7 +338,7 @@ def select_header_content_type(content_types) return 'application/json' if content_types.nil? || content_types.empty? # use JSON when present, otherwise use the first one json_content_type = content_types.find { |s| json_mime?(s) } - json_content_type || content_types.first + return json_content_type || content_types.first end # Convert object (array, hash, object, etc) to JSON string. @@ -348,7 +348,7 @@ def object_to_http_body(model) return model if model.nil? || model.is_a?(String) local_body = nil if model.is_a?(Array) - local_body = model.map { |m| object_to_hash(m) } + local_body = model.map{|m| object_to_hash(m) } else local_body = object_to_hash(model) end diff --git a/jcapiv1/lib/jcapiv1/api_error.rb b/jcapiv1/lib/jcapiv1/api_error.rb index 340c7bf..d8dbd8d 100644 --- a/jcapiv1/lib/jcapiv1/api_error.rb +++ b/jcapiv1/lib/jcapiv1/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end diff --git a/jcapiv1/lib/jcapiv1/configuration.rb b/jcapiv1/lib/jcapiv1/configuration.rb index 4daf4ef..cc16ca8 100644 --- a/jcapiv1/lib/jcapiv1/configuration.rb +++ b/jcapiv1/lib/jcapiv1/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -170,7 +170,7 @@ def host=(host) def base_path=(base_path) # Add leading and trailing slashes to base_path @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = '' if @base_path == '/' + @base_path = "" if @base_path == "/" end def base_url diff --git a/jcapiv1/lib/jcapiv1/models/application.rb b/jcapiv1/lib/jcapiv1/models/application.rb index caa8fa3..caad2e3 100644 --- a/jcapiv1/lib/jcapiv1/models/application.rb +++ b/jcapiv1/lib/jcapiv1/models/application.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Application attr_accessor :_id @@ -32,6 +33,7 @@ class Application attr_accessor :config + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -68,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -105,19 +107,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'config') self.config = attributes[:'config'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -158,7 +161,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -240,7 +243,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -251,5 +254,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config.rb b/jcapiv1/lib/jcapiv1/models/application_config.rb index 0d67140..23abcb0 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfig attr_accessor :idp_entity_id @@ -26,6 +27,7 @@ class ApplicationConfig attr_accessor :database_attributes + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -56,7 +58,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'idpEntityId') self.idp_entity_id = attributes[:'idpEntityId'] @@ -81,19 +83,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'databaseAttributes') self.database_attributes = attributes[:'databaseAttributes'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -131,7 +134,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -213,7 +216,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -224,5 +227,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb index e0f83fd..c9efc9e 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfigConstantAttributes attr_accessor :label @@ -32,6 +33,7 @@ class ApplicationConfigConstantAttributes attr_accessor :position + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -68,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'label') self.label = attributes[:'label'] @@ -107,19 +109,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'position') self.position = attributes[:'position'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -160,7 +163,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -242,7 +245,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -253,5 +256,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb index 8a62e77..d9f88a0 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_constant_attributes_value.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfigConstantAttributesValue attr_accessor :name @@ -24,6 +25,7 @@ class ApplicationConfigConstantAttributesValue attr_accessor :read_only + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -52,7 +54,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -73,19 +75,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'readOnly') self.read_only = attributes[:'readOnly'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -122,7 +125,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -204,7 +207,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +218,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb b/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb index 879ff16..43d2d84 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_database_attributes.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfigDatabaseAttributes attr_accessor :position + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'position') self.position = attributes[:'position'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb index 4cb088a..e11eaf9 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfigIdpEntityId attr_accessor :label @@ -30,6 +31,7 @@ class ApplicationConfigIdpEntityId attr_accessor :position + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +66,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'label') self.label = attributes[:'label'] @@ -97,19 +99,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'position') self.position = attributes[:'position'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -149,7 +152,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -231,7 +234,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -242,5 +245,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb index cba842a..446864e 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfigIdpEntityIdTooltip attr_accessor :template attr_accessor :variables + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'template') self.template = attributes[:'template'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'variables') self.variables = attributes[:'variables'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb index 6ea607e..bfccb4a 100644 --- a/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb +++ b/jcapiv1/lib/jcapiv1/models/application_config_idp_entity_id_tooltip_variables.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class ApplicationConfigIdpEntityIdTooltipVariables attr_accessor :icon attr_accessor :message + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'icon') self.icon = attributes[:'icon'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'message') self.message = attributes[:'message'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/applicationslist.rb b/jcapiv1/lib/jcapiv1/models/applicationslist.rb index c960a58..6edd545 100644 --- a/jcapiv1/lib/jcapiv1/models/applicationslist.rb +++ b/jcapiv1/lib/jcapiv1/models/applicationslist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Applicationslist # The total number of applications. attr_accessor :total_count @@ -20,6 +21,7 @@ class Applicationslist # The list of applications. attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,19 +55,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -99,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +195,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/body.rb b/jcapiv1/lib/jcapiv1/models/body.rb index 801bdfc..482836f 100644 --- a/jcapiv1/lib/jcapiv1/models/body.rb +++ b/jcapiv1/lib/jcapiv1/models/body.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Body attr_accessor :name @@ -20,6 +21,7 @@ class Body attr_accessor :tags + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -59,6 +61,7 @@ def initialize(attributes = {}) self.tags = value end end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -66,14 +69,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @network_source_ip.nil? - invalid_properties.push('invalid value for "network_source_ip", network_source_ip cannot be nil.') + invalid_properties.push("invalid value for 'network_source_ip', network_source_ip cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -81,7 +84,7 @@ def list_invalid_properties def valid? return false if @name.nil? return false if @network_source_ip.nil? - true + return true end # Checks equality by comparing each attribute. @@ -116,7 +119,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -198,7 +201,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -209,5 +212,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/body_1.rb b/jcapiv1/lib/jcapiv1/models/body_1.rb index 38de6fa..e6e9173 100644 --- a/jcapiv1/lib/jcapiv1/models/body_1.rb +++ b/jcapiv1/lib/jcapiv1/models/body_1.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Body1 attr_accessor :exclusion attr_accessor :exclusion_until + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'exclusion') self.exclusion = attributes[:'exclusion'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'exclusionUntil') self.exclusion_until = attributes[:'exclusionUntil'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/command.rb b/jcapiv1/lib/jcapiv1/models/command.rb index d15d977..1b3b685 100644 --- a/jcapiv1/lib/jcapiv1/models/command.rb +++ b/jcapiv1/lib/jcapiv1/models/command.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Command attr_accessor :name @@ -55,6 +56,7 @@ class Command # The ID of the organization. attr_accessor :organization + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -101,7 +103,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -164,6 +166,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'organization') self.organization = attributes[:'organization'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -171,14 +174,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @command.nil? - invalid_properties.push('invalid value for "command", command cannot be nil.') + invalid_properties.push("invalid value for 'command', command cannot be nil.") end if @user.nil? - invalid_properties.push('invalid value for "user", user cannot be nil.') + invalid_properties.push("invalid value for 'user', user cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -186,7 +189,7 @@ def list_invalid_properties def valid? return false if @command.nil? return false if @user.nil? - true + return true end # Checks equality by comparing each attribute. @@ -232,7 +235,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -314,7 +317,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -325,5 +328,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb b/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb index 4a47ef2..208d744 100644 --- a/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb +++ b/jcapiv1/lib/jcapiv1/models/commandfilereturn.rb @@ -6,19 +6,21 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Commandfilereturn # The total number of commands files attr_accessor :total_count attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +43,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -50,19 +52,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'results') self.results = attributes[:'results'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -96,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -178,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -189,5 +192,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb b/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb index 021aafc..206f655 100644 --- a/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb +++ b/jcapiv1/lib/jcapiv1/models/commandfilereturn_results.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class CommandfilereturnResults # The file name. attr_accessor :name @@ -23,6 +24,7 @@ class CommandfilereturnResults # The ID of the file. attr_accessor :_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -47,7 +49,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -60,19 +62,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'_id') self._id = attributes[:'_id'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -107,7 +110,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +192,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +203,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandresult.rb b/jcapiv1/lib/jcapiv1/models/commandresult.rb index d8e318e..70a9d34 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresult.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresult.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Commandresult # The command that was executed on the system. attr_accessor :command @@ -53,6 +54,7 @@ class Commandresult # The ID of the command. attr_accessor :_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -99,7 +101,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'command') self.command = attributes[:'command'] @@ -158,19 +160,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'_id') self._id = attributes[:'_id'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -216,7 +219,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -298,7 +301,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -309,5 +312,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandresult_response.rb b/jcapiv1/lib/jcapiv1/models/commandresult_response.rb index ceb3c82..04364b7 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresult_response.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresult_response.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class CommandresultResponse # ID of the response. attr_accessor :id @@ -22,6 +23,7 @@ class CommandresultResponse attr_accessor :data + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +48,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -59,19 +61,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'data') self.data = attributes[:'data'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -106,7 +109,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -188,7 +191,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -199,5 +202,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb b/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb index 72affde..3f5bfc7 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresult_response_data.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class CommandresultResponseData # The output of the command that was executed. attr_accessor :output @@ -20,6 +21,7 @@ class CommandresultResponseData # The stderr output from the command that ran. attr_accessor :exit_code + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'output') self.output = attributes[:'output'] @@ -51,19 +53,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'exitCode') self.exit_code = attributes[:'exitCode'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -97,7 +100,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -179,7 +182,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +193,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandresultslist.rb b/jcapiv1/lib/jcapiv1/models/commandresultslist.rb index 79f8403..261dc6e 100644 --- a/jcapiv1/lib/jcapiv1/models/commandresultslist.rb +++ b/jcapiv1/lib/jcapiv1/models/commandresultslist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Commandresultslist # The total number of command results attr_accessor :total_count @@ -20,6 +21,7 @@ class Commandresultslist # The list of command results attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,19 +55,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -99,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +195,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandslist.rb b/jcapiv1/lib/jcapiv1/models/commandslist.rb index 7fe76b0..b2d0a09 100644 --- a/jcapiv1/lib/jcapiv1/models/commandslist.rb +++ b/jcapiv1/lib/jcapiv1/models/commandslist.rb @@ -6,19 +6,21 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Commandslist # The total number of commands attr_accessor :total_count attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +43,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -50,19 +52,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'results') self.results = attributes[:'results'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -96,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -178,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -189,5 +192,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/commandslist_results.rb b/jcapiv1/lib/jcapiv1/models/commandslist_results.rb index 36528ce..7c21ae6 100644 --- a/jcapiv1/lib/jcapiv1/models/commandslist_results.rb +++ b/jcapiv1/lib/jcapiv1/models/commandslist_results.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class CommandslistResults # The name of the Command. attr_accessor :name @@ -44,6 +45,7 @@ class CommandslistResults # The ID of the command. attr_accessor :_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -82,7 +84,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -123,19 +125,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'_id') self._id = attributes[:'_id'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -177,7 +180,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -259,7 +262,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -270,5 +273,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/errorresponse.rb b/jcapiv1/lib/jcapiv1/models/errorresponse.rb index 8f586ba..15391f6 100644 --- a/jcapiv1/lib/jcapiv1/models/errorresponse.rb +++ b/jcapiv1/lib/jcapiv1/models/errorresponse.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Errorresponse attr_accessor :message + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'message') self.message = attributes[:'message'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/fde.rb b/jcapiv1/lib/jcapiv1/models/fde.rb index 3124040..af8d80d 100644 --- a/jcapiv1/lib/jcapiv1/models/fde.rb +++ b/jcapiv1/lib/jcapiv1/models/fde.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Fde attr_accessor :key_present attr_accessor :active + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'keyPresent') self.key_present = attributes[:'keyPresent'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'active') self.active = attributes[:'active'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/mfa.rb b/jcapiv1/lib/jcapiv1/models/mfa.rb index 8704c81..88d5e6a 100644 --- a/jcapiv1/lib/jcapiv1/models/mfa.rb +++ b/jcapiv1/lib/jcapiv1/models/mfa.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Mfa attr_accessor :exclusion @@ -20,6 +21,7 @@ class Mfa attr_accessor :configured + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'exclusion') self.exclusion = attributes[:'exclusion'] @@ -57,19 +59,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'configured') self.configured = attributes[:'configured'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -104,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,5 +200,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/organizationslist.rb b/jcapiv1/lib/jcapiv1/models/organizationslist.rb index 7e3cbed..5567184 100644 --- a/jcapiv1/lib/jcapiv1/models/organizationslist.rb +++ b/jcapiv1/lib/jcapiv1/models/organizationslist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Organizationslist # The total number of organizations. attr_accessor :total_count @@ -20,6 +21,7 @@ class Organizationslist # The list of organizations. attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,19 +55,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -99,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +195,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb b/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb index 1eefe6a..3e73dd9 100644 --- a/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb +++ b/jcapiv1/lib/jcapiv1/models/organizationslist_results.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class OrganizationslistResults # The ID of the organization. attr_accessor :_id @@ -23,6 +24,7 @@ class OrganizationslistResults # The organization logo image URL. attr_accessor :logo_url + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -47,7 +49,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -60,19 +62,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'logoUrl') self.logo_url = attributes[:'logoUrl'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -107,7 +110,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +192,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +203,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserver.rb b/jcapiv1/lib/jcapiv1/models/radiusserver.rb index d8e0080..c1ac4a4 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserver.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserver.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Radiusserver attr_accessor :_id @@ -28,6 +29,7 @@ class Radiusserver attr_accessor :tag_names + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -60,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -93,19 +95,20 @@ def initialize(attributes = {}) self.tag_names = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -144,7 +147,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -226,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -237,5 +240,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb b/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb index 567fa79..06f5601 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserverpost.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Radiusserverpost attr_accessor :network_source_ip @@ -23,6 +24,7 @@ class Radiusserverpost # RADIUS shared secret between the server and client. attr_accessor :shared_secret + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -49,7 +51,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'networkSourceIp') self.network_source_ip = attributes[:'networkSourceIp'] @@ -68,6 +70,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'sharedSecret') self.shared_secret = attributes[:'sharedSecret'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -75,18 +78,18 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @network_source_ip.nil? - invalid_properties.push('invalid value for "network_source_ip", network_source_ip cannot be nil.') + invalid_properties.push("invalid value for 'network_source_ip', network_source_ip cannot be nil.") end if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @shared_secret.nil? - invalid_properties.push('invalid value for "shared_secret", shared_secret cannot be nil.') + invalid_properties.push("invalid value for 'shared_secret', shared_secret cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -95,7 +98,7 @@ def valid? return false if @network_source_ip.nil? return false if @name.nil? return false if @shared_secret.nil? - true + return true end # Checks equality by comparing each attribute. @@ -131,7 +134,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -213,7 +216,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -224,5 +227,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserverput.rb b/jcapiv1/lib/jcapiv1/models/radiusserverput.rb index 4a3b849..6c6e37d 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserverput.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserverput.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Radiusserverput attr_accessor :_id @@ -22,6 +23,7 @@ class Radiusserverput attr_accessor :tag_names + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +50,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -67,19 +69,20 @@ def initialize(attributes = {}) self.tag_names = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -115,7 +118,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -197,7 +200,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -208,5 +211,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb b/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb index bb0c057..4b8ab89 100644 --- a/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb +++ b/jcapiv1/lib/jcapiv1/models/radiusserverslist.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Radiusserverslist attr_accessor :total_count attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -51,19 +53,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -97,7 +100,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -179,7 +182,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -190,5 +193,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/search.rb b/jcapiv1/lib/jcapiv1/models/search.rb index 4165550..88256e8 100644 --- a/jcapiv1/lib/jcapiv1/models/search.rb +++ b/jcapiv1/lib/jcapiv1/models/search.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Search attr_accessor :filter attr_accessor :fields + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'filter') self.filter = attributes[:'filter'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'fields') self.fields = attributes[:'fields'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/sshkeylist.rb b/jcapiv1/lib/jcapiv1/models/sshkeylist.rb index 5b61759..4f57c6a 100644 --- a/jcapiv1/lib/jcapiv1/models/sshkeylist.rb +++ b/jcapiv1/lib/jcapiv1/models/sshkeylist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Sshkeylist # The date the SSH key was created. attr_accessor :create_date @@ -26,6 +27,7 @@ class Sshkeylist # The name of the SSH key. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -52,7 +54,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'create_date') self.create_date = attributes[:'create_date'] @@ -69,19 +71,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -117,7 +120,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -199,7 +202,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +213,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/sshkeypost.rb b/jcapiv1/lib/jcapiv1/models/sshkeypost.rb index a1021c9..8a550db 100644 --- a/jcapiv1/lib/jcapiv1/models/sshkeypost.rb +++ b/jcapiv1/lib/jcapiv1/models/sshkeypost.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Sshkeypost # The Public SSH key. attr_accessor :public_key @@ -20,6 +21,7 @@ class Sshkeypost # The name of the SSH key. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'public_key') self.public_key = attributes[:'public_key'] @@ -51,6 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -58,14 +61,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @public_key.nil? - invalid_properties.push('invalid value for "public_key", public_key cannot be nil.') + invalid_properties.push("invalid value for 'public_key', public_key cannot be nil.") end if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -73,7 +76,7 @@ def list_invalid_properties def valid? return false if @public_key.nil? return false if @name.nil? - true + return true end # Checks equality by comparing each attribute. @@ -107,7 +110,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +192,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +203,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/system.rb b/jcapiv1/lib/jcapiv1/models/system.rb index bd4780e..ba58d39 100644 --- a/jcapiv1/lib/jcapiv1/models/system.rb +++ b/jcapiv1/lib/jcapiv1/models/system.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class System attr_accessor :organization @@ -66,6 +67,7 @@ class System attr_accessor :amazon_instance_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -136,7 +138,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'organization') self.organization = attributes[:'organization'] @@ -249,19 +251,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'amazonInstanceID') self.amazon_instance_id = attributes[:'amazonInstanceID'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -319,7 +322,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -401,7 +404,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -412,5 +415,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb b/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb index c0153d3..3e77097 100644 --- a/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb +++ b/jcapiv1/lib/jcapiv1/models/system_network_interfaces.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemNetworkInterfaces attr_accessor :address @@ -22,6 +23,7 @@ class SystemNetworkInterfaces attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -48,7 +50,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'address') self.address = attributes[:'address'] @@ -65,19 +67,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -113,7 +116,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -195,7 +198,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -206,5 +209,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb b/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb index e99160d..698842a 100644 --- a/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb +++ b/jcapiv1/lib/jcapiv1/models/system_sshd_params.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemSshdParams attr_accessor :name attr_accessor :value + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'value') self.value = attributes[:'value'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemput.rb b/jcapiv1/lib/jcapiv1/models/systemput.rb index 30b07ab..dd56217 100644 --- a/jcapiv1/lib/jcapiv1/models/systemput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemput.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemput attr_accessor :display_name @@ -28,6 +29,7 @@ class Systemput attr_accessor :tags + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -60,7 +62,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'displayName') self.display_name = attributes[:'displayName'] @@ -93,19 +95,20 @@ def initialize(attributes = {}) self.tags = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -144,7 +147,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -226,7 +229,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -237,5 +240,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb b/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb index 7c1030b..64a28f0 100644 --- a/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb +++ b/jcapiv1/lib/jcapiv1/models/systemput_agent_bound_messages.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemputAgentBoundMessages attr_accessor :cmd + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'cmd') self.cmd = attributes[:'cmd'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemslist.rb b/jcapiv1/lib/jcapiv1/models/systemslist.rb index 567bbb3..22cf813 100644 --- a/jcapiv1/lib/jcapiv1/models/systemslist.rb +++ b/jcapiv1/lib/jcapiv1/models/systemslist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemslist # The total number of systems. attr_accessor :total_count @@ -20,6 +21,7 @@ class Systemslist # The list of systems. attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,19 +55,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -99,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +195,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuser.rb b/jcapiv1/lib/jcapiv1/models/systemuser.rb index 019880d..fe24828 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuser.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuser.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuser attr_accessor :email @@ -95,6 +96,7 @@ class Systemuser attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -193,7 +195,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -360,6 +362,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -367,74 +370,74 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@email.nil? && @email.to_s.length > 1024 - invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") end if !@username.nil? && @username.to_s.length > 1024 - invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") end if !@associated_tag_count.nil? && @associated_tag_count < 0 - invalid_properties.push('invalid value for "associated_tag_count", must be greater than or equal to 0.') + invalid_properties.push("invalid value for 'associated_tag_count', must be greater than or equal to 0.") end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') + invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -457,14 +460,15 @@ def valid? return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 return false if !@job_title.nil? && @job_title.to_s.length > 1024 return false if !@department.nil? && @department.to_s.length > 1024 - true + return true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) + if !email.nil? && email.to_s.length > 1024 - fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." end @email = email @@ -473,8 +477,9 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] username Value to be assigned def username=(username) + if !username.nil? && username.to_s.length > 1024 - fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." end @username = username @@ -483,8 +488,9 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) + if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." end @unix_uid = unix_uid @@ -493,8 +499,9 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) + if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." end @unix_guid = unix_guid @@ -503,8 +510,9 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) + if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." end @firstname = firstname @@ -513,8 +521,9 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) + if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." end @lastname = lastname @@ -523,8 +532,9 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] associated_tag_count Value to be assigned def associated_tag_count=(associated_tag_count) + if !associated_tag_count.nil? && associated_tag_count < 0 - fail ArgumentError, 'invalid value for "associated_tag_count", must be greater than or equal to 0.' + fail ArgumentError, "invalid value for 'associated_tag_count', must be greater than or equal to 0." end @associated_tag_count = associated_tag_count @@ -533,8 +543,9 @@ def associated_tag_count=(associated_tag_count) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) + if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." end @middlename = middlename @@ -543,8 +554,9 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) + if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." end @displayname = displayname @@ -553,8 +565,9 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) + if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." end @description = description @@ -563,8 +576,9 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) + if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." end @location = location @@ -573,8 +587,9 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) + if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." end @cost_center = cost_center @@ -583,8 +598,9 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) + if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." end @employee_type = employee_type @@ -593,8 +609,9 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) + if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." end @company = company @@ -603,8 +620,9 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) + if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' + fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." end @employee_identifier = employee_identifier @@ -613,8 +631,9 @@ def employee_identifier=(employee_identifier) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) + if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." end @job_title = job_title @@ -623,8 +642,9 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) + if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." end @department = department @@ -699,7 +719,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -781,7 +801,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -792,5 +812,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb b/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb index 2295a36..4ea0f81 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserbinding.rb @@ -6,14 +6,16 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuserbinding + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -32,20 +34,21 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -77,7 +80,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -159,7 +162,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -170,5 +173,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb b/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb index dff498a..0239ed3 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserbindingsput.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuserbindingsput # The list of systemuser ids to be added to this system. attr_accessor :add @@ -20,6 +21,7 @@ class Systemuserbindingsput # The list of systemuser ids to be removed from this system. attr_accessor :remove + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'add') if (value = attributes[:'add']).is_a?(Array) @@ -55,6 +57,7 @@ def initialize(attributes = {}) self.remove = value end end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -62,14 +65,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @add.nil? - invalid_properties.push('invalid value for "add", add cannot be nil.') + invalid_properties.push("invalid value for 'add', add cannot be nil.") end if @remove.nil? - invalid_properties.push('invalid value for "remove", remove cannot be nil.') + invalid_properties.push("invalid value for 'remove', remove cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -77,7 +80,7 @@ def list_invalid_properties def valid? return false if @add.nil? return false if @remove.nil? - true + return true end # Checks equality by comparing each attribute. @@ -111,7 +114,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -193,7 +196,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -204,5 +207,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput.rb b/jcapiv1/lib/jcapiv1/models/systemuserput.rb index 40748af..fb6aa6f 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuserput attr_accessor :email @@ -88,6 +89,7 @@ class Systemuserput attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -178,7 +180,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -335,6 +337,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -342,78 +345,78 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @email.nil? - invalid_properties.push('invalid value for "email", email cannot be nil.') + invalid_properties.push("invalid value for 'email', email cannot be nil.") end if @email.to_s.length > 1024 - invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") end if @username.nil? - invalid_properties.push('invalid value for "username", username cannot be nil.') + invalid_properties.push("invalid value for 'username', username cannot be nil.") end if @username.to_s.length > 1024 - invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') + invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -437,18 +440,18 @@ def valid? return false if !@employee_type.nil? && @employee_type.to_s.length > 1024 return false if !@company.nil? && @company.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - true + return true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) if email.nil? - fail ArgumentError, 'email cannot be nil' + fail ArgumentError, "email cannot be nil" end if email.to_s.length > 1024 - fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." end @email = email @@ -458,11 +461,11 @@ def email=(email) # @param [Object] username Value to be assigned def username=(username) if username.nil? - fail ArgumentError, 'username cannot be nil' + fail ArgumentError, "username cannot be nil" end if username.to_s.length > 1024 - fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." end @username = username @@ -471,8 +474,9 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) + if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." end @unix_uid = unix_uid @@ -481,8 +485,9 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) + if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." end @unix_guid = unix_guid @@ -491,8 +496,9 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) + if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." end @firstname = firstname @@ -501,8 +507,9 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) + if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." end @lastname = lastname @@ -511,8 +518,9 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) + if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." end @job_title = job_title @@ -521,8 +529,9 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) + if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." end @department = department @@ -531,8 +540,9 @@ def department=(department) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) + if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." end @middlename = middlename @@ -541,8 +551,9 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) + if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." end @displayname = displayname @@ -551,8 +562,9 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) + if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." end @description = description @@ -561,8 +573,9 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) + if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." end @location = location @@ -571,8 +584,9 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) + if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." end @cost_center = cost_center @@ -581,8 +595,9 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) + if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." end @employee_type = employee_type @@ -591,8 +606,9 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) + if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." end @company = company @@ -601,8 +617,9 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) + if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' + fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." end @employee_identifier = employee_identifier @@ -673,7 +690,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -755,7 +772,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -766,5 +783,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb b/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb index 4042d0f..ce06e00 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput_addresses.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemuserputAddresses attr_accessor :type @@ -30,6 +31,7 @@ class SystemuserputAddresses attr_accessor :country + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +66,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -97,6 +99,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -104,38 +107,38 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") end if !@po_box.nil? && @po_box.to_s.length > 1024 - invalid_properties.push('invalid value for "po_box", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'po_box', the character length must be smaller than or equal to 1024.") end if !@extended_address.nil? && @extended_address.to_s.length > 1024 - invalid_properties.push('invalid value for "extended_address", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'extended_address', the character length must be smaller than or equal to 1024.") end if !@street_address.nil? && @street_address.to_s.length > 1024 - invalid_properties.push('invalid value for "street_address", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'street_address', the character length must be smaller than or equal to 1024.") end if !@locality.nil? && @locality.to_s.length > 1024 - invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'locality', the character length must be smaller than or equal to 1024.") end if !@region.nil? && @region.to_s.length > 1024 - invalid_properties.push('invalid value for "region", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'region', the character length must be smaller than or equal to 1024.") end if !@postal_code.nil? && @postal_code.to_s.length > 1024 - invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'postal_code', the character length must be smaller than or equal to 1024.") end if !@country.nil? && @country.to_s.length > 1024 - invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'country', the character length must be smaller than or equal to 1024.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -149,14 +152,15 @@ def valid? return false if !@region.nil? && @region.to_s.length > 1024 return false if !@postal_code.nil? && @postal_code.to_s.length > 1024 return false if !@country.nil? && @country.to_s.length > 1024 - true + return true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) + if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." end @type = type @@ -165,8 +169,9 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] po_box Value to be assigned def po_box=(po_box) + if !po_box.nil? && po_box.to_s.length > 1024 - fail ArgumentError, 'invalid value for "po_box", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'po_box', the character length must be smaller than or equal to 1024." end @po_box = po_box @@ -175,8 +180,9 @@ def po_box=(po_box) # Custom attribute writer method with validation # @param [Object] extended_address Value to be assigned def extended_address=(extended_address) + if !extended_address.nil? && extended_address.to_s.length > 1024 - fail ArgumentError, 'invalid value for "extended_address", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'extended_address', the character length must be smaller than or equal to 1024." end @extended_address = extended_address @@ -185,8 +191,9 @@ def extended_address=(extended_address) # Custom attribute writer method with validation # @param [Object] street_address Value to be assigned def street_address=(street_address) + if !street_address.nil? && street_address.to_s.length > 1024 - fail ArgumentError, 'invalid value for "street_address", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'street_address', the character length must be smaller than or equal to 1024." end @street_address = street_address @@ -195,8 +202,9 @@ def street_address=(street_address) # Custom attribute writer method with validation # @param [Object] locality Value to be assigned def locality=(locality) + if !locality.nil? && locality.to_s.length > 1024 - fail ArgumentError, 'invalid value for "locality", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'locality', the character length must be smaller than or equal to 1024." end @locality = locality @@ -205,8 +213,9 @@ def locality=(locality) # Custom attribute writer method with validation # @param [Object] region Value to be assigned def region=(region) + if !region.nil? && region.to_s.length > 1024 - fail ArgumentError, 'invalid value for "region", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'region', the character length must be smaller than or equal to 1024." end @region = region @@ -215,8 +224,9 @@ def region=(region) # Custom attribute writer method with validation # @param [Object] postal_code Value to be assigned def postal_code=(postal_code) + if !postal_code.nil? && postal_code.to_s.length > 1024 - fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'postal_code', the character length must be smaller than or equal to 1024." end @postal_code = postal_code @@ -225,8 +235,9 @@ def postal_code=(postal_code) # Custom attribute writer method with validation # @param [Object] country Value to be assigned def country=(country) + if !country.nil? && country.to_s.length > 1024 - fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'country', the character length must be smaller than or equal to 1024." end @country = country @@ -269,7 +280,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -351,7 +362,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -362,5 +373,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb b/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb index f042113..f957312 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserput_phone_numbers.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemuserputPhoneNumbers attr_accessor :type attr_accessor :number + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -49,6 +51,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -56,14 +59,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") end if !@number.nil? && @number.to_s.length > 1024 - invalid_properties.push('invalid value for "number", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'number', the character length must be smaller than or equal to 1024.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -71,14 +74,15 @@ def list_invalid_properties def valid? return false if !@type.nil? && @type.to_s.length > 1024 return false if !@number.nil? && @number.to_s.length > 1024 - true + return true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) + if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." end @type = type @@ -87,8 +91,9 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] number Value to be assigned def number=(number) + if !number.nil? && number.to_s.length > 1024 - fail ArgumentError, 'invalid value for "number", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'number', the character length must be smaller than or equal to 1024." end @number = number @@ -125,7 +130,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -207,7 +212,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -218,5 +223,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb index 2007582..9ab5ade 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuserputpost attr_accessor :email @@ -89,6 +90,7 @@ class Systemuserputpost attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -181,7 +183,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -340,6 +342,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -347,34 +350,34 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @email.nil? - invalid_properties.push('invalid value for "email", email cannot be nil.') + invalid_properties.push("invalid value for 'email', email cannot be nil.") end if @email.to_s.length > 1024 - invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") end if @username.nil? - invalid_properties.push('invalid value for "username", username cannot be nil.') + invalid_properties.push("invalid value for 'username', username cannot be nil.") end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') + invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -387,18 +390,18 @@ def valid? return false if !@unix_guid.nil? && @unix_guid < 1 return false if !@description.nil? && @description.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - true + return true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) if email.nil? - fail ArgumentError, 'email cannot be nil' + fail ArgumentError, "email cannot be nil" end if email.to_s.length > 1024 - fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." end @email = email @@ -407,8 +410,9 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) + if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." end @unix_uid = unix_uid @@ -417,8 +421,9 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) + if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." end @unix_guid = unix_guid @@ -427,8 +432,9 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) + if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." end @description = description @@ -437,8 +443,9 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) + if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' + fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." end @employee_identifier = employee_identifier @@ -510,7 +517,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -592,7 +599,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -603,5 +610,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb index d524dc8..6b53277 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost_addresses.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemuserputpostAddresses attr_accessor :type @@ -30,6 +31,7 @@ class SystemuserputpostAddresses attr_accessor :country + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +66,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -97,19 +99,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -149,7 +152,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -231,7 +234,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -242,5 +245,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb b/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb index ad221a9..62346d7 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserputpost_phone_numbers.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemuserputpostPhoneNumbers attr_accessor :type attr_accessor :number + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb index 4c9bf0c..76bf886 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuserreturn attr_accessor :email @@ -101,6 +102,7 @@ class Systemuserreturn attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -205,7 +207,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -390,6 +392,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -397,74 +400,74 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@email.nil? && @email.to_s.length > 1024 - invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") end if !@username.nil? && @username.to_s.length > 1024 - invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") end if !@bad_login_attempts.nil? && @bad_login_attempts < 0 - invalid_properties.push('invalid value for "bad_login_attempts", must be greater than or equal to 0.') + invalid_properties.push("invalid value for 'bad_login_attempts', must be greater than or equal to 0.") end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') + invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -487,14 +490,15 @@ def valid? return false if !@employee_type.nil? && @employee_type.to_s.length > 1024 return false if !@company.nil? && @company.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - true + return true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) + if !email.nil? && email.to_s.length > 1024 - fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." end @email = email @@ -503,8 +507,9 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] username Value to be assigned def username=(username) + if !username.nil? && username.to_s.length > 1024 - fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." end @username = username @@ -513,8 +518,9 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) + if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." end @unix_uid = unix_uid @@ -523,8 +529,9 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) + if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." end @unix_guid = unix_guid @@ -533,8 +540,9 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) + if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." end @firstname = firstname @@ -543,8 +551,9 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) + if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." end @lastname = lastname @@ -553,8 +562,9 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) + if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." end @job_title = job_title @@ -563,8 +573,9 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) + if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." end @department = department @@ -573,8 +584,9 @@ def department=(department) # Custom attribute writer method with validation # @param [Object] bad_login_attempts Value to be assigned def bad_login_attempts=(bad_login_attempts) + if !bad_login_attempts.nil? && bad_login_attempts < 0 - fail ArgumentError, 'invalid value for "bad_login_attempts", must be greater than or equal to 0.' + fail ArgumentError, "invalid value for 'bad_login_attempts', must be greater than or equal to 0." end @bad_login_attempts = bad_login_attempts @@ -583,8 +595,9 @@ def bad_login_attempts=(bad_login_attempts) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) + if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." end @middlename = middlename @@ -593,8 +606,9 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) + if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." end @displayname = displayname @@ -603,8 +617,9 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) + if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." end @description = description @@ -613,8 +628,9 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) + if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." end @location = location @@ -623,8 +639,9 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) + if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." end @cost_center = cost_center @@ -633,8 +650,9 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) + if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." end @employee_type = employee_type @@ -643,8 +661,9 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) + if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." end @company = company @@ -653,8 +672,9 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) + if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' + fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." end @employee_identifier = employee_identifier @@ -732,7 +752,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -814,7 +834,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -825,5 +845,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb index 16bb92a..05b7e2e 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn_addresses.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemuserreturnAddresses attr_accessor :id @@ -32,6 +33,7 @@ class SystemuserreturnAddresses attr_accessor :country + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -68,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -105,6 +107,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -112,38 +115,38 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") end if !@po_box.nil? && @po_box.to_s.length > 1024 - invalid_properties.push('invalid value for "po_box", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'po_box', the character length must be smaller than or equal to 1024.") end if !@extended_address.nil? && @extended_address.to_s.length > 1024 - invalid_properties.push('invalid value for "extended_address", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'extended_address', the character length must be smaller than or equal to 1024.") end if !@street_address.nil? && @street_address.to_s.length > 1024 - invalid_properties.push('invalid value for "street_address", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'street_address', the character length must be smaller than or equal to 1024.") end if !@locality.nil? && @locality.to_s.length > 1024 - invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'locality', the character length must be smaller than or equal to 1024.") end if !@region.nil? && @region.to_s.length > 1024 - invalid_properties.push('invalid value for "region", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'region', the character length must be smaller than or equal to 1024.") end if !@postal_code.nil? && @postal_code.to_s.length > 1024 - invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'postal_code', the character length must be smaller than or equal to 1024.") end if !@country.nil? && @country.to_s.length > 1024 - invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'country', the character length must be smaller than or equal to 1024.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -157,14 +160,15 @@ def valid? return false if !@region.nil? && @region.to_s.length > 1024 return false if !@postal_code.nil? && @postal_code.to_s.length > 1024 return false if !@country.nil? && @country.to_s.length > 1024 - true + return true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) + if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." end @type = type @@ -173,8 +177,9 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] po_box Value to be assigned def po_box=(po_box) + if !po_box.nil? && po_box.to_s.length > 1024 - fail ArgumentError, 'invalid value for "po_box", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'po_box', the character length must be smaller than or equal to 1024." end @po_box = po_box @@ -183,8 +188,9 @@ def po_box=(po_box) # Custom attribute writer method with validation # @param [Object] extended_address Value to be assigned def extended_address=(extended_address) + if !extended_address.nil? && extended_address.to_s.length > 1024 - fail ArgumentError, 'invalid value for "extended_address", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'extended_address', the character length must be smaller than or equal to 1024." end @extended_address = extended_address @@ -193,8 +199,9 @@ def extended_address=(extended_address) # Custom attribute writer method with validation # @param [Object] street_address Value to be assigned def street_address=(street_address) + if !street_address.nil? && street_address.to_s.length > 1024 - fail ArgumentError, 'invalid value for "street_address", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'street_address', the character length must be smaller than or equal to 1024." end @street_address = street_address @@ -203,8 +210,9 @@ def street_address=(street_address) # Custom attribute writer method with validation # @param [Object] locality Value to be assigned def locality=(locality) + if !locality.nil? && locality.to_s.length > 1024 - fail ArgumentError, 'invalid value for "locality", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'locality', the character length must be smaller than or equal to 1024." end @locality = locality @@ -213,8 +221,9 @@ def locality=(locality) # Custom attribute writer method with validation # @param [Object] region Value to be assigned def region=(region) + if !region.nil? && region.to_s.length > 1024 - fail ArgumentError, 'invalid value for "region", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'region', the character length must be smaller than or equal to 1024." end @region = region @@ -223,8 +232,9 @@ def region=(region) # Custom attribute writer method with validation # @param [Object] postal_code Value to be assigned def postal_code=(postal_code) + if !postal_code.nil? && postal_code.to_s.length > 1024 - fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'postal_code', the character length must be smaller than or equal to 1024." end @postal_code = postal_code @@ -233,8 +243,9 @@ def postal_code=(postal_code) # Custom attribute writer method with validation # @param [Object] country Value to be assigned def country=(country) + if !country.nil? && country.to_s.length > 1024 - fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'country', the character length must be smaller than or equal to 1024." end @country = country @@ -278,7 +289,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -360,7 +371,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -371,5 +382,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb b/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb index e5d6eaf..462aea9 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserreturn_phone_numbers.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class SystemuserreturnPhoneNumbers attr_accessor :id @@ -20,6 +21,7 @@ class SystemuserreturnPhoneNumbers attr_accessor :number + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -57,6 +59,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -64,14 +67,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@type.nil? && @type.to_s.length > 1024 - invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'type', the character length must be smaller than or equal to 1024.") end if !@number.nil? && @number.to_s.length > 1024 - invalid_properties.push('invalid value for "number", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'number', the character length must be smaller than or equal to 1024.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -79,14 +82,15 @@ def list_invalid_properties def valid? return false if !@type.nil? && @type.to_s.length > 1024 return false if !@number.nil? && @number.to_s.length > 1024 - true + return true end # Custom attribute writer method with validation # @param [Object] type Value to be assigned def type=(type) + if !type.nil? && type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'type', the character length must be smaller than or equal to 1024." end @type = type @@ -95,8 +99,9 @@ def type=(type) # Custom attribute writer method with validation # @param [Object] number Value to be assigned def number=(number) + if !number.nil? && number.to_s.length > 1024 - fail ArgumentError, 'invalid value for "number", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'number', the character length must be smaller than or equal to 1024." end @number = number @@ -134,7 +139,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -216,7 +221,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -227,5 +232,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/systemuserslist.rb b/jcapiv1/lib/jcapiv1/models/systemuserslist.rb index 66cf70b..ad68c65 100644 --- a/jcapiv1/lib/jcapiv1/models/systemuserslist.rb +++ b/jcapiv1/lib/jcapiv1/models/systemuserslist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Systemuserslist # The total number of system users. attr_accessor :total_count @@ -20,6 +21,7 @@ class Systemuserslist # The list of system users. attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,19 +55,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -99,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +195,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/tag.rb b/jcapiv1/lib/jcapiv1/models/tag.rb index cb40d22..893878e 100644 --- a/jcapiv1/lib/jcapiv1/models/tag.rb +++ b/jcapiv1/lib/jcapiv1/models/tag.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Tag attr_accessor :_id @@ -41,6 +42,7 @@ class Tag attr_accessor :group_name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -83,7 +85,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'_id') self._id = attributes[:'_id'] @@ -138,19 +140,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'groupName') self.group_name = attributes[:'groupName'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -194,7 +197,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -276,7 +279,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -287,5 +290,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/tagpost.rb b/jcapiv1/lib/jcapiv1/models/tagpost.rb index 244fe70..ebd8ae1 100644 --- a/jcapiv1/lib/jcapiv1/models/tagpost.rb +++ b/jcapiv1/lib/jcapiv1/models/tagpost.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Tagpost # A unique name for the Tag. attr_accessor :name @@ -37,6 +38,7 @@ class Tagpost attr_accessor :group_name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -75,7 +77,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -122,6 +124,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'groupName') self.group_name = attributes[:'groupName'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -129,17 +132,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - true + return true end # Checks equality by comparing each attribute. @@ -181,7 +184,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -263,7 +266,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -274,5 +277,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/tagput.rb b/jcapiv1/lib/jcapiv1/models/tagput.rb index d2d0b0f..a78af12 100644 --- a/jcapiv1/lib/jcapiv1/models/tagput.rb +++ b/jcapiv1/lib/jcapiv1/models/tagput.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Tagput # A unique name for the Tag. attr_accessor :name @@ -37,6 +38,7 @@ class Tagput attr_accessor :group_name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -75,7 +77,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -122,19 +124,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'groupName') self.group_name = attributes[:'groupName'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -176,7 +179,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -258,7 +261,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -269,5 +272,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/tagslist.rb b/jcapiv1/lib/jcapiv1/models/tagslist.rb index 6d648ee..9924d7e 100644 --- a/jcapiv1/lib/jcapiv1/models/tagslist.rb +++ b/jcapiv1/lib/jcapiv1/models/tagslist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Tagslist # The total number of tags. attr_accessor :total_count @@ -20,6 +21,7 @@ class Tagslist # The list of tags. attr_accessor :results + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'totalCount') self.total_count = attributes[:'totalCount'] @@ -53,19 +55,20 @@ def initialize(attributes = {}) self.results = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -99,7 +102,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -181,7 +184,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -192,5 +195,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/usersystembinding.rb b/jcapiv1/lib/jcapiv1/models/usersystembinding.rb index 28d2f30..f164990 100644 --- a/jcapiv1/lib/jcapiv1/models/usersystembinding.rb +++ b/jcapiv1/lib/jcapiv1/models/usersystembinding.rb @@ -6,14 +6,16 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Usersystembinding + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -32,20 +34,21 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -77,7 +80,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -159,7 +162,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -170,5 +173,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb b/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb index cb1d240..a87a555 100644 --- a/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb +++ b/jcapiv1/lib/jcapiv1/models/usersystembindingsput.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv1 + class Usersystembindingsput # The list of system ids to be added to this user. attr_accessor :add @@ -20,6 +21,7 @@ class Usersystembindingsput # The list of system ids to be removed from this user. attr_accessor :remove + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'add') if (value = attributes[:'add']).is_a?(Array) @@ -55,6 +57,7 @@ def initialize(attributes = {}) self.remove = value end end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -62,14 +65,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @add.nil? - invalid_properties.push('invalid value for "add", add cannot be nil.') + invalid_properties.push("invalid value for 'add', add cannot be nil.") end if @remove.nil? - invalid_properties.push('invalid value for "remove", remove cannot be nil.') + invalid_properties.push("invalid value for 'remove', remove cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -77,7 +80,7 @@ def list_invalid_properties def valid? return false if @add.nil? return false if @remove.nil? - true + return true end # Checks equality by comparing each attribute. @@ -111,7 +114,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -193,7 +196,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -204,5 +207,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv1/lib/jcapiv1/version.rb b/jcapiv1/lib/jcapiv1/version.rb index 70dcae1..7987a08 100644 --- a/jcapiv1/lib/jcapiv1/version.rb +++ b/jcapiv1/lib/jcapiv1/version.rb @@ -6,10 +6,10 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end module JCAPIv1 - VERSION = '1.4.0' + VERSION = "1.4.0" end diff --git a/jcapiv1/spec/api/applications_api_spec.rb b/jcapiv1/spec/api/applications_api_spec.rb index b15af38..253393c 100644 --- a/jcapiv1/spec/api/applications_api_spec.rb +++ b/jcapiv1/spec/api/applications_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Applicationslist] describe 'applications_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/command_results_api_spec.rb b/jcapiv1/spec/api/command_results_api_spec.rb index 60e9782..b0ba418 100644 --- a/jcapiv1/spec/api/command_results_api_spec.rb +++ b/jcapiv1/spec/api/command_results_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [Commandresult] describe 'command_results_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [Commandresult] describe 'command_results_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Commandresultslist] describe 'command_results_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/command_triggers_api_spec.rb b/jcapiv1/spec/api/command_triggers_api_spec.rb index 5a88697..d03a105 100644 --- a/jcapiv1/spec/api/command_triggers_api_spec.rb +++ b/jcapiv1/spec/api/command_triggers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'command_trigger_webhook_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/commands_api_spec.rb b/jcapiv1/spec/api/commands_api_spec.rb index fd50fd1..a6b08d6 100644 --- a/jcapiv1/spec/api/commands_api_spec.rb +++ b/jcapiv1/spec/api/commands_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Commandfilereturn] describe 'command_file_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -60,7 +60,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'commands_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -77,7 +77,7 @@ # @option opts [String] :x_org_id # @return [Command] describe 'commands_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -96,7 +96,7 @@ # @option opts [String] :x_org_id # @return [Commandslist] describe 'commands_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -111,7 +111,7 @@ # @option opts [String] :x_org_id # @return [Command] describe 'commands_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -127,7 +127,7 @@ # @option opts [String] :x_org_id # @return [Command] describe 'commands_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/organizations_api_spec.rb b/jcapiv1/spec/api/organizations_api_spec.rb index 40c733d..56c2005 100644 --- a/jcapiv1/spec/api/organizations_api_spec.rb +++ b/jcapiv1/spec/api/organizations_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -46,7 +46,7 @@ # @option opts [String] :search A nested object containing a string `searchTerm` and a list of `fields` to search on. # @return [Organizationslist] describe 'organization_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/radius_servers_api_spec.rb b/jcapiv1/spec/api/radius_servers_api_spec.rb index ee5e730..f1e8c5b 100644 --- a/jcapiv1/spec/api/radius_servers_api_spec.rb +++ b/jcapiv1/spec/api/radius_servers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Radiusserverslist] describe 'radius_servers_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [Radiusserverslist] describe 'radius_servers_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -76,7 +76,7 @@ # @option opts [String] :x_org_id # @return [Radiusserverput] describe 'radius_servers_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/search_api_spec.rb b/jcapiv1/spec/api/search_api_spec.rb index 4bcf31a..0b8dfe1 100644 --- a/jcapiv1/spec/api/search_api_spec.rb +++ b/jcapiv1/spec/api/search_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [Integer] :skip The offset into the records to return. # @return [Organizationslist] describe 'search_organizations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -64,7 +64,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] describe 'search_systems_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -83,7 +83,7 @@ # @option opts [String] :x_org_id # @return [Systemuserslist] describe 'search_systemusers_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/systems_api_spec.rb b/jcapiv1/spec/api/systems_api_spec.rb index 7144930..21f7746 100644 --- a/jcapiv1/spec/api/systems_api_spec.rb +++ b/jcapiv1/spec/api/systems_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -44,7 +44,7 @@ # @option opts [String] :x_org_id # @return [System] describe 'systems_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @option opts [String] :x_org_id # @return [System] describe 'systems_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -83,7 +83,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Systemslist] describe 'systems_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -101,7 +101,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'systems_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -121,7 +121,7 @@ # @option opts [String] :x_org_id # @return [Systemuserbinding] describe 'systems_systemusers_binding_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -137,7 +137,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'systems_systemusers_binding_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/systemusers_api_spec.rb b/jcapiv1/spec/api/systemusers_api_spec.rb index f31d40f..7512ba9 100644 --- a/jcapiv1/spec/api/systemusers_api_spec.rb +++ b/jcapiv1/spec/api/systemusers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'sshkey_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -57,7 +57,7 @@ # @option opts [String] :x_org_id # @return [Sshkeylist] describe 'sshkey_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -73,7 +73,7 @@ # @option opts [String] :x_org_id # @return [Sshkeylist] describe 'sshkey_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -88,7 +88,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -105,7 +105,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Systemuserslist] describe 'systemusers_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -140,7 +140,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -156,7 +156,7 @@ # @option opts [String] :x_org_id # @return [Systemuserreturn] describe 'systemusers_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -171,7 +171,7 @@ # @option opts [String] :x_org_id # @return [String] describe 'systemusers_resetmfa test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -191,7 +191,7 @@ # @option opts [String] :x_org_id # @return [Object] describe 'systemusers_systems_binding_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -207,7 +207,7 @@ # @option opts [String] :x_org_id # @return [Usersystembinding] describe 'systemusers_systems_binding_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -220,7 +220,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'systemusers_unlock test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api/tags_api_spec.rb b/jcapiv1/spec/api/tags_api_spec.rb index c082386..4a4ac91 100644 --- a/jcapiv1/spec/api/tags_api_spec.rb +++ b/jcapiv1/spec/api/tags_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -41,7 +41,7 @@ # @param [Hash] opts the optional parameters # @return [Tag] describe 'tags_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -60,7 +60,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Tag] describe 'tags_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :filter A filter to apply to the query. # @return [Tagslist] describe 'tags_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -92,7 +92,7 @@ # @option opts [Tagpost] :body # @return [Tag] describe 'tags_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -107,7 +107,7 @@ # @option opts [Tagput] :body # @return [Tag] describe 'tags_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv1/spec/api_client_spec.rb b/jcapiv1/spec/api_client_spec.rb index 045b7ec..1fd9533 100644 --- a/jcapiv1/spec/api_client_spec.rb +++ b/jcapiv1/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -51,11 +51,11 @@ end end - describe 'params_encoding in #build_request' do + describe "params_encoding in #build_request" do let(:config) { JCAPIv1::Configuration.new } let(:api_client) { JCAPIv1::ApiClient.new(config) } - it 'defaults to nil' do + it "defaults to nil" do expect(JCAPIv1::Configuration.default.params_encoding).to eq(nil) expect(config.params_encoding).to eq(nil) @@ -63,18 +63,18 @@ expect(request.options[:params_encoding]).to eq(nil) end - it 'can be customized' do + it "can be customized" do config.params_encoding = :multi request = api_client.build_request(:get, '/test') expect(request.options[:params_encoding]).to eq(:multi) end end - describe 'timeout in #build_request' do + describe "timeout in #build_request" do let(:config) { JCAPIv1::Configuration.new } let(:api_client) { JCAPIv1::ApiClient.new(config) } - it 'defaults to 0' do + it "defaults to 0" do expect(JCAPIv1::Configuration.default.timeout).to eq(0) expect(config.timeout).to eq(0) @@ -82,88 +82,88 @@ expect(request.options[:timeout]).to eq(0) end - it 'can be customized' do + it "can be customized" do config.timeout = 100 request = api_client.build_request(:get, '/test') expect(request.options[:timeout]).to eq(100) end end - describe '#deserialize' do + describe "#deserialize" do it "handles Array" do api_client = JCAPIv1::ApiClient.new - headers = { 'Content-Type' => 'application/json' } + headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: '[12, 34]') data = api_client.deserialize(response, 'Array') expect(data).to be_instance_of(Array) expect(data).to eq([12, 34]) end - it 'handles Array>' do + it "handles Array>" do api_client = JCAPIv1::ApiClient.new - headers = { 'Content-Type' => 'application/json' } + headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: '[[12, 34], [56]]') data = api_client.deserialize(response, 'Array>') expect(data).to be_instance_of(Array) expect(data).to eq([[12, 34], [56]]) end - it 'handles Hash' do + it "handles Hash" do api_client = JCAPIv1::ApiClient.new - headers = { 'Content-Type' => 'application/json' } + headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: '{"message": "Hello"}') data = api_client.deserialize(response, 'Hash') expect(data).to be_instance_of(Hash) - expect(data).to eq(:message => 'Hello') + expect(data).to eq({:message => 'Hello'}) end end describe "#object_to_hash" do - it 'ignores nils and includes empty arrays' do + it "ignores nils and includes empty arrays" do # uncomment below to test object_to_hash for model - # api_client = JCAPIv1::ApiClient.new - # _model = JCAPIv1::ModelName.new + #api_client = JCAPIv1::ApiClient.new + #_model = JCAPIv1::ModelName.new # update the model attribute below - # _model.id = 1 + #_model.id = 1 # update the expected value (hash) below - # expected = {id: 1, name: '', tags: []} - # expect(api_client.object_to_hash(_model)).to eq(expected) + #expected = {id: 1, name: '', tags: []} + #expect(api_client.object_to_hash(_model)).to eq(expected) end end - describe '#build_collection_param' do + describe "#build_collection_param" do let(:param) { ['aa', 'bb', 'cc'] } let(:api_client) { JCAPIv1::ApiClient.new } - it 'works for csv' do + it "works for csv" do expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') end - it 'works for ssv' do + it "works for ssv" do expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') end - it 'works for tsv' do + it "works for tsv" do expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") end - it 'works for pipes' do + it "works for pipes" do expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') end - it 'works for multi' do + it "works for multi" do expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) end - it 'fails for invalid collection format' do + it "fails for invalid collection format" do expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end - describe '#json_mime?' do + describe "#json_mime?" do let(:api_client) { JCAPIv1::ApiClient.new } - it 'works' do + it "works" do expect(api_client.json_mime?(nil)).to eq false expect(api_client.json_mime?('')).to eq false @@ -177,10 +177,10 @@ end end - describe '#select_header_accept' do + describe "#select_header_accept" do let(:api_client) { JCAPIv1::ApiClient.new } - it 'works' do + it "works" do expect(api_client.select_header_accept(nil)).to be_nil expect(api_client.select_header_accept([])).to be_nil @@ -193,10 +193,10 @@ end end - describe '#select_header_content_type' do + describe "#select_header_content_type" do let(:api_client) { JCAPIv1::ApiClient.new } - it 'works' do + it "works" do expect(api_client.select_header_content_type(nil)).to eq('application/json') expect(api_client.select_header_content_type([])).to eq('application/json') @@ -208,10 +208,10 @@ end end - describe '#sanitize_filename' do + describe "#sanitize_filename" do let(:api_client) { JCAPIv1::ApiClient.new } - it 'works' do + it "works" do expect(api_client.sanitize_filename('sun')).to eq('sun') expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') diff --git a/jcapiv1/spec/configuration_spec.rb b/jcapiv1/spec/configuration_spec.rb index 0267f51..ad301f7 100644 --- a/jcapiv1/spec/configuration_spec.rb +++ b/jcapiv1/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -17,25 +17,25 @@ before(:each) do # uncomment below to setup host and base_path - # require 'URI' - # uri = URI.parse("https://console.jumpcloud.com/api") - # JCAPIv1.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - # end + #require 'URI' + #uri = URI.parse("https://console.jumpcloud.com/api") + #JCAPIv1.configure do |c| + # c.host = uri.host + # c.base_path = uri.path + #end end describe '#base_url' do it 'should have the default value' do # uncomment below to test default value of the base path - # expect(config.base_url).to eq("https://console.jumpcloud.com/api") + #expect(config.base_url).to eq("https://console.jumpcloud.com/api") end it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path # uncomment below to test trailing slashes - # expect(config.base_url).to eq("https://console.jumpcloud.com/api") + #expect(config.base_url).to eq("https://console.jumpcloud.com/api") end end end diff --git a/jcapiv1/spec/models/application_config_constant_attributes_spec.rb b/jcapiv1/spec/models/application_config_constant_attributes_spec.rb index 2621f5c..ce6f2c4 100644 --- a/jcapiv1/spec/models/application_config_constant_attributes_spec.rb +++ b/jcapiv1/spec/models/application_config_constant_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,56 +34,57 @@ end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tooltip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visible"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mutable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb b/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb index 70c8df4..2be21d8 100644 --- a/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb +++ b/jcapiv1/spec/models/application_config_constant_attributes_value_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,32 +34,33 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visible"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_config_database_attributes_spec.rb b/jcapiv1/spec/models/application_config_database_attributes_spec.rb index c4ccf32..3d44294 100644 --- a/jcapiv1/spec/models/application_config_database_attributes_spec.rb +++ b/jcapiv1/spec/models/application_config_database_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb b/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb index 634ff75..d2bfe93 100644 --- a/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb +++ b/jcapiv1/spec/models/application_config_idp_entity_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,50 +34,51 @@ end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tooltip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "visible"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb index 0fe7d27..f3170a1 100644 --- a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb +++ b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "variables"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb index d45dbd6..5b4488a 100644 --- a/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb +++ b/jcapiv1/spec/models/application_config_idp_entity_id_tooltip_variables_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "icon"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_config_spec.rb b/jcapiv1/spec/models/application_config_spec.rb index a5565bd..e28a08f 100644 --- a/jcapiv1/spec/models/application_config_spec.rb +++ b/jcapiv1/spec/models/application_config_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,38 +34,39 @@ end describe 'test attribute "idp_entity_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "idp_certificate"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sp_entity_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "acs_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "constant_attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "database_attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/application_spec.rb b/jcapiv1/spec/models/application_spec.rb index 597b7e2..9a4df17 100644 --- a/jcapiv1/spec/models/application_spec.rb +++ b/jcapiv1/spec/models/application_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,56 +34,57 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sso_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "learn_more"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/applicationslist_spec.rb b/jcapiv1/spec/models/applicationslist_spec.rb index 2ad3c9d..b8d0ef3 100644 --- a/jcapiv1/spec/models/applicationslist_spec.rb +++ b/jcapiv1/spec/models/applicationslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/body_1_spec.rb b/jcapiv1/spec/models/body_1_spec.rb index fb7d5d9..7cf1e67 100644 --- a/jcapiv1/spec/models/body_1_spec.rb +++ b/jcapiv1/spec/models/body_1_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "exclusion"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exclusion_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/body_spec.rb b/jcapiv1/spec/models/body_spec.rb index 7228cf3..51b52b5 100644 --- a/jcapiv1/spec/models/body_spec.rb +++ b/jcapiv1/spec/models/body_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/command_spec.rb b/jcapiv1/spec/models/command_spec.rb index 131b5dc..66479a9 100644 --- a/jcapiv1/spec/models/command_spec.rb +++ b/jcapiv1/spec/models/command_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,86 +34,87 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command_runners"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "launch_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "listens_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule_repeat_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "timeout"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandfilereturn_results_spec.rb b/jcapiv1/spec/models/commandfilereturn_results_spec.rb index 8f662a3..f290225 100644 --- a/jcapiv1/spec/models/commandfilereturn_results_spec.rb +++ b/jcapiv1/spec/models/commandfilereturn_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "destination"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandfilereturn_spec.rb b/jcapiv1/spec/models/commandfilereturn_spec.rb index cbc341d..a671bea 100644 --- a/jcapiv1/spec/models/commandfilereturn_spec.rb +++ b/jcapiv1/spec/models/commandfilereturn_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandresult_response_data_spec.rb b/jcapiv1/spec/models/commandresult_response_data_spec.rb index 50113ed..8830fb4 100644 --- a/jcapiv1/spec/models/commandresult_response_data_spec.rb +++ b/jcapiv1/spec/models/commandresult_response_data_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "output"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exit_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandresult_response_spec.rb b/jcapiv1/spec/models/commandresult_response_spec.rb index 9f1ee5d..cfdcb15 100644 --- a/jcapiv1/spec/models/commandresult_response_spec.rb +++ b/jcapiv1/spec/models/commandresult_response_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "data"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandresult_spec.rb b/jcapiv1/spec/models/commandresult_spec.rb index c3d3aae..85102ae 100644 --- a/jcapiv1/spec/models/commandresult_spec.rb +++ b/jcapiv1/spec/models/commandresult_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,86 +34,87 @@ end describe 'test attribute "command"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "workflow_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "workflow_instance_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "files"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "request_time"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "response_time"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "response"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandresultslist_spec.rb b/jcapiv1/spec/models/commandresultslist_spec.rb index c36a779..df2ca51 100644 --- a/jcapiv1/spec/models/commandresultslist_spec.rb +++ b/jcapiv1/spec/models/commandresultslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandslist_results_spec.rb b/jcapiv1/spec/models/commandslist_results_spec.rb index b7d25a0..213adad 100644 --- a/jcapiv1/spec/models/commandslist_results_spec.rb +++ b/jcapiv1/spec/models/commandslist_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,62 +34,63 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "command_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "launch_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "listens_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "trigger"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "schedule_repeat_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/commandslist_spec.rb b/jcapiv1/spec/models/commandslist_spec.rb index e81e98c..6a75c52 100644 --- a/jcapiv1/spec/models/commandslist_spec.rb +++ b/jcapiv1/spec/models/commandslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/errorresponse_spec.rb b/jcapiv1/spec/models/errorresponse_spec.rb index fc9a398..c788cba 100644 --- a/jcapiv1/spec/models/errorresponse_spec.rb +++ b/jcapiv1/spec/models/errorresponse_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/fde_spec.rb b/jcapiv1/spec/models/fde_spec.rb index 675edfc..f29b5ce 100644 --- a/jcapiv1/spec/models/fde_spec.rb +++ b/jcapiv1/spec/models/fde_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "key_present"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/mfa_spec.rb b/jcapiv1/spec/models/mfa_spec.rb index a0d3683..1b00ab8 100644 --- a/jcapiv1/spec/models/mfa_spec.rb +++ b/jcapiv1/spec/models/mfa_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "exclusion"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exclusion_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "configured"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/organizationslist_results_spec.rb b/jcapiv1/spec/models/organizationslist_results_spec.rb index b005c97..73ca272 100644 --- a/jcapiv1/spec/models/organizationslist_results_spec.rb +++ b/jcapiv1/spec/models/organizationslist_results_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "logo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/organizationslist_spec.rb b/jcapiv1/spec/models/organizationslist_spec.rb index 282faba..b695aab 100644 --- a/jcapiv1/spec/models/organizationslist_spec.rb +++ b/jcapiv1/spec/models/organizationslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/radiusserver_spec.rb b/jcapiv1/spec/models/radiusserver_spec.rb index 7f68f19..e7807c3 100644 --- a/jcapiv1/spec/models/radiusserver_spec.rb +++ b/jcapiv1/spec/models/radiusserver_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,44 +34,45 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "shared_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag_names"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/radiusserverpost_spec.rb b/jcapiv1/spec/models/radiusserverpost_spec.rb index 38a90f5..c68705d 100644 --- a/jcapiv1/spec/models/radiusserverpost_spec.rb +++ b/jcapiv1/spec/models/radiusserverpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,26 +34,27 @@ end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag_names"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "shared_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/radiusserverput_spec.rb b/jcapiv1/spec/models/radiusserverput_spec.rb index 043e079..3b9c5aa 100644 --- a/jcapiv1/spec/models/radiusserverput_spec.rb +++ b/jcapiv1/spec/models/radiusserverput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,26 +34,27 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_source_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tag_names"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/radiusserverslist_spec.rb b/jcapiv1/spec/models/radiusserverslist_spec.rb index e9c4297..df35d80 100644 --- a/jcapiv1/spec/models/radiusserverslist_spec.rb +++ b/jcapiv1/spec/models/radiusserverslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/search_spec.rb b/jcapiv1/spec/models/search_spec.rb index 36d1b43..fe893b2 100644 --- a/jcapiv1/spec/models/search_spec.rb +++ b/jcapiv1/spec/models/search_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "filter"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/sshkeylist_spec.rb b/jcapiv1/spec/models/sshkeylist_spec.rb index a4731d3..40489ce 100644 --- a/jcapiv1/spec/models/sshkeylist_spec.rb +++ b/jcapiv1/spec/models/sshkeylist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,26 +34,27 @@ end describe 'test attribute "create_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/sshkeypost_spec.rb b/jcapiv1/spec/models/sshkeypost_spec.rb index cb24d72..8b68f08 100644 --- a/jcapiv1/spec/models/sshkeypost_spec.rb +++ b/jcapiv1/spec/models/sshkeypost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/system_network_interfaces_spec.rb b/jcapiv1/spec/models/system_network_interfaces_spec.rb index 8926c64..441982e 100644 --- a/jcapiv1/spec/models/system_network_interfaces_spec.rb +++ b/jcapiv1/spec/models/system_network_interfaces_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,26 +34,27 @@ end describe 'test attribute "address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "family"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "internal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/system_spec.rb b/jcapiv1/spec/models/system_spec.rb index 73f3c27..3243881 100644 --- a/jcapiv1/spec/models/system_spec.rb +++ b/jcapiv1/spec/models/system_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,158 +34,159 @@ end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_contact"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "os"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "arch"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "network_interfaces"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "hostname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system_timezone"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "remote_ip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sshd_params"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_password_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_root_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_multi_factor_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "modify_sshd_config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "agent_version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "connection_history"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_root_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fde"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "amazon_instance_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/system_sshd_params_spec.rb b/jcapiv1/spec/models/system_sshd_params_spec.rb index 7a4ef27..05fc918 100644 --- a/jcapiv1/spec/models/system_sshd_params_spec.rb +++ b/jcapiv1/spec/models/system_sshd_params_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb b/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb index e39c570..780b439 100644 --- a/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb +++ b/jcapiv1/spec/models/systemput_agent_bound_messages_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "cmd"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemput_spec.rb b/jcapiv1/spec/models/systemput_spec.rb index b3c8ad6..c5b00f8 100644 --- a/jcapiv1/spec/models/systemput_spec.rb +++ b/jcapiv1/spec/models/systemput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,44 +34,45 @@ end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_password_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_ssh_root_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_multi_factor_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key_authentication"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "agent_bound_messages"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemslist_spec.rb b/jcapiv1/spec/models/systemslist_spec.rb index 94d88ac..0f10f15 100644 --- a/jcapiv1/spec/models/systemslist_spec.rb +++ b/jcapiv1/spec/models/systemslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuser_spec.rb b/jcapiv1/spec/models/systemuser_spec.rb index 80b8705..c945b3e 100644 --- a/jcapiv1/spec/models/systemuser_spec.rb +++ b/jcapiv1/spec/models/systemuser_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,242 +34,243 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "associated_tag_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expiration_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserbinding_spec.rb b/jcapiv1/spec/models/systemuserbinding_spec.rb index ace5e12..aae3081 100644 --- a/jcapiv1/spec/models/systemuserbinding_spec.rb +++ b/jcapiv1/spec/models/systemuserbinding_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,3 +33,4 @@ end end end + diff --git a/jcapiv1/spec/models/systemuserbindingsput_spec.rb b/jcapiv1/spec/models/systemuserbindingsput_spec.rb index 14ab892..d8f29a3 100644 --- a/jcapiv1/spec/models/systemuserbindingsput_spec.rb +++ b/jcapiv1/spec/models/systemuserbindingsput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "add"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "remove"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserput_addresses_spec.rb b/jcapiv1/spec/models/systemuserput_addresses_spec.rb index 14f3d97..71e7d3b 100644 --- a/jcapiv1/spec/models/systemuserput_addresses_spec.rb +++ b/jcapiv1/spec/models/systemuserput_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,50 +34,51 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb b/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb index 94867cd..f1dd1c2 100644 --- a/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb +++ b/jcapiv1/spec/models/systemuserput_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserput_spec.rb b/jcapiv1/spec/models/systemuserput_spec.rb index 669fa8d..8a697e4 100644 --- a/jcapiv1/spec/models/systemuserput_spec.rb +++ b/jcapiv1/spec/models/systemuserput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,218 +34,219 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb b/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb index 1840ed0..18db032 100644 --- a/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,50 +34,51 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb b/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb index 50ba2cc..5df6fa4 100644 --- a/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserputpost_spec.rb b/jcapiv1/spec/models/systemuserputpost_spec.rb index f8ff999..ddd57b8 100644 --- a/jcapiv1/spec/models/systemuserputpost_spec.rb +++ b/jcapiv1/spec/models/systemuserputpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,224 +34,225 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb b/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb index 1f2dc57..e2c6200 100644 --- a/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,56 +34,57 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb b/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb index 1f737a2..099a495 100644 --- a/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserreturn_spec.rb b/jcapiv1/spec/models/systemuserreturn_spec.rb index 7b2e1d9..0f9d4f7 100644 --- a/jcapiv1/spec/models/systemuserreturn_spec.rb +++ b/jcapiv1/spec/models/systemuserreturn_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,260 +34,261 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "bad_login_attempts"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/systemuserslist_spec.rb b/jcapiv1/spec/models/systemuserslist_spec.rb index ab9a352..97a3f4e 100644 --- a/jcapiv1/spec/models/systemuserslist_spec.rb +++ b/jcapiv1/spec/models/systemuserslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/tag_spec.rb b/jcapiv1/spec/models/tag_spec.rb index 6657eab..fb63c25 100644 --- a/jcapiv1/spec/models/tag_spec.rb +++ b/jcapiv1/spec/models/tag_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,74 +34,75 @@ end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systemusers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "regular_expressions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "send_to_ldap"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_gid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/tagpost_spec.rb b/jcapiv1/spec/models/tagpost_spec.rb index 8fd0259..3bc4aba 100644 --- a/jcapiv1/spec/models/tagpost_spec.rb +++ b/jcapiv1/spec/models/tagpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,62 +34,63 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systemusers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "regular_expressions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "send_to_ldap"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_gid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/tagput_spec.rb b/jcapiv1/spec/models/tagput_spec.rb index 081c4ac..e3e2adc 100644 --- a/jcapiv1/spec/models/tagput_spec.rb +++ b/jcapiv1/spec/models/tagput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,62 +34,63 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systems"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "systemusers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "regular_expressions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "send_to_ldap"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_gid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "group_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/tagslist_spec.rb b/jcapiv1/spec/models/tagslist_spec.rb index 3992acf..75260e0 100644 --- a/jcapiv1/spec/models/tagslist_spec.rb +++ b/jcapiv1/spec/models/tagslist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "results"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/models/usersystembinding_spec.rb b/jcapiv1/spec/models/usersystembinding_spec.rb index 0d7f001..b450497 100644 --- a/jcapiv1/spec/models/usersystembinding_spec.rb +++ b/jcapiv1/spec/models/usersystembinding_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,3 +33,4 @@ end end end + diff --git a/jcapiv1/spec/models/usersystembindingsput_spec.rb b/jcapiv1/spec/models/usersystembindingsput_spec.rb index 22aff63..824773f 100644 --- a/jcapiv1/spec/models/usersystembindingsput_spec.rb +++ b/jcapiv1/spec/models/usersystembindingsput_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "add"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "remove"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv1/spec/spec_helper.rb b/jcapiv1/spec/spec_helper.rb index ba605ef..ac7cdd8 100644 --- a/jcapiv1/spec/spec_helper.rb +++ b/jcapiv1/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end diff --git a/jcapiv2/.gitignore b/jcapiv2/.gitignore index c021594..4b91271 100644 --- a/jcapiv2/.gitignore +++ b/jcapiv2/.gitignore @@ -1,5 +1,5 @@ # Generated by: https://github.com/swagger-api/swagger-codegen.git -# +# *.gem *.rbc diff --git a/jcapiv2/.rubocop.yml b/jcapiv2/.rubocop.yml deleted file mode 100644 index 19a777e..0000000 --- a/jcapiv2/.rubocop.yml +++ /dev/null @@ -1,154 +0,0 @@ -# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license) -# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen) -AllCops: - TargetRubyVersion: 2.2 - # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop - # to ignore them, so only the ones explicitly set in this file are enabled. - DisabledByDefault: true - Exclude: - - '**/templates/**/*' - - '**/vendor/**/*' - - 'actionpack/lib/action_dispatch/journey/parser.rb' - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Do not use braces for hash literals when they are the last argument of a -# method call. -Style/BracesAroundHashParameters: - Enabled: true - EnforcedStyle: context_dependent - -# Align `when` with `case`. -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/ElseAlignment: - Enabled: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstParameterIndentation: - Enabled: true - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: false - -# Method definitions after `private` or `protected` isolated calls need one -# extra level of indentation. -Layout/IndentationConsistency: - Enabled: true - EnforcedStyle: rails - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: false - EnforcedStyle: always - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Check quotes usage according to lint rule below. -#Style/StringLiterals: -# Enabled: true -# EnforcedStyle: single_quotes - -# Detect hard tabs, no hard tabs. -Layout/Tab: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingBlankLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: false - -# Use quotes for string literals when they are enough. -Style/UnneededPercentQ: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Lint/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg. -Lint/RequireParentheses: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true diff --git a/jcapiv2/.swagger-codegen/VERSION b/jcapiv2/.swagger-codegen/VERSION index acdc3f1..a625450 100644 --- a/jcapiv2/.swagger-codegen/VERSION +++ b/jcapiv2/.swagger-codegen/VERSION @@ -1 +1 @@ -2.4.2 \ No newline at end of file +2.3.1 \ No newline at end of file diff --git a/jcapiv2/README.md b/jcapiv2/README.md index c788cc7..e14ea9c 100644 --- a/jcapiv2/README.md +++ b/jcapiv2/README.md @@ -64,14 +64,14 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -id = 'id_example' # String | ObjectID of this Active Directory instance. +id = "id_example" # String | ObjectID of this Active Directory instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/ActiveDirectoryApi.md b/jcapiv2/docs/ActiveDirectoryApi.md index 18de4e8..02e943f 100644 --- a/jcapiv2/docs/ActiveDirectoryApi.md +++ b/jcapiv2/docs/ActiveDirectoryApi.md @@ -34,14 +34,14 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -id = 'id_example' # String | ObjectID of this Active Directory instance. +id = "id_example" # String | ObjectID of this Active Directory instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -97,14 +97,14 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -id = 'id_example' # String | ObjectID of this Active Directory instance. +id = "id_example" # String | ObjectID of this Active Directory instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -161,17 +161,17 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -189,11 +189,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -232,13 +232,13 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::ActiveDirectoryInput.new, # ActiveDirectoryInput | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -295,18 +295,18 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -activedirectory_id = 'activedirectory_id_example' # String | +activedirectory_id = "activedirectory_id_example" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -366,15 +366,15 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -activedirectory_id = 'activedirectory_id_example' # String | +activedirectory_id = "activedirectory_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -431,16 +431,16 @@ end api_instance = JCAPIv2::ActiveDirectoryApi.new -activedirectory_id = 'activedirectory_id_example' # String | ObjectID of the Active Directory instance. +activedirectory_id = "activedirectory_id_example" # String | ObjectID of the Active Directory instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/ApplicationsApi.md b/jcapiv2/docs/ApplicationsApi.md index 1f8c8ce..d89c967 100644 --- a/jcapiv2/docs/ApplicationsApi.md +++ b/jcapiv2/docs/ApplicationsApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -102,15 +102,15 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -167,16 +167,16 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -235,16 +235,16 @@ end api_instance = JCAPIv2::ApplicationsApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/BulkJobRequestsApi.md b/jcapiv2/docs/BulkJobRequestsApi.md index 6a907f5..f0265fd 100644 --- a/jcapiv2/docs/BulkJobRequestsApi.md +++ b/jcapiv2/docs/BulkJobRequestsApi.md @@ -32,13 +32,13 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: [JCAPIv2::BulkUserCreate.new], # Array | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -95,16 +95,16 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -job_id = 'job_id_example' # String | +job_id = "job_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -163,13 +163,13 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: [JCAPIv2::BulkUserUpdate.new], # Array | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -226,14 +226,14 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -290,16 +290,16 @@ end api_instance = JCAPIv2::BulkJobRequestsApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/CommandsApi.md b/jcapiv2/docs/CommandsApi.md index 3ba7501..e6ba995 100644 --- a/jcapiv2/docs/CommandsApi.md +++ b/jcapiv2/docs/CommandsApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -102,15 +102,15 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -167,16 +167,16 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -235,16 +235,16 @@ end api_instance = JCAPIv2::CommandsApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/DirectoriesApi.md b/jcapiv2/docs/DirectoriesApi.md index 0b5e91f..59271eb 100644 --- a/jcapiv2/docs/DirectoriesApi.md +++ b/jcapiv2/docs/DirectoriesApi.md @@ -28,16 +28,16 @@ end api_instance = JCAPIv2::DirectoriesApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -55,9 +55,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **x_org_id** | **String**| | [optional] [default to ] diff --git a/jcapiv2/docs/FdeApi.md b/jcapiv2/docs/FdeApi.md index eddd8fa..e393dbd 100644 --- a/jcapiv2/docs/FdeApi.md +++ b/jcapiv2/docs/FdeApi.md @@ -28,10 +28,10 @@ end api_instance = JCAPIv2::FdeApi.new -system_id = 'system_id_example' # String | +system_id = "system_id_example" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/GSuiteApi.md b/jcapiv2/docs/GSuiteApi.md index f0db2f1..e3b7032 100644 --- a/jcapiv2/docs/GSuiteApi.md +++ b/jcapiv2/docs/GSuiteApi.md @@ -35,18 +35,18 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -106,11 +106,11 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -165,16 +165,16 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -233,16 +233,16 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -301,13 +301,13 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | +gsuite_id = "gsuite_id_example" # String | -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | begin @@ -363,13 +363,13 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | +gsuite_id = "gsuite_id_example" # String | -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | begin @@ -426,18 +426,18 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | +gsuite_id = "gsuite_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. } begin @@ -456,11 +456,11 @@ Name | Type | Description | Notes **gsuite_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] ### Return type @@ -498,11 +498,11 @@ end api_instance = JCAPIv2::GSuiteApi.new -gsuite_id = 'gsuite_id_example' # String | +gsuite_id = "gsuite_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GSuiteTranslationRuleRequest.new # GSuiteTranslationRuleRequest | diff --git a/jcapiv2/docs/GraphApi.md b/jcapiv2/docs/GraphApi.md index 7fa4803..d50ed3a 100644 --- a/jcapiv2/docs/GraphApi.md +++ b/jcapiv2/docs/GraphApi.md @@ -102,18 +102,18 @@ end api_instance = JCAPIv2::GraphApi.new -activedirectory_id = 'activedirectory_id_example' # String | +activedirectory_id = "activedirectory_id_example" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -173,15 +173,15 @@ end api_instance = JCAPIv2::GraphApi.new -activedirectory_id = 'activedirectory_id_example' # String | +activedirectory_id = "activedirectory_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -238,16 +238,16 @@ end api_instance = JCAPIv2::GraphApi.new -activedirectory_id = 'activedirectory_id_example' # String | ObjectID of the Active Directory instance. +activedirectory_id = "activedirectory_id_example" # String | ObjectID of the Active Directory instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -306,18 +306,18 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -377,15 +377,15 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -442,16 +442,16 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -510,16 +510,16 @@ end api_instance = JCAPIv2::GraphApi.new -application_id = 'application_id_example' # String | ObjectID of the Application. +application_id = "application_id_example" # String | ObjectID of the Application. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -578,18 +578,18 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -649,15 +649,15 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -714,16 +714,16 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -782,16 +782,16 @@ end api_instance = JCAPIv2::GraphApi.new -command_id = 'command_id_example' # String | ObjectID of the Command. +command_id = "command_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -850,18 +850,18 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -921,11 +921,11 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -980,16 +980,16 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1048,16 +1048,16 @@ end api_instance = JCAPIv2::GraphApi.new -gsuite_id = 'gsuite_id_example' # String | ObjectID of the G Suite instance. +gsuite_id = "gsuite_id_example" # String | ObjectID of the G Suite instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1116,18 +1116,18 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1187,15 +1187,15 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1252,16 +1252,16 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1320,16 +1320,16 @@ end api_instance = JCAPIv2::GraphApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1388,18 +1388,18 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1459,15 +1459,15 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1524,16 +1524,16 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1592,16 +1592,16 @@ end api_instance = JCAPIv2::GraphApi.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1660,18 +1660,18 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Policy. +policy_id = "policy_id_example" # String | ObjectID of the Policy. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1731,15 +1731,15 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Policy. +policy_id = "policy_id_example" # String | ObjectID of the Policy. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1796,16 +1796,16 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Command. +policy_id = "policy_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1864,16 +1864,16 @@ end api_instance = JCAPIv2::GraphApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Command. +policy_id = "policy_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1932,18 +1932,18 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2003,15 +2003,15 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2068,16 +2068,16 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2136,16 +2136,16 @@ end api_instance = JCAPIv2::GraphApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2204,20 +2204,20 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -2279,17 +2279,17 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGraphManagementReq.new, # SystemGraphManagementReq | - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -2348,18 +2348,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2419,15 +2419,15 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupGraphManagementReq.new, # SystemGroupGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2484,18 +2484,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -2514,10 +2514,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the System Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -2556,16 +2556,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2624,17 +2624,17 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupMembersReq.new, # SystemGroupMembersReq | - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -2693,18 +2693,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: "" # String | } begin @@ -2725,8 +2725,8 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -2765,16 +2765,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2833,16 +2833,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2901,16 +2901,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -2969,16 +2969,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3037,20 +3037,20 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -3069,12 +3069,12 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -3113,16 +3113,16 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3181,16 +3181,16 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3249,19 +3249,19 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: '' # String | + x_org_id: "" # String | skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -3285,7 +3285,7 @@ Name | Type | Description | Notes **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] ### Return type @@ -3323,18 +3323,18 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -3395,18 +3395,18 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3466,15 +3466,15 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGraphManagementReq.new, # UserGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3531,18 +3531,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3602,15 +3602,15 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupGraphManagementReq.new, # UserGroupGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3667,18 +3667,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -3697,10 +3697,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -3739,16 +3739,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3807,15 +3807,15 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupMembersReq.new, # UserGroupMembersReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -3872,18 +3872,18 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -3902,10 +3902,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -3944,16 +3944,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4012,16 +4012,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4080,16 +4080,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4148,16 +4148,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4216,16 +4216,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4284,16 +4284,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4352,16 +4352,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4420,16 +4420,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4488,16 +4488,16 @@ end api_instance = JCAPIv2::GraphApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4556,18 +4556,18 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -4586,10 +4586,10 @@ Name | Type | Description | Notes **user_id** | **String**| ObjectID of the User. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -4628,16 +4628,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4696,16 +4696,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4764,16 +4764,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4832,16 +4832,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4900,16 +4900,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -4968,16 +4968,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -5036,17 +5036,17 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: '' # String | + x_org_id: "" # String | skip: 0, # Integer | The offset into the records to return. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -5068,7 +5068,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **x_org_id** | **String**| | [optional] [default to ] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] ### Return type @@ -5106,16 +5106,16 @@ end api_instance = JCAPIv2::GraphApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -5174,19 +5174,19 @@ end api_instance = JCAPIv2::GraphApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -5205,11 +5205,11 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/GroupsApi.md b/jcapiv2/docs/GroupsApi.md index 95ce2eb..b6c1583 100644 --- a/jcapiv2/docs/GroupsApi.md +++ b/jcapiv2/docs/GroupsApi.md @@ -28,17 +28,17 @@ end api_instance = JCAPIv2::GroupsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -56,11 +56,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/LDAPServersApi.md b/jcapiv2/docs/LDAPServersApi.md index 4cba5ef..ccd2078 100644 --- a/jcapiv2/docs/LDAPServersApi.md +++ b/jcapiv2/docs/LDAPServersApi.md @@ -33,18 +33,18 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -104,15 +104,15 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -169,16 +169,16 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -237,16 +237,16 @@ end api_instance = JCAPIv2::LDAPServersApi.new -ldapserver_id = 'ldapserver_id_example' # String | ObjectID of the LDAP Server. +ldapserver_id = "ldapserver_id_example" # String | ObjectID of the LDAP Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -305,14 +305,14 @@ end api_instance = JCAPIv2::LDAPServersApi.new -id = 'id_example' # String | Unique identifier of the LDAP server. +id = "id_example" # String | Unique identifier of the LDAP server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -369,17 +369,17 @@ end api_instance = JCAPIv2::LDAPServersApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -397,11 +397,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/Office365Api.md b/jcapiv2/docs/Office365Api.md index 5204c28..bdb616f 100644 --- a/jcapiv2/docs/Office365Api.md +++ b/jcapiv2/docs/Office365Api.md @@ -35,18 +35,18 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -106,15 +106,15 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 instance. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 instance. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -171,16 +171,16 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -239,16 +239,16 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | ObjectID of the Office 365 suite. +office365_id = "office365_id_example" # String | ObjectID of the Office 365 suite. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -307,13 +307,13 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | +office365_id = "office365_id_example" # String | -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | begin @@ -369,13 +369,13 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | +office365_id = "office365_id_example" # String | -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | begin @@ -432,18 +432,18 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | +office365_id = "office365_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. } begin @@ -462,11 +462,11 @@ Name | Type | Description | Notes **office365_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] ### Return type @@ -504,11 +504,11 @@ end api_instance = JCAPIv2::Office365Api.new -office365_id = 'office365_id_example' # String | +office365_id = "office365_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::Office365TranslationRuleRequest.new # Office365TranslationRuleRequest | diff --git a/jcapiv2/docs/PoliciesApi.md b/jcapiv2/docs/PoliciesApi.md index d847be6..3ae453a 100644 --- a/jcapiv2/docs/PoliciesApi.md +++ b/jcapiv2/docs/PoliciesApi.md @@ -43,18 +43,18 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Policy. +policy_id = "policy_id_example" # String | ObjectID of the Policy. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -114,15 +114,15 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Policy. +policy_id = "policy_id_example" # String | ObjectID of the Policy. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -179,16 +179,16 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Command. +policy_id = "policy_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -247,16 +247,16 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = 'policy_id_example' # String | ObjectID of the Command. +policy_id = "policy_id_example" # String | ObjectID of the Command. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -315,14 +315,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = 'id_example' # String | ObjectID of the Policy object. +id = "id_example" # String | ObjectID of the Policy object. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -378,14 +378,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = 'id_example' # String | ObjectID of the Policy object. +id = "id_example" # String | ObjectID of the Policy object. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -442,17 +442,17 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -470,11 +470,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -513,13 +513,13 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::PolicyRequest.new, # PolicyRequest | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -576,11 +576,11 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = 'id_example' # String | ObjectID of the Policy object. +id = "id_example" # String | ObjectID of the Policy object. opts = { body: JCAPIv2::PolicyRequest.new, # PolicyRequest | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -636,14 +636,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = 'id_example' # String | ObjectID of the Policy Result. +id = "id_example" # String | ObjectID of the Policy Result. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -700,20 +700,20 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = 'policy_id_example' # String | +policy_id = "policy_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - aggregate: ['[]'], # Array | - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + aggregate: ["aggregate_example"], # Array | + x_org_id: "" # String | } begin @@ -732,12 +732,12 @@ Name | Type | Description | Notes **policy_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] - **aggregate** | [**Array<String>**](String.md)| | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **aggregate** | [**Array<String>**](String.md)| | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -776,18 +776,18 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - aggregate: ['[]'], # Array | - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + aggregate: ["aggregate_example"], # Array | + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -805,12 +805,12 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **aggregate** | [**Array<String>**](String.md)| | [optional] [default to []] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **aggregate** | [**Array<String>**](String.md)| | [optional] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -849,19 +849,19 @@ end api_instance = JCAPIv2::PoliciesApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -880,11 +880,11 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -923,19 +923,19 @@ end api_instance = JCAPIv2::PoliciesApi.new -policy_id = 'policy_id_example' # String | +policy_id = "policy_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -954,11 +954,11 @@ Name | Type | Description | Notes **policy_id** | **String**| | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -997,14 +997,14 @@ end api_instance = JCAPIv2::PoliciesApi.new -id = 'id_example' # String | ObjectID of the Policy Template. +id = "id_example" # String | ObjectID of the Policy Template. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1061,17 +1061,17 @@ end api_instance = JCAPIv2::PoliciesApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -1089,11 +1089,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/PolicyTemplate.md b/jcapiv2/docs/PolicyTemplate.md index 282fb31..280fe4b 100644 --- a/jcapiv2/docs/PolicyTemplate.md +++ b/jcapiv2/docs/PolicyTemplate.md @@ -10,6 +10,6 @@ Name | Type | Description | Notes **os_meta_family** | **String** | | [optional] **activation** | **String** | Requirements before the policy can be activated. | [optional] **behavior** | **String** | Specifics about the behavior of the policy. | [optional] -**state** | **String** | String describing the release status of the policy template. | [optional] [default to ''] +**state** | **String** | String describing the release status of the policy template. | [optional] [default to ""] diff --git a/jcapiv2/docs/PolicytemplatesApi.md b/jcapiv2/docs/PolicytemplatesApi.md index 5929b83..74ccb6d 100644 --- a/jcapiv2/docs/PolicytemplatesApi.md +++ b/jcapiv2/docs/PolicytemplatesApi.md @@ -29,14 +29,14 @@ end api_instance = JCAPIv2::PolicytemplatesApi.new -id = 'id_example' # String | ObjectID of the Policy Template. +id = "id_example" # String | ObjectID of the Policy Template. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -93,17 +93,17 @@ end api_instance = JCAPIv2::PolicytemplatesApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -121,11 +121,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/RADIUSServersApi.md b/jcapiv2/docs/RADIUSServersApi.md index 3b3a60e..4a6ed69 100644 --- a/jcapiv2/docs/RADIUSServersApi.md +++ b/jcapiv2/docs/RADIUSServersApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -102,15 +102,15 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::GraphManagementReq.new, # GraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -167,16 +167,16 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -235,16 +235,16 @@ end api_instance = JCAPIv2::RADIUSServersApi.new -radiusserver_id = 'radiusserver_id_example' # String | ObjectID of the Radius Server. +radiusserver_id = "radiusserver_id_example" # String | ObjectID of the Radius Server. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/SambaDomainsApi.md b/jcapiv2/docs/SambaDomainsApi.md index 941fc48..4e75280 100644 --- a/jcapiv2/docs/SambaDomainsApi.md +++ b/jcapiv2/docs/SambaDomainsApi.md @@ -32,14 +32,14 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. +ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. -id = 'id_example' # String | Unique identifier of the samba domain. +id = "id_example" # String | Unique identifier of the samba domain. opts = { - content_type: 'application/json', # String | - accept: 'application/json', # String | - x_org_id: '' # String | + content_type: "application/json", # String | + accept: "application/json", # String | + x_org_id: "" # String | } begin @@ -97,14 +97,14 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. +ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. -id = 'id_example' # String | Unique identifier of the samba domain. +id = "id_example" # String | Unique identifier of the samba domain. opts = { - content_type: 'application/json', # String | - accept: 'application/json', # String | - x_org_id: '' # String | + content_type: "application/json", # String | + accept: "application/json", # String | + x_org_id: "" # String | } begin @@ -162,17 +162,17 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. +ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. opts = { - content_type: 'application/json', # String | - accept: 'application/json', # String | - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + content_type: "application/json", # String | + accept: "application/json", # String | + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -191,11 +191,11 @@ Name | Type | Description | Notes **ldapserver_id** | **String**| Unique identifier of the LDAP server. | **content_type** | **String**| | [optional] [default to application/json] **accept** | **String**| | [optional] [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -234,13 +234,13 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. +ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. opts = { body: JCAPIv2::SambaDomainInput.new, # SambaDomainInput | - content_type: 'application/json', # String | - accept: 'application/json', # String | - x_org_id: '' # String | + content_type: "application/json", # String | + accept: "application/json", # String | + x_org_id: "" # String | } begin @@ -298,15 +298,15 @@ end api_instance = JCAPIv2::SambaDomainsApi.new -ldapserver_id = 'ldapserver_id_example' # String | Unique identifier of the LDAP server. +ldapserver_id = "ldapserver_id_example" # String | Unique identifier of the LDAP server. -id = 'id_example' # String | Unique identifier of the samba domain. +id = "id_example" # String | Unique identifier of the samba domain. opts = { body: JCAPIv2::SambaDomainInput.new, # SambaDomainInput | - content_type: 'application/json', # String | - accept: 'application/json', # String | - x_org_id: '' # String | + content_type: "application/json", # String | + accept: "application/json", # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/SystemGroupAssociationsApi.md b/jcapiv2/docs/SystemGroupAssociationsApi.md index 8be221c..4f75a29 100644 --- a/jcapiv2/docs/SystemGroupAssociationsApi.md +++ b/jcapiv2/docs/SystemGroupAssociationsApi.md @@ -33,18 +33,18 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -104,15 +104,15 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupGraphManagementReq.new, # SystemGroupGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -169,16 +169,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -237,16 +237,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -305,16 +305,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -373,16 +373,16 @@ end api_instance = JCAPIv2::SystemGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/SystemGroupMembersMembershipApi.md b/jcapiv2/docs/SystemGroupMembersMembershipApi.md index 336552e..211db93 100644 --- a/jcapiv2/docs/SystemGroupMembersMembershipApi.md +++ b/jcapiv2/docs/SystemGroupMembersMembershipApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -61,10 +61,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the System Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -103,16 +103,16 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -171,17 +171,17 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupMembersReq.new, # SystemGroupMembersReq | - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -240,18 +240,18 @@ end api_instance = JCAPIv2::SystemGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: "" # String | } begin @@ -272,8 +272,8 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/SystemGroupsApi.md b/jcapiv2/docs/SystemGroupsApi.md index b93d3de..2cb8134 100644 --- a/jcapiv2/docs/SystemGroupsApi.md +++ b/jcapiv2/docs/SystemGroupsApi.md @@ -42,18 +42,18 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -113,15 +113,15 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupGraphManagementReq.new, # SystemGroupGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -178,18 +178,18 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -208,10 +208,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the System Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -250,16 +250,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -318,17 +318,17 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupMembersReq.new, # SystemGroupMembersReq | - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -387,18 +387,18 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: "" # String | } begin @@ -419,8 +419,8 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -459,16 +459,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -527,16 +527,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -595,16 +595,16 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the System Group. +group_id = "group_id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -663,14 +663,14 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = 'id_example' # String | ObjectID of the System Group. +id = "id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -726,14 +726,14 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = 'id_example' # String | ObjectID of the System Group. +id = "id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -790,17 +790,17 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -818,11 +818,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -861,15 +861,15 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = 'id_example' # String | ObjectID of the System Group. +id = "id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupData.new, # SystemGroupData | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -927,13 +927,13 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupData.new, # SystemGroupData | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -990,15 +990,15 @@ end api_instance = JCAPIv2::SystemGroupsApi.new -id = 'id_example' # String | ObjectID of the System Group. +id = "id_example" # String | ObjectID of the System Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGroupData.new, # SystemGroupData | - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/SystemsApi.md b/jcapiv2/docs/SystemsApi.md index 1440451..3cd3a02 100644 --- a/jcapiv2/docs/SystemsApi.md +++ b/jcapiv2/docs/SystemsApi.md @@ -35,20 +35,20 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -110,17 +110,17 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::SystemGraphManagementReq.new, # SystemGraphManagementReq | - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -179,20 +179,20 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -211,12 +211,12 @@ Name | Type | Description | Notes **system_id** | **String**| ObjectID of the System. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -255,16 +255,16 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -323,16 +323,16 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -391,19 +391,19 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: '' # String | + x_org_id: "" # String | skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -427,7 +427,7 @@ Name | Type | Description | Notes **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] **date** | **String**| Current date header for the System Context API | [optional] **authorization** | **String**| Authorization header for the System Context API | [optional] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] ### Return type @@ -465,18 +465,18 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | ObjectID of the System. +system_id = "system_id_example" # String | ObjectID of the System. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - date: 'date_example', # String | Current date header for the System Context API - authorization: 'authorization_example', # String | Authorization header for the System Context API - x_org_id: '' # String | + date: "date_example", # String | Current date header for the System Context API + authorization: "authorization_example", # String | Authorization header for the System Context API + x_org_id: "" # String | } begin @@ -537,10 +537,10 @@ end api_instance = JCAPIv2::SystemsApi.new -system_id = 'system_id_example' # String | +system_id = "system_id_example" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/UserGroupAssociationsApi.md b/jcapiv2/docs/UserGroupAssociationsApi.md index 375b79b..f3f0083 100644 --- a/jcapiv2/docs/UserGroupAssociationsApi.md +++ b/jcapiv2/docs/UserGroupAssociationsApi.md @@ -38,18 +38,18 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -109,15 +109,15 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupGraphManagementReq.new, # UserGroupGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -174,16 +174,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -242,16 +242,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -310,16 +310,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -378,16 +378,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -446,16 +446,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -514,16 +514,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -582,16 +582,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -650,16 +650,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -718,16 +718,16 @@ end api_instance = JCAPIv2::UserGroupAssociationsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/UserGroupMembersMembershipApi.md b/jcapiv2/docs/UserGroupMembersMembershipApi.md index a1f59ae..c6dd8a3 100644 --- a/jcapiv2/docs/UserGroupMembersMembershipApi.md +++ b/jcapiv2/docs/UserGroupMembersMembershipApi.md @@ -31,18 +31,18 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -61,10 +61,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -103,16 +103,16 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -171,15 +171,15 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupMembersReq.new, # UserGroupMembersReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -236,18 +236,18 @@ end api_instance = JCAPIv2::UserGroupMembersMembershipApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -266,10 +266,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/docs/UserGroupsApi.md b/jcapiv2/docs/UserGroupsApi.md index b824a8c..e225a9e 100644 --- a/jcapiv2/docs/UserGroupsApi.md +++ b/jcapiv2/docs/UserGroupsApi.md @@ -48,18 +48,18 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -119,15 +119,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupGraphManagementReq.new, # UserGroupGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -184,18 +184,18 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -214,10 +214,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -256,16 +256,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -324,15 +324,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupMembersReq.new, # UserGroupMembersReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -389,18 +389,18 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -419,10 +419,10 @@ Name | Type | Description | Notes **group_id** | **String**| ObjectID of the User Group. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -461,16 +461,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -529,16 +529,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -597,16 +597,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -665,16 +665,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -733,16 +733,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -801,16 +801,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -869,16 +869,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -937,16 +937,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1005,16 +1005,16 @@ end api_instance = JCAPIv2::UserGroupsApi.new -group_id = 'group_id_example' # String | ObjectID of the User Group. +group_id = "group_id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1073,14 +1073,14 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = 'id_example' # String | ObjectID of the User Group. +id = "id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1136,14 +1136,14 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = 'id_example' # String | ObjectID of the User Group. +id = "id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1200,17 +1200,17 @@ end api_instance = JCAPIv2::UserGroupsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -1228,11 +1228,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -1271,15 +1271,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = 'id_example' # String | ObjectID of the User Group. +id = "id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupPost.new, # UserGroupPost | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1337,13 +1337,13 @@ end api_instance = JCAPIv2::UserGroupsApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupPost.new, # UserGroupPost | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -1400,15 +1400,15 @@ end api_instance = JCAPIv2::UserGroupsApi.new -id = 'id_example' # String | ObjectID of the User Group. +id = "id_example" # String | ObjectID of the User Group. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGroupPut.new, # UserGroupPut | - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/UsersApi.md b/jcapiv2/docs/UsersApi.md index dd0f7c3..efe24b0 100644 --- a/jcapiv2/docs/UsersApi.md +++ b/jcapiv2/docs/UsersApi.md @@ -39,18 +39,18 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | -targets = ['targets_example'] # Array | +targets = ["targets_example"] # Array | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -110,15 +110,15 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::UserGraphManagementReq.new, # UserGraphManagementReq | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -175,18 +175,18 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -205,10 +205,10 @@ Name | Type | Description | Notes **user_id** | **String**| ObjectID of the User. | **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -247,16 +247,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -315,16 +315,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -383,16 +383,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -451,16 +451,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -519,16 +519,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -587,16 +587,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -655,17 +655,17 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. - x_org_id: '' # String | + x_org_id: "" # String | skip: 0, # Integer | The offset into the records to return. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in } begin @@ -687,7 +687,7 @@ Name | Type | Description | Notes **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **x_org_id** | **String**| | [optional] [default to ] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] ### Return type @@ -725,16 +725,16 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -793,15 +793,15 @@ end api_instance = JCAPIv2::UsersApi.new -user_id = 'user_id_example' # String | ObjectID of the User. +user_id = "user_id_example" # String | ObjectID of the User. -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::Emailrequest.new, # Emailrequest | - x_org_id: '' # String | + x_org_id: "" # String | } begin diff --git a/jcapiv2/docs/WorkdayImportApi.md b/jcapiv2/docs/WorkdayImportApi.md index 867b372..fcc049c 100644 --- a/jcapiv2/docs/WorkdayImportApi.md +++ b/jcapiv2/docs/WorkdayImportApi.md @@ -38,15 +38,15 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = 'workday_id_example' # String | +workday_id = "workday_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::AuthInputObject.new, # AuthInputObject | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -103,14 +103,14 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = 'workday_id_example' # String | +workday_id = "workday_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -166,14 +166,14 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -230,14 +230,14 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -294,15 +294,15 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = 'workday_id_example' # String | +workday_id = "workday_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: [JCAPIv2::BulkUserCreate.new], # Array | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -360,18 +360,18 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = 'id_example' # String | +id = "id_example" # String | -job_id = 'job_id_example' # String | +job_id = "job_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -431,17 +431,17 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - fields: ['[]'], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + fields: ["fields_example"], # Array | The comma separated fields included in the returned records. If omitted the default list of fields will be returned. limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - filter: ['[]'], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + filter: ["filter_example"], # Array | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in + x_org_id: "" # String | } begin @@ -459,11 +459,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **content_type** | **String**| | [default to application/json] **accept** | **String**| | [default to application/json] - **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] [default to []] + **fields** | [**Array<String>**](String.md)| The comma separated fields included in the returned records. If omitted the default list of fields will be returned. | [optional] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] - **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] + **filter** | [**Array<String>**](String.md)| Supported operators are: eq, ne, gt, ge, lt, le, between, search, in | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type @@ -502,13 +502,13 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::WorkdayInput.new, # WorkdayInput | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -564,15 +564,15 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -id = 'id_example' # String | +id = "id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { body: JCAPIv2::WorkdayFields.new, # WorkdayFields | - x_org_id: '' # String | + x_org_id: "" # String | } begin @@ -630,13 +630,13 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { - state: 'state_example', # String | - x_org_id: '' # String | + state: "state_example", # String | + x_org_id: "" # String | } begin @@ -692,17 +692,17 @@ end api_instance = JCAPIv2::WorkdayImportApi.new -workday_id = 'workday_id_example' # String | +workday_id = "workday_id_example" # String | -content_type = 'application/json' # String | +content_type = "application/json" # String | -accept = 'application/json' # String | +accept = "application/json" # String | opts = { limit: 10, # Integer | The number of records to return at once. Limited to 100. skip: 0, # Integer | The offset into the records to return. - sort: ['[]'], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. - x_org_id: '' # String | + sort: ["sort_example"], # Array | The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + x_org_id: "" # String | } begin @@ -723,7 +723,7 @@ Name | Type | Description | Notes **accept** | **String**| | [default to application/json] **limit** | **Integer**| The number of records to return at once. Limited to 100. | [optional] [default to 10] **skip** | **Integer**| The offset into the records to return. | [optional] [default to 0] - **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] [default to []] + **sort** | [**Array<String>**](String.md)| The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. | [optional] **x_org_id** | **String**| | [optional] [default to ] ### Return type diff --git a/jcapiv2/jcapiv2.gemspec b/jcapiv2/jcapiv2.gemspec index 709f614..31e0276 100644 --- a/jcapiv2/jcapiv2.gemspec +++ b/jcapiv2/jcapiv2.gemspec @@ -1,5 +1,5 @@ # -*- encoding: utf-8 -*- - +# =begin #JumpCloud APIs @@ -8,7 +8,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -24,7 +24,8 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/swagger-api/swagger-codegen" s.summary = "JumpCloud APIs Ruby Gem" s.description = " JumpCloud's V2 API. This set of endpoints allows JumpCloud customers to manage objects, groupings and mappings and interact with the JumpCloud Graph." - s.license = "Unlicense" + # TODO uncommnet and update below with a proper license + #s.license = "Apache 2.0" s.required_ruby_version = ">= 1.9" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' @@ -38,7 +39,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16' s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12' - s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } + s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] s.require_paths = ["lib"] diff --git a/jcapiv2/lib/jcapiv2.rb b/jcapiv2/lib/jcapiv2.rb index 597da57..bff9ee1 100644 --- a/jcapiv2/lib/jcapiv2.rb +++ b/jcapiv2/lib/jcapiv2.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end diff --git a/jcapiv2/lib/jcapiv2/api/active_directory_api.rb b/jcapiv2/lib/jcapiv2/api/active_directory_api.rb index 9528bea..fccb576 100644 --- a/jcapiv2/lib/jcapiv2/api/active_directory_api.rb +++ b/jcapiv2/lib/jcapiv2/api/active_directory_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class ActiveDirectoryApi @@ -19,6 +19,7 @@ class ActiveDirectoryApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Delete an Active Directory # This endpoint allows you to delete an Active Directory Instance. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID} \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY' ``` # @param id ObjectID of this Active Directory instance. @@ -29,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def activedirectories_delete(id, content_type, accept, opts = {}) activedirectories_delete_with_http_info(id, content_type, accept, opts) - nil + return nil end # Delete an Active Directory @@ -42,7 +43,7 @@ def activedirectories_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_delete ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -57,7 +58,7 @@ def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_delete" end # resource path - local_var_path = '/activedirectories/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/activedirectories/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -89,6 +90,7 @@ def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Get an Active Directory # This endpoint returns a specific Active Directory. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID} \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of this Active Directory instance. @@ -99,7 +101,7 @@ def activedirectories_delete_with_http_info(id, content_type, accept, opts = {}) # @return [ActiveDirectoryOutput] def activedirectories_get(id, content_type, accept, opts = {}) data, _status_code, _headers = activedirectories_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get an Active Directory @@ -112,7 +114,7 @@ def activedirectories_get(id, content_type, accept, opts = {}) # @return [Array<(ActiveDirectoryOutput, Fixnum, Hash)>] ActiveDirectoryOutput data, response status code and response headers def activedirectories_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_get ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -127,7 +129,7 @@ def activedirectories_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_get" end # resource path - local_var_path = '/activedirectories/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/activedirectories/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -160,21 +162,22 @@ def activedirectories_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List Active Directories # This endpoint allows you to list all your Active Directory Instances. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/ \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def activedirectories_list(content_type, accept, opts = {}) data, _status_code, _headers = activedirectories_list_with_http_info(content_type, accept, opts) - data + return data end # List Active Directories @@ -191,7 +194,7 @@ def activedirectories_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def activedirectories_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_list ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -202,7 +205,7 @@ def activedirectories_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_list" end # resource path - local_var_path = '/activedirectories' + local_var_path = "/activedirectories" # query parameters query_params = {} @@ -240,6 +243,7 @@ def activedirectories_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create a new Active Directory # This endpoint allows you to create a new Active Directory. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/activedirectories/ \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"domain\": \"{DC=AD_domain_name;DC=com}\" } ' ``` # @param content_type @@ -250,7 +254,7 @@ def activedirectories_list_with_http_info(content_type, accept, opts = {}) # @return [ActiveDirectoryOutput] def activedirectories_post(content_type, accept, opts = {}) data, _status_code, _headers = activedirectories_post_with_http_info(content_type, accept, opts) - data + return data end # Create a new Active Directory @@ -263,7 +267,7 @@ def activedirectories_post(content_type, accept, opts = {}) # @return [Array<(ActiveDirectoryOutput, Fixnum, Hash)>] ActiveDirectoryOutput data, response status code and response headers def activedirectories_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.activedirectories_post ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.activedirectories_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -274,7 +278,7 @@ def activedirectories_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.activedirectories_post" end # resource path - local_var_path = '/activedirectories' + local_var_path = "/activedirectories" # query parameters query_params = {} @@ -307,6 +311,7 @@ def activedirectories_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # List the associations of an Active Directory instance # This endpoint returns the direct associations of this Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/associations?targets=user \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id @@ -320,7 +325,7 @@ def activedirectories_post_with_http_info(content_type, accept, opts = {}) # @return [Array] def graph_active_directory_associations_list(activedirectory_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts) - data + return data end # List the associations of an Active Directory instance @@ -336,7 +341,7 @@ def graph_active_directory_associations_list(activedirectory_id, targets, conten # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.graph_active_directory_associations_list ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.graph_active_directory_associations_list ..." end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -355,7 +360,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.graph_active_directory_associations_list" end # resource path - local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -391,6 +396,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, end return data, status_code, headers end + # Manage the associations of an Active Directory instance # This endpoint allows you to manage the _direct_ associations of an Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/activedirectories/{AD_Instance_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" } ' ``` # @param activedirectory_id @@ -402,7 +408,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, # @return [nil] def graph_active_directory_associations_post(activedirectory_id, content_type, accept, opts = {}) graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts) - nil + return nil end # Manage the associations of an Active Directory instance @@ -416,7 +422,7 @@ def graph_active_directory_associations_post(activedirectory_id, content_type, a # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.graph_active_directory_associations_post ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.graph_active_directory_associations_post ..." end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -431,7 +437,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.graph_active_directory_associations_post" end # resource path - local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -463,6 +469,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, end return data, status_code, headers end + # List the User Groups bound to an Active Directory instance # This endpoint will return all Users Groups bound to an Active Directory instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Active Directory instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Active Directory instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id ObjectID of the Active Directory instance. @@ -475,7 +482,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, # @return [Array] def graph_active_directory_traverse_user_group(activedirectory_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts) - data + return data end # List the User Groups bound to an Active Directory instance @@ -490,7 +497,7 @@ def graph_active_directory_traverse_user_group(activedirectory_id, content_type, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ActiveDirectoryApi.graph_active_directory_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: ActiveDirectoryApi.graph_active_directory_traverse_user_group ..." end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -505,7 +512,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id fail ArgumentError, "Missing the required parameter 'accept' when calling ActiveDirectoryApi.graph_active_directory_traverse_user_group" end # resource path - local_var_path = '/activedirectories/{activedirectory_id}/usergroups'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = "/activedirectories/{activedirectory_id}/usergroups".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/applications_api.rb b/jcapiv2/lib/jcapiv2/api/applications_api.rb index 9b5c0e8..75ef44f 100644 --- a/jcapiv2/lib/jcapiv2/api/applications_api.rb +++ b/jcapiv2/lib/jcapiv2/api/applications_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class ApplicationsApi @@ -19,6 +19,7 @@ class ApplicationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of an Application # This endpoint will return the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Applications and User Groups. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_application_associations_list(application_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts) - data + return data end # List the associations of an Application @@ -48,7 +49,7 @@ def graph_application_associations_list(application_id, targets, content_type, a # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_associations_list ...' + @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_associations_list ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -67,7 +68,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_associations_list" end # resource path - local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, end return data, status_code, headers end + # Manage the associations of an Application # This endpoint allows you to manage the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Application and User Groups. #### Sample Request ``` curl -X POST 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations' \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param application_id ObjectID of the Application. @@ -114,7 +116,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, # @return [nil] def graph_application_associations_post(application_id, content_type, accept, opts = {}) graph_application_associations_post_with_http_info(application_id, content_type, accept, opts) - nil + return nil end # Manage the associations of an Application @@ -128,7 +130,7 @@ def graph_application_associations_post(application_id, content_type, accept, op # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_application_associations_post_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_associations_post ...' + @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_associations_post ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -143,7 +145,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_associations_post" end # resource path - local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t end return data, status_code, headers end + # List the Users bound to an Application # This endpoint will return all Users bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -187,7 +190,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t # @return [Array] def graph_application_traverse_user(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts) - data + return data end # List the Users bound to an Application @@ -202,7 +205,7 @@ def graph_application_traverse_user(application_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_traverse_user ...' + @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_traverse_user ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -217,7 +220,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_traverse_user" end # resource path - local_var_path = '/applications/{application_id}/users'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/users".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, end return data, status_code, headers end + # List the User Groups bound to an Application # This endpoint will return all Users Groups bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -264,7 +268,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, # @return [Array] def graph_application_traverse_user_group(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts) - data + return data end # List the User Groups bound to an Application @@ -279,7 +283,7 @@ def graph_application_traverse_user_group(application_id, content_type, accept, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: ApplicationsApi.graph_application_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: ApplicationsApi.graph_application_traverse_user_group ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -294,7 +298,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content fail ArgumentError, "Missing the required parameter 'accept' when calling ApplicationsApi.graph_application_traverse_user_group" end # resource path - local_var_path = '/applications/{application_id}/usergroups'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/usergroups".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb b/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb index 2526239..535f95a 100644 --- a/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb +++ b/jcapiv2/lib/jcapiv2/api/bulk_job_requests_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class BulkJobRequestsApi @@ -19,6 +19,7 @@ class BulkJobRequestsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Bulk Users Create # The endpoint allows you to create a bulk job to asynchronously create users. See [Create a System User](https://docs.jumpcloud.com/1.0/systemusers/create-a-system-user) for full list of attributes. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/bulk/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '[ { \"email\":\"{email}\", \"firstname\":\"{firstname}\", \"lastname\":\"{firstname}\", \"username\":\"{username}\", \"attributes\":[ {\"name\":\"EmployeeID\",\"value\":\"0000\"}, {\"name\":\"Custom\",\"value\":\"attribute\"} ] } ] ``` # @param content_type @@ -29,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [JobId] def bulk_users_create(content_type, accept, opts = {}) data, _status_code, _headers = bulk_users_create_with_http_info(content_type, accept, opts) - data + return data end # Bulk Users Create @@ -42,7 +43,7 @@ def bulk_users_create(content_type, accept, opts = {}) # @return [Array<(JobId, Fixnum, Hash)>] JobId data, response status code and response headers def bulk_users_create_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.bulk_users_create ...' + @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.bulk_users_create ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -53,7 +54,7 @@ def bulk_users_create_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.bulk_users_create" end # resource path - local_var_path = '/bulk/users' + local_var_path = "/bulk/users" # query parameters query_params = {} @@ -86,6 +87,7 @@ def bulk_users_create_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # List Bulk Users Results # This endpoint will return the results of particular user import or update job request. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/bulk/users/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param job_id @@ -98,7 +100,7 @@ def bulk_users_create_with_http_info(content_type, accept, opts = {}) # @return [Array] def bulk_users_create_results(job_id, content_type, accept, opts = {}) data, _status_code, _headers = bulk_users_create_results_with_http_info(job_id, content_type, accept, opts) - data + return data end # List Bulk Users Results @@ -113,7 +115,7 @@ def bulk_users_create_results(job_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.bulk_users_create_results ...' + @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.bulk_users_create_results ..." end # verify the required parameter 'job_id' is set if @api_client.config.client_side_validation && job_id.nil? @@ -128,7 +130,7 @@ def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.bulk_users_create_results" end # resource path - local_var_path = '/bulk/users/{job_id}/results'.sub('{' + 'job_id' + '}', job_id.to_s) + local_var_path = "/bulk/users/{job_id}/results".sub('{' + 'job_id' + '}', job_id.to_s) # query parameters query_params = {} @@ -163,6 +165,7 @@ def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts end return data, status_code, headers end + # Bulk Users Update # The endpoint allows you to create a bulk job to asynchronously update users. See [Update a System User](https://docs.jumpcloud.com/1.0/systemusers/update-a-system-user) for full list of attributes. #### Sample Request ``` curl -X PATCH https://console.jumpcloud.com/api/v2/bulk/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '[ { \"id\":\"5be9fb4ddb01290001e85109\", \"firstname\":\"{UPDATED_FIRSTNAME}\", \"department\":\"{UPDATED_DEPARTMENT}\", \"attributes\":[ {\"name\":\"Custom\",\"value\":\"{ATTRIBUTE_VALUE}\"} ] }, { \"id\":\"5be9fb4ddb01290001e85109\", \"firstname\":\"{UPDATED_FIRSTNAME}\", \"costCenter\":\"{UPDATED_COST_CENTER}\", \"phoneNumbers\":[ {\"type\":\"home\",\"number\":\"{HOME_PHONE_NUMBER}\"}, {\"type\":\"work\",\"number\":\"{WORK_PHONE_NUMBER}\"} ] } ] ``` # @param content_type @@ -173,7 +176,7 @@ def bulk_users_create_results_with_http_info(job_id, content_type, accept, opts # @return [JobId] def bulk_users_update(content_type, accept, opts = {}) data, _status_code, _headers = bulk_users_update_with_http_info(content_type, accept, opts) - data + return data end # Bulk Users Update @@ -186,7 +189,7 @@ def bulk_users_update(content_type, accept, opts = {}) # @return [Array<(JobId, Fixnum, Hash)>] JobId data, response status code and response headers def bulk_users_update_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.bulk_users_update ...' + @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.bulk_users_update ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -197,7 +200,7 @@ def bulk_users_update_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.bulk_users_update" end # resource path - local_var_path = '/bulk/users' + local_var_path = "/bulk/users" # query parameters query_params = {} @@ -230,6 +233,7 @@ def bulk_users_update_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Get Job (incomplete) # **This endpoint is not complete and should remain hidden as it's not functional yet.** # @param id @@ -240,7 +244,7 @@ def bulk_users_update_with_http_info(content_type, accept, opts = {}) # @return [JobDetails] def jobs_get(id, content_type, accept, opts = {}) data, _status_code, _headers = jobs_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get Job (incomplete) @@ -253,7 +257,7 @@ def jobs_get(id, content_type, accept, opts = {}) # @return [Array<(JobDetails, Fixnum, Hash)>] JobDetails data, response status code and response headers def jobs_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.jobs_get ...' + @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.jobs_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -268,7 +272,7 @@ def jobs_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.jobs_get" end # resource path - local_var_path = '/jobs/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/jobs/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -301,6 +305,7 @@ def jobs_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List Job Results # This endpoint will return the results of particular import job request. #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/jobs/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -313,7 +318,7 @@ def jobs_get_with_http_info(id, content_type, accept, opts = {}) # @return [Array] def jobs_results(id, content_type, accept, opts = {}) data, _status_code, _headers = jobs_results_with_http_info(id, content_type, accept, opts) - data + return data end # List Job Results @@ -328,7 +333,7 @@ def jobs_results(id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def jobs_results_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: BulkJobRequestsApi.jobs_results ...' + @api_client.config.logger.debug "Calling API: BulkJobRequestsApi.jobs_results ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -343,7 +348,7 @@ def jobs_results_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling BulkJobRequestsApi.jobs_results" end # resource path - local_var_path = '/jobs/{id}/results'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/jobs/{id}/results".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/commands_api.rb b/jcapiv2/lib/jcapiv2/api/commands_api.rb index c5e2edd..3bd8642 100644 --- a/jcapiv2/lib/jcapiv2/api/commands_api.rb +++ b/jcapiv2/lib/jcapiv2/api/commands_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class CommandsApi @@ -19,6 +19,7 @@ class CommandsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a Command # This endpoint will return the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations?targets=system_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_command_associations_list(command_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts) - data + return data end # List the associations of a Command @@ -48,7 +49,7 @@ def graph_command_associations_list(command_id, targets, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_associations_list ...' + @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_associations_list ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -67,7 +68,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_associations_list" end # resource path - local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ end return data, status_code, headers end + # Manage the associations of a Command # This endpoint will allow you to manage the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"Group_ID\" }' ``` # @param command_id ObjectID of the Command. @@ -114,7 +116,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ # @return [nil] def graph_command_associations_post(command_id, content_type, accept, opts = {}) graph_command_associations_post_with_http_info(command_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a Command @@ -128,7 +130,7 @@ def graph_command_associations_post(command_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_command_associations_post_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_associations_post ...' + @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_associations_post ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -143,7 +145,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_associations_post" end # resource path - local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc end return data, status_code, headers end + # List the Systems bound to a Command # This endpoint will return all Systems bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systems \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -187,7 +190,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc # @return [Array] def graph_command_traverse_system(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts) - data + return data end # List the Systems bound to a Command @@ -202,7 +205,7 @@ def graph_command_traverse_system(command_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_traverse_system ...' + @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_traverse_system ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -217,7 +220,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_traverse_system" end # resource path - local_var_path = '/commands/{command_id}/systems'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/systems".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep end return data, status_code, headers end + # List the System Groups bound to a Command # This endpoint will return all System Groups bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systemgroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -264,7 +268,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep # @return [Array] def graph_command_traverse_system_group(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts) - data + return data end # List the System Groups bound to a Command @@ -279,7 +283,7 @@ def graph_command_traverse_system_group(command_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: CommandsApi.graph_command_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: CommandsApi.graph_command_traverse_system_group ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -294,7 +298,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling CommandsApi.graph_command_traverse_system_group" end # resource path - local_var_path = '/commands/{command_id}/systemgroups'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/systemgroups".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/directories_api.rb b/jcapiv2/lib/jcapiv2/api/directories_api.rb index 5cbd04e..dfc5cf4 100644 --- a/jcapiv2/lib/jcapiv2/api/directories_api.rb +++ b/jcapiv2/lib/jcapiv2/api/directories_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class DirectoriesApi @@ -19,20 +19,21 @@ class DirectoriesApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List All Directories # This endpoint returns all active directories (LDAP, O365 Suite, G-Suite). #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/directories \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :x_org_id (default to ) # @return [Array] def directories_list(content_type, accept, opts = {}) data, _status_code, _headers = directories_list_with_http_info(content_type, accept, opts) - data + return data end # List All Directories @@ -48,7 +49,7 @@ def directories_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def directories_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DirectoriesApi.directories_list ...' + @api_client.config.logger.debug "Calling API: DirectoriesApi.directories_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -59,7 +60,7 @@ def directories_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling DirectoriesApi.directories_list" end # resource path - local_var_path = '/directories' + local_var_path = "/directories" # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/fde_api.rb b/jcapiv2/lib/jcapiv2/api/fde_api.rb index 96a70b8..9bf1afd 100644 --- a/jcapiv2/lib/jcapiv2/api/fde_api.rb +++ b/jcapiv2/lib/jcapiv2/api/fde_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class FdeApi @@ -19,6 +19,7 @@ class FdeApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Get System FDE Key # This endpoint will return the current (latest) fde key saved for a system. # @param system_id @@ -27,7 +28,7 @@ def initialize(api_client = ApiClient.default) # @return [Systemfdekey] def systems_get_fde_key(system_id, opts = {}) data, _status_code, _headers = systems_get_fde_key_with_http_info(system_id, opts) - data + return data end # Get System FDE Key @@ -38,14 +39,14 @@ def systems_get_fde_key(system_id, opts = {}) # @return [Array<(Systemfdekey, Fixnum, Hash)>] Systemfdekey data, response status code and response headers def systems_get_fde_key_with_http_info(system_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: FdeApi.systems_get_fde_key ...' + @api_client.config.logger.debug "Calling API: FdeApi.systems_get_fde_key ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling FdeApi.systems_get_fde_key" end # resource path - local_var_path = '/systems/{system_id}/fdekey'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/fdekey".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/g_suite_api.rb b/jcapiv2/lib/jcapiv2/api/g_suite_api.rb index b5f3343..8a8b87e 100644 --- a/jcapiv2/lib/jcapiv2/api/g_suite_api.rb +++ b/jcapiv2/lib/jcapiv2/api/g_suite_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class GSuiteApi @@ -19,6 +19,7 @@ class GSuiteApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts) - data + return data end # List the associations of a G Suite instance @@ -48,7 +49,7 @@ def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, op # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_associations_list ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_associations_list ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -67,7 +68,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.graph_g_suite_associations_list" end # resource path - local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t end return data, status_code, headers end + # Manage the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -112,7 +114,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t # @return [nil] def graph_g_suite_associations_post(gsuite_id, opts = {}) graph_g_suite_associations_post_with_http_info(gsuite_id, opts) - nil + return nil end # Manage the associations of a G Suite instance @@ -124,14 +126,14 @@ def graph_g_suite_associations_post(gsuite_id, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_associations_post ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_associations_post ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? fail ArgumentError, "Missing the required parameter 'gsuite_id' when calling GSuiteApi.graph_g_suite_associations_post" end # resource path - local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -161,6 +163,7 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) end return data, status_code, headers end + # List the Users bound to a G Suite instance # This endpoint will return all Users bound to a G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -173,7 +176,7 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) # @return [Array] def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts) - data + return data end # List the Users bound to a G Suite instance @@ -188,7 +191,7 @@ def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_traverse_user ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_traverse_user ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -203,7 +206,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.graph_g_suite_traverse_user" end # resource path - local_var_path = '/gsuites/{gsuite_id}/users'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/users".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -238,6 +241,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, end return data, status_code, headers end + # List the User Groups bound to a G Suite instance # This endpoint will return all User Groups bound to an G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{GSuite_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -250,7 +254,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, # @return [Array] def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a G Suite instance @@ -265,7 +269,7 @@ def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.graph_g_suite_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.graph_g_suite_traverse_user_group ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -280,7 +284,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.graph_g_suite_traverse_user_group" end # resource path - local_var_path = '/gsuites/{gsuite_id}/usergroups'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/usergroups".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -315,6 +319,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac end return data, status_code, headers end + # Deletes a G Suite translation rule # This endpoint allows you to delete a translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id @@ -325,7 +330,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac # @return [nil] def translation_rules_g_suite_delete(gsuite_id, id, content_type, accept, opts = {}) translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, accept, opts) - nil + return nil end # Deletes a G Suite translation rule @@ -338,7 +343,7 @@ def translation_rules_g_suite_delete(gsuite_id, id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_delete ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_delete ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -357,7 +362,7 @@ def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_delete" end # resource path - local_var_path = '/gsuites/{gsuite_id}/translationrules/{id}'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/gsuites/{gsuite_id}/translationrules/{id}".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -388,6 +393,7 @@ def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, end return data, status_code, headers end + # Gets a specific g suite translation rule # This endpoint returns a specific translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. ###### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id @@ -398,7 +404,7 @@ def translation_rules_g_suite_delete_with_http_info(gsuite_id, id, content_type, # @return [GSuiteTranslationRule] def translation_rules_g_suite_get(gsuite_id, id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, accept, opts) - data + return data end # Gets a specific g suite translation rule @@ -411,7 +417,7 @@ def translation_rules_g_suite_get(gsuite_id, id, content_type, accept, opts = {} # @return [Array<(GSuiteTranslationRule, Fixnum, Hash)>] GSuiteTranslationRule data, response status code and response headers def translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_get ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_get ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -430,7 +436,7 @@ def translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_get" end # resource path - local_var_path = '/gsuites/{gsuite_id}/translationrules/{id}'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/gsuites/{gsuite_id}/translationrules/{id}".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -462,21 +468,22 @@ def translation_rules_g_suite_get_with_http_info(gsuite_id, id, content_type, ac end return data, status_code, headers end + # List all the G Suite Translation Rules # This endpoint returns all graph translation rules for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [Array] def translation_rules_g_suite_list(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accept, opts) - data + return data end # List all the G Suite Translation Rules @@ -493,7 +500,7 @@ def translation_rules_g_suite_list(gsuite_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_list ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_list ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -508,7 +515,7 @@ def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_list" end # resource path - local_var_path = '/gsuites/{gsuite_id}/translationrules'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/translationrules".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -545,6 +552,7 @@ def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accep end return data, status_code, headers end + # Create a new G Suite Translation Rule # This endpoint allows you to create a translation rule for a specific G Suite instance. These rules specify how JumpCloud attributes translate to [G Suite Admin SDK](https://developers.google.com/admin-sdk/directory/) attributes. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ {Translation Rule Parameters} }' ``` # @param gsuite_id @@ -555,7 +563,7 @@ def translation_rules_g_suite_list_with_http_info(gsuite_id, content_type, accep # @return [GSuiteTranslationRule] def translation_rules_g_suite_post(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_g_suite_post_with_http_info(gsuite_id, content_type, accept, opts) - data + return data end # Create a new G Suite Translation Rule @@ -568,7 +576,7 @@ def translation_rules_g_suite_post(gsuite_id, content_type, accept, opts = {}) # @return [Array<(GSuiteTranslationRule, Fixnum, Hash)>] GSuiteTranslationRule data, response status code and response headers def translation_rules_g_suite_post_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GSuiteApi.translation_rules_g_suite_post ...' + @api_client.config.logger.debug "Calling API: GSuiteApi.translation_rules_g_suite_post ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -583,7 +591,7 @@ def translation_rules_g_suite_post_with_http_info(gsuite_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GSuiteApi.translation_rules_g_suite_post" end # resource path - local_var_path = '/gsuites/{gsuite_id}/translationrules'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/translationrules".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/graph_api.rb b/jcapiv2/lib/jcapiv2/api/graph_api.rb index 49d91fd..5c2010e 100644 --- a/jcapiv2/lib/jcapiv2/api/graph_api.rb +++ b/jcapiv2/lib/jcapiv2/api/graph_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class GraphApi @@ -19,6 +19,7 @@ class GraphApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of an Active Directory instance # This endpoint returns the direct associations of this Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/associations?targets=user \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_active_directory_associations_list(activedirectory_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts) - data + return data end # List the associations of an Active Directory instance @@ -48,7 +49,7 @@ def graph_active_directory_associations_list(activedirectory_id, targets, conten # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_associations_list_with_http_info(activedirectory_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_active_directory_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_active_directory_associations_list ..." end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -67,7 +68,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_active_directory_associations_list" end # resource path - local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, end return data, status_code, headers end + # Manage the associations of an Active Directory instance # This endpoint allows you to manage the _direct_ associations of an Active Directory instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Active Directory and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/activedirectories/{AD_Instance_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" } ' ``` # @param activedirectory_id @@ -114,7 +116,7 @@ def graph_active_directory_associations_list_with_http_info(activedirectory_id, # @return [nil] def graph_active_directory_associations_post(activedirectory_id, content_type, accept, opts = {}) graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts) - nil + return nil end # Manage the associations of an Active Directory instance @@ -128,7 +130,7 @@ def graph_active_directory_associations_post(activedirectory_id, content_type, a # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_active_directory_associations_post_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_active_directory_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_active_directory_associations_post ..." end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -143,7 +145,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_active_directory_associations_post" end # resource path - local_var_path = '/activedirectories/{activedirectory_id}/associations'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = "/activedirectories/{activedirectory_id}/associations".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, end return data, status_code, headers end + # List the User Groups bound to an Active Directory instance # This endpoint will return all Users Groups bound to an Active Directory instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Active Directory instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Active Directory instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/activedirectories/{ActiveDirectory_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param activedirectory_id ObjectID of the Active Directory instance. @@ -187,7 +190,7 @@ def graph_active_directory_associations_post_with_http_info(activedirectory_id, # @return [Array] def graph_active_directory_traverse_user_group(activedirectory_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts) - data + return data end # List the User Groups bound to an Active Directory instance @@ -202,7 +205,7 @@ def graph_active_directory_traverse_user_group(activedirectory_id, content_type, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_active_directory_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_active_directory_traverse_user_group ..." end # verify the required parameter 'activedirectory_id' is set if @api_client.config.client_side_validation && activedirectory_id.nil? @@ -217,7 +220,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_active_directory_traverse_user_group" end # resource path - local_var_path = '/activedirectories/{activedirectory_id}/usergroups'.sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) + local_var_path = "/activedirectories/{activedirectory_id}/usergroups".sub('{' + 'activedirectory_id' + '}', activedirectory_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id end return data, status_code, headers end + # List the associations of an Application # This endpoint will return the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Applications and User Groups. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -265,7 +269,7 @@ def graph_active_directory_traverse_user_group_with_http_info(activedirectory_id # @return [Array] def graph_application_associations_list(application_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts) - data + return data end # List the associations of an Application @@ -281,7 +285,7 @@ def graph_application_associations_list(application_id, targets, content_type, a # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_associations_list_with_http_info(application_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_application_associations_list ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -300,7 +304,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_associations_list" end # resource path - local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -336,6 +340,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, end return data, status_code, headers end + # Manage the associations of an Application # This endpoint allows you to manage the _direct_ associations of an Application. A direct association can be a non-homogeneous relationship between 2 different objects, for example Application and User Groups. #### Sample Request ``` curl -X POST 'https://console.jumpcloud.com/api/v2/applications/{Application_ID}/associations' \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param application_id ObjectID of the Application. @@ -347,7 +352,7 @@ def graph_application_associations_list_with_http_info(application_id, targets, # @return [nil] def graph_application_associations_post(application_id, content_type, accept, opts = {}) graph_application_associations_post_with_http_info(application_id, content_type, accept, opts) - nil + return nil end # Manage the associations of an Application @@ -361,7 +366,7 @@ def graph_application_associations_post(application_id, content_type, accept, op # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_application_associations_post_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_application_associations_post ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -376,7 +381,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_associations_post" end # resource path - local_var_path = '/applications/{application_id}/associations'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/associations".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -408,6 +413,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t end return data, status_code, headers end + # List the Users bound to an Application # This endpoint will return all Users bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -420,7 +426,7 @@ def graph_application_associations_post_with_http_info(application_id, content_t # @return [Array] def graph_application_traverse_user(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts) - data + return data end # List the Users bound to an Application @@ -435,7 +441,7 @@ def graph_application_traverse_user(application_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_application_traverse_user ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -450,7 +456,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_traverse_user" end # resource path - local_var_path = '/applications/{application_id}/users'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/users".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -485,6 +491,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, end return data, status_code, headers end + # List the User Groups bound to an Application # This endpoint will return all Users Groups bound to an Application, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Application to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Application. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/applications/{Application_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param application_id ObjectID of the Application. @@ -497,7 +504,7 @@ def graph_application_traverse_user_with_http_info(application_id, content_type, # @return [Array] def graph_application_traverse_user_group(application_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts) - data + return data end # List the User Groups bound to an Application @@ -512,7 +519,7 @@ def graph_application_traverse_user_group(application_id, content_type, accept, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_application_traverse_user_group_with_http_info(application_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_application_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_application_traverse_user_group ..." end # verify the required parameter 'application_id' is set if @api_client.config.client_side_validation && application_id.nil? @@ -527,7 +534,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_application_traverse_user_group" end # resource path - local_var_path = '/applications/{application_id}/usergroups'.sub('{' + 'application_id' + '}', application_id.to_s) + local_var_path = "/applications/{application_id}/usergroups".sub('{' + 'application_id' + '}', application_id.to_s) # query parameters query_params = {} @@ -562,6 +569,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content end return data, status_code, headers end + # List the associations of a Command # This endpoint will return the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations?targets=system_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -575,7 +583,7 @@ def graph_application_traverse_user_group_with_http_info(application_id, content # @return [Array] def graph_command_associations_list(command_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts) - data + return data end # List the associations of a Command @@ -591,7 +599,7 @@ def graph_command_associations_list(command_id, targets, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_associations_list_with_http_info(command_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_command_associations_list ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -610,7 +618,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_associations_list" end # resource path - local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -646,6 +654,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ end return data, status_code, headers end + # Manage the associations of a Command # This endpoint will allow you to manage the _direct_ associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"Group_ID\" }' ``` # @param command_id ObjectID of the Command. @@ -657,7 +666,7 @@ def graph_command_associations_list_with_http_info(command_id, targets, content_ # @return [nil] def graph_command_associations_post(command_id, content_type, accept, opts = {}) graph_command_associations_post_with_http_info(command_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a Command @@ -671,7 +680,7 @@ def graph_command_associations_post(command_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_command_associations_post_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_command_associations_post ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -686,7 +695,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_associations_post" end # resource path - local_var_path = '/commands/{command_id}/associations'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/associations".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -718,6 +727,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc end return data, status_code, headers end + # List the Systems bound to a Command # This endpoint will return all Systems bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systems \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -730,7 +740,7 @@ def graph_command_associations_post_with_http_info(command_id, content_type, acc # @return [Array] def graph_command_traverse_system(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts) - data + return data end # List the Systems bound to a Command @@ -745,7 +755,7 @@ def graph_command_traverse_system(command_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_traverse_system ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_command_traverse_system ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -760,7 +770,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_traverse_system" end # resource path - local_var_path = '/commands/{command_id}/systems'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/systems".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -795,6 +805,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep end return data, status_code, headers end + # List the System Groups bound to a Command # This endpoint will return all System Groups bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Command to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Command. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systemgroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param command_id ObjectID of the Command. @@ -807,7 +818,7 @@ def graph_command_traverse_system_with_http_info(command_id, content_type, accep # @return [Array] def graph_command_traverse_system_group(command_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts) - data + return data end # List the System Groups bound to a Command @@ -822,7 +833,7 @@ def graph_command_traverse_system_group(command_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_command_traverse_system_group_with_http_info(command_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_command_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_command_traverse_system_group ..." end # verify the required parameter 'command_id' is set if @api_client.config.client_side_validation && command_id.nil? @@ -837,7 +848,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_command_traverse_system_group" end # resource path - local_var_path = '/commands/{command_id}/systemgroups'.sub('{' + 'command_id' + '}', command_id.to_s) + local_var_path = "/commands/{command_id}/systemgroups".sub('{' + 'command_id' + '}', command_id.to_s) # query parameters query_params = {} @@ -872,6 +883,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, end return data, status_code, headers end + # List the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -885,7 +897,7 @@ def graph_command_traverse_system_group_with_http_info(command_id, content_type, # @return [Array] def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts) - data + return data end # List the associations of a G Suite instance @@ -901,7 +913,7 @@ def graph_g_suite_associations_list(gsuite_id, targets, content_type, accept, op # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_associations_list ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -920,7 +932,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_g_suite_associations_list" end # resource path - local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -956,6 +968,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t end return data, status_code, headers end + # Manage the associations of a G Suite instance # This endpoint returns the _direct_ associations of this G Suite instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example G Suite and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -965,7 +978,7 @@ def graph_g_suite_associations_list_with_http_info(gsuite_id, targets, content_t # @return [nil] def graph_g_suite_associations_post(gsuite_id, opts = {}) graph_g_suite_associations_post_with_http_info(gsuite_id, opts) - nil + return nil end # Manage the associations of a G Suite instance @@ -977,14 +990,14 @@ def graph_g_suite_associations_post(gsuite_id, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_associations_post ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? fail ArgumentError, "Missing the required parameter 'gsuite_id' when calling GraphApi.graph_g_suite_associations_post" end # resource path - local_var_path = '/gsuites/{gsuite_id}/associations'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/associations".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -1014,6 +1027,7 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) end return data, status_code, headers end + # List the Users bound to a G Suite instance # This endpoint will return all Users bound to a G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{Gsuite_ID}/users \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -1026,7 +1040,7 @@ def graph_g_suite_associations_post_with_http_info(gsuite_id, opts = {}) # @return [Array] def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts) - data + return data end # List the Users bound to a G Suite instance @@ -1041,7 +1055,7 @@ def graph_g_suite_traverse_user(gsuite_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_traverse_user ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -1056,7 +1070,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_g_suite_traverse_user" end # resource path - local_var_path = '/gsuites/{gsuite_id}/users'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/users".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -1091,6 +1105,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, end return data, status_code, headers end + # List the User Groups bound to a G Suite instance # This endpoint will return all User Groups bound to an G Suite instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this G Suite instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this G Suite instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/gsuites/{GSuite_ID}/usergroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param gsuite_id ObjectID of the G Suite instance. @@ -1103,7 +1118,7 @@ def graph_g_suite_traverse_user_with_http_info(gsuite_id, content_type, accept, # @return [Array] def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a G Suite instance @@ -1118,7 +1133,7 @@ def graph_g_suite_traverse_user_group(gsuite_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_g_suite_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_g_suite_traverse_user_group ..." end # verify the required parameter 'gsuite_id' is set if @api_client.config.client_side_validation && gsuite_id.nil? @@ -1133,7 +1148,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_g_suite_traverse_user_group" end # resource path - local_var_path = '/gsuites/{gsuite_id}/usergroups'.sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) + local_var_path = "/gsuites/{gsuite_id}/usergroups".sub('{' + 'gsuite_id' + '}', gsuite_id.to_s) # query parameters query_params = {} @@ -1168,6 +1183,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac end return data, status_code, headers end + # List the associations of a LDAP Server # This endpoint returns the _direct_ associations of this LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1181,7 +1197,7 @@ def graph_g_suite_traverse_user_group_with_http_info(gsuite_id, content_type, ac # @return [Array] def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts) - data + return data end # List the associations of a LDAP Server @@ -1197,7 +1213,7 @@ def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, ac # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_associations_list ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1216,7 +1232,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_associations_list" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1252,6 +1268,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c end return data, status_code, headers end + # Manage the associations of a LDAP Server # This endpoint allows you to manage the _direct_ associations of a LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1263,7 +1280,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c # @return [nil] def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opts = {}) graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a LDAP Server @@ -1277,7 +1294,7 @@ def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opt # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_associations_post ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1292,7 +1309,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_associations_post" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1324,6 +1341,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty end return data, status_code, headers end + # List the Users bound to a LDAP Server # This endpoint will return all Users bound to an LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1336,7 +1354,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty # @return [Array] def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts) - data + return data end # List the Users bound to a LDAP Server @@ -1351,7 +1369,7 @@ def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_traverse_user ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1366,7 +1384,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_traverse_user" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/users'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/users".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1401,6 +1419,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, end return data, status_code, headers end + # List the User Groups bound to a LDAP Server # This endpoint will return all Users Groups bound to a LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -1413,7 +1432,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, # @return [Array] def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a LDAP Server @@ -1428,7 +1447,7 @@ def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_ldap_server_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_ldap_server_traverse_user_group ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -1443,7 +1462,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_ldap_server_traverse_user_group" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/usergroups'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/usergroups".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -1478,6 +1497,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ end return data, status_code, headers end + # List the associations of an Office 365 instance # This endpoint returns _direct_ associations of an Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -1491,7 +1511,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ # @return [Array] def graph_office365_associations_list(office365_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts) - data + return data end # List the associations of an Office 365 instance @@ -1507,7 +1527,7 @@ def graph_office365_associations_list(office365_id, targets, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_associations_list ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1526,7 +1546,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_associations_list" end # resource path - local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1562,6 +1582,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont end return data, status_code, headers end + # Manage the associations of an Office 365 instance # This endpoint allows you to manage the _direct_ associations of a Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -1573,7 +1594,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont # @return [nil] def graph_office365_associations_post(office365_id, content_type, accept, opts = {}) graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts) - nil + return nil end # Manage the associations of an Office 365 instance @@ -1587,7 +1608,7 @@ def graph_office365_associations_post(office365_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_associations_post ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1602,7 +1623,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_associations_post" end # resource path - local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1634,6 +1655,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, end return data, status_code, headers end + # List the Users bound to an Office 365 instance # This endpoint will return all Users bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -1646,7 +1668,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, # @return [Array] def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts) - data + return data end # List the Users bound to an Office 365 instance @@ -1661,7 +1683,7 @@ def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_traverse_user ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1676,7 +1698,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_traverse_user" end # resource path - local_var_path = '/office365s/{office365_id}/users'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/users".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1711,6 +1733,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc end return data, status_code, headers end + # List the User Groups bound to an Office 365 instance # This endpoint will return all Users Groups bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -1723,7 +1746,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc # @return [Array] def graph_office365_traverse_user_group(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts) - data + return data end # List the User Groups bound to an Office 365 instance @@ -1738,7 +1761,7 @@ def graph_office365_traverse_user_group(office365_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_office365_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_office365_traverse_user_group ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -1753,7 +1776,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_office365_traverse_user_group" end # resource path - local_var_path = '/office365s/{office365_id}/usergroups'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/usergroups".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -1788,6 +1811,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ end return data, status_code, headers end + # List the associations of a Policy # This endpoint returns the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Policy. @@ -1801,7 +1825,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ # @return [Array] def graph_policy_associations_list(policy_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts) - data + return data end # List the associations of a Policy @@ -1817,7 +1841,7 @@ def graph_policy_associations_list(policy_id, targets, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_associations_list ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1836,7 +1860,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_associations_list" end # resource path - local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -1872,6 +1896,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty end return data, status_code, headers end + # Manage the associations of a Policy # This endpoint allows you to manage the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{Group_ID}\" }' ``` # @param policy_id ObjectID of the Policy. @@ -1883,7 +1908,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty # @return [nil] def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a Policy @@ -1897,7 +1922,7 @@ def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_associations_post ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1912,7 +1937,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_associations_post" end # resource path - local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -1944,6 +1969,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep end return data, status_code, headers end + # List the Systems bound to a Policy # This endpoint will return all Systems bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -1956,7 +1982,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep # @return [Array] def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts) - data + return data end # List the Systems bound to a Policy @@ -1971,7 +1997,7 @@ def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_traverse_system ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_traverse_system ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1986,7 +2012,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_traverse_system" end # resource path - local_var_path = '/policies/{policy_id}/systems'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/systems".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -2021,6 +2047,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, end return data, status_code, headers end + # List the System Groups bound to a Policy # This endpoint will return all Systems Groups bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -2033,7 +2060,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, # @return [Array] def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts) - data + return data end # List the System Groups bound to a Policy @@ -2048,7 +2075,7 @@ def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_policy_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_policy_traverse_system_group ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -2063,7 +2090,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_policy_traverse_system_group" end # resource path - local_var_path = '/policies/{policy_id}/systemgroups'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/systemgroups".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -2098,6 +2125,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a end return data, status_code, headers end + # List the associations of a RADIUS Server # This endpoint returns the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2111,7 +2139,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a # @return [Array] def graph_radius_server_associations_list(radiusserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts) - data + return data end # List the associations of a RADIUS Server @@ -2127,7 +2155,7 @@ def graph_radius_server_associations_list(radiusserver_id, targets, content_type # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_associations_list ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2146,7 +2174,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_associations_list" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2182,6 +2210,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target end return data, status_code, headers end + # Manage the associations of a RADIUS Server # This endpoint allows you to manage the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"type\":\"user\", \"id\":\"{USER_ID}\", \"op\":\"add\" }' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2193,7 +2222,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target # @return [nil] def graph_radius_server_associations_post(radiusserver_id, content_type, accept, opts = {}) graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a RADIUS Server @@ -2207,7 +2236,7 @@ def graph_radius_server_associations_post(radiusserver_id, content_type, accept, # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_associations_post ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2222,7 +2251,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_associations_post" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2254,6 +2283,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten end return data, status_code, headers end + # List the Users bound to a RADIUS Server # This endpoint will return all Users bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2266,7 +2296,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten # @return [Array] def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts) - data + return data end # List the Users bound to a RADIUS Server @@ -2281,7 +2311,7 @@ def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_traverse_user ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2296,7 +2326,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_traverse_user" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/users'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/users".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2331,6 +2361,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty end return data, status_code, headers end + # List the User Groups bound to a RADIUS Server # This endpoint will return all Users Groups bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -2343,7 +2374,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty # @return [Array] def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a RADIUS Server @@ -2358,7 +2389,7 @@ def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_radius_server_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_radius_server_traverse_user_group ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -2373,7 +2404,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_radius_server_traverse_user_group" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/usergroups'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/usergroups".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -2408,6 +2439,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont end return data, status_code, headers end + # List the associations of a System # This endpoint returns the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -2423,7 +2455,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont # @return [Array] def graph_system_associations_list(system_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts) - data + return data end # List the associations of a System @@ -2441,7 +2473,7 @@ def graph_system_associations_list(system_id, content_type, accept, targets, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_associations_list ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -2460,7 +2492,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_system_associations_list" end # resource path - local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -2498,6 +2530,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep end return data, status_code, headers end + # Manage associations of a System # This endpoint allows you to manage the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"user\", \"id\": \"UserID\" }' ``` # @param system_id ObjectID of the System. @@ -2511,7 +2544,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep # @return [nil] def graph_system_associations_post(system_id, content_type, accept, opts = {}) graph_system_associations_post_with_http_info(system_id, content_type, accept, opts) - nil + return nil end # Manage associations of a System @@ -2527,7 +2560,7 @@ def graph_system_associations_post(system_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_associations_post_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_associations_post ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -2542,7 +2575,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_associations_post" end # resource path - local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -2576,6 +2609,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep end return data, status_code, headers end + # List the associations of a System Group # This endpoint returns the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -2589,7 +2623,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep # @return [Array] def graph_system_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - data + return data end # List the associations of a System Group @@ -2605,7 +2639,7 @@ def graph_system_group_associations_list(group_id, content_type, accept, targets # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_associations_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2624,7 +2658,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_system_group_associations_list" end # resource path - local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2660,6 +2694,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, end return data, status_code, headers end + # Manage the associations of a System Group # This endpoint allows you to manage the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{UserID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -2671,7 +2706,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, # @return [nil] def graph_system_group_associations_post(group_id, content_type, accept, opts = {}) graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a System Group @@ -2685,7 +2720,7 @@ def graph_system_group_associations_post(group_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_associations_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2700,7 +2735,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_associations_post" end # resource path - local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2732,21 +2767,22 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the System Group's parents # This endpoint returns all System Groups a System Group is a member of. This endpoint is not yet public as we haven't completed the code yet. # @param group_id ObjectID of the System Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Group's parents @@ -2763,7 +2799,7 @@ def graph_system_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_member_of ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_member_of ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2778,7 +2814,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_member_of" end # resource path - local_var_path = '/systemgroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2815,6 +2851,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the members of a System Group # This endpoint returns the system members of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -2827,7 +2864,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the members of a System Group @@ -2842,7 +2879,7 @@ def graph_system_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_members_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_members_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2857,7 +2894,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_members_list" end # resource path - local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2892,6 +2929,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep end return data, status_code, headers end + # Manage the members of a System Group # This endpoint allows you to manage the system members of a System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{System_ID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -2905,7 +2943,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep # @return [nil] def graph_system_group_members_post(group_id, content_type, accept, opts = {}) graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the members of a System Group @@ -2921,7 +2959,7 @@ def graph_system_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_members_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_members_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -2936,7 +2974,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_members_post" end # resource path - local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -2970,6 +3008,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep end return data, status_code, headers end + # List the System Group's membership # This endpoint returns all Systems that are a member of this System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -2978,13 +3017,13 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_membership_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Group's membership @@ -3001,7 +3040,7 @@ def graph_system_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_membership ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_membership ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3016,7 +3055,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_membership" end # resource path - local_var_path = '/systemgroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3053,6 +3092,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the Commands bound to a System Group # This endpoint will return all Commands bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3065,7 +3105,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_traverse_command(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Commands bound to a System Group @@ -3080,7 +3120,7 @@ def graph_system_group_traverse_command(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_command ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_command ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3095,7 +3135,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_command" end # resource path - local_var_path = '/systemgroups/{group_id}/commands'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/commands".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3130,6 +3170,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the Policies bound to a System Group # This endpoint will return all Policies bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System Group. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not public yet as we haven't finished the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3142,7 +3183,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a # @return [Array] def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Policies bound to a System Group @@ -3157,7 +3198,7 @@ def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_policy ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_policy ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3172,7 +3213,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_policy" end # resource path - local_var_path = '/systemgroups/{group_id}/policies'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/policies".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3207,6 +3248,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # List the Users bound to a System Group # This endpoint will return all Users bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3219,7 +3261,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac # @return [Array] def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Users bound to a System Group @@ -3234,7 +3276,7 @@ def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_user ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3249,7 +3291,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_user" end # resource path - local_var_path = '/systemgroups/{group_id}/users'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/users".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3284,6 +3326,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce end return data, status_code, headers end + # List the User Groups bound to a System Group # This endpoint will return all User Groups bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -3296,7 +3339,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce # @return [Array] def graph_system_group_traverse_user_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a System Group @@ -3311,7 +3354,7 @@ def graph_system_group_traverse_user_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_group_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_group_traverse_user_group ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3326,7 +3369,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_group_traverse_user_group" end # resource path - local_var_path = '/systemgroups/{group_id}/usergroups'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/usergroups".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -3361,23 +3404,24 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type end return data, status_code, headers end + # List the parent Groups of a System # This endpoint returns all the System Groups a System is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_member_of(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_member_of_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the parent Groups of a System @@ -3396,7 +3440,7 @@ def graph_system_member_of(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_member_of_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_member_of ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_member_of ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3411,7 +3455,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_member_of" end # resource path - local_var_path = '/systems/{system_id}/memberof'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/memberof".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3450,6 +3494,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts end return data, status_code, headers end + # List the Commands bound to a System # This endpoint will return all Commands bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3462,7 +3507,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts # @return [Array] def graph_system_traverse_command(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the Commands bound to a System @@ -3477,7 +3522,7 @@ def graph_system_traverse_command(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_command ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_command ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3492,7 +3537,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_command" end # resource path - local_var_path = '/systems/{system_id}/commands'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/commands".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3527,6 +3572,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept end return data, status_code, headers end + # List the Policies bound to a System # This endpoint will return all Policies bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not yet public as we have finish the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/{System_ID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3539,7 +3585,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept # @return [Array] def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the Policies bound to a System @@ -3554,7 +3600,7 @@ def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_policy ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_policy ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3569,7 +3615,7 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_policy" end # resource path - local_var_path = '/systems/{system_id}/policies'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/policies".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3604,6 +3650,7 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, end return data, status_code, headers end + # List the Users bound to a System # This endpoint will return all Users bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3615,11 +3662,11 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] def graph_system_traverse_user(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the Users bound to a System @@ -3637,7 +3684,7 @@ def graph_system_traverse_user(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_user ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_user ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3652,7 +3699,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_user" end # resource path - local_var_path = '/systems/{system_id}/users'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/users".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3690,6 +3737,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o end return data, status_code, headers end + # List the User Groups bound to a System # This endpoint will return all User Groups bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -3704,7 +3752,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o # @return [Array] def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a System @@ -3721,7 +3769,7 @@ def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_system_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_system_traverse_user_group ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -3736,7 +3784,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_system_traverse_user_group" end # resource path - local_var_path = '/systems/{system_id}/usergroups'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/usergroups".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -3773,6 +3821,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc end return data, status_code, headers end + # List the associations of a User # This endpoint returns the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -3786,7 +3835,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc # @return [Array] def graph_user_associations_list(user_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts) - data + return data end # List the associations of a User @@ -3802,7 +3851,7 @@ def graph_user_associations_list(user_id, content_type, accept, targets, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_associations_list ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -3821,7 +3870,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_user_associations_list" end # resource path - local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -3857,6 +3906,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t end return data, status_code, headers end + # Manage the associations of a User # This endpoint allows you to manage the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/users/{UserID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{GroupID}\" }' # @param user_id ObjectID of the User. @@ -3868,7 +3918,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t # @return [nil] def graph_user_associations_post(user_id, content_type, accept, opts = {}) graph_user_associations_post_with_http_info(user_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a User @@ -3882,7 +3932,7 @@ def graph_user_associations_post(user_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_associations_post_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_associations_post ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -3897,7 +3947,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_associations_post" end # resource path - local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -3929,6 +3979,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o end return data, status_code, headers end + # List the associations of a User Group. # This endpoint returns the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations?targets=system \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -3942,7 +3993,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o # @return [Array] def graph_user_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - data + return data end # List the associations of a User Group. @@ -3958,7 +4009,7 @@ def graph_user_group_associations_list(group_id, content_type, accept, targets, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_associations_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_associations_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -3977,7 +4028,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'targets' when calling GraphApi.graph_user_group_associations_list" end # resource path - local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4013,6 +4064,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # Manage the associations of a User Group # This endpoint manages the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{SystemID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -4024,7 +4076,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac # @return [nil] def graph_user_group_associations_post(group_id, content_type, accept, opts = {}) graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a User Group @@ -4038,7 +4090,7 @@ def graph_user_group_associations_post(group_id, content_type, accept, opts = {} # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_associations_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_associations_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4053,7 +4105,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_associations_post" end # resource path - local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4085,21 +4137,22 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # List the User Group's parents # This endpoint returns all User Groups a User Group is a member of. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{group_id}/memberof ``` Not public yet, as the code is not finished, # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Group's parents @@ -4116,7 +4169,7 @@ def graph_user_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_member_of ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_member_of ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4131,7 +4184,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_member_of" end # resource path - local_var_path = '/usergroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4168,6 +4221,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op end return data, status_code, headers end + # List the members of a User Group # This endpoint returns the user members of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4180,7 +4234,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op # @return [Array] def graph_user_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the members of a User Group @@ -4195,7 +4249,7 @@ def graph_user_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_members_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_members_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4210,7 +4264,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_members_list" end # resource path - local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4245,6 +4299,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # Manage the members of a User Group # This endpoint allows you to manage the user members of a User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -4256,7 +4311,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, # @return [nil] def graph_user_group_members_post(group_id, content_type, accept, opts = {}) graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the members of a User Group @@ -4270,7 +4325,7 @@ def graph_user_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_members_post ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_members_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4285,7 +4340,7 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_members_post" end # resource path - local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4317,21 +4372,22 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the User Group's membership # This endpoint returns all users members that are a member of this User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_membership_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Group's membership @@ -4348,7 +4404,7 @@ def graph_user_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_membership ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_membership ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4363,7 +4419,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_membership" end # resource path - local_var_path = '/usergroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4400,6 +4456,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o end return data, status_code, headers end + # List the Active Directories bound to a User Group # This endpoint will return all Active Directory Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Active Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Active Directory from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/activedirectories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4412,7 +4469,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o # @return [Array] def graph_user_group_traverse_active_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Active Directories bound to a User Group @@ -4427,7 +4484,7 @@ def graph_user_group_traverse_active_directory(group_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_active_directory ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_active_directory ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4442,7 +4499,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_active_directory" end # resource path - local_var_path = '/usergroups/{group_id}/activedirectories'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/activedirectories".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4477,6 +4534,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ end return data, status_code, headers end + # List the Applications bound to a User Group # This endpoint will return all Applications bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4489,7 +4547,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ # @return [Array] def graph_user_group_traverse_application(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Applications bound to a User Group @@ -4504,7 +4562,7 @@ def graph_user_group_traverse_application(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_application ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_application ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4519,7 +4577,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_application" end # resource path - local_var_path = '/usergroups/{group_id}/applications'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/applications".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4554,6 +4612,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Directories bound to a User Group # This endpoint will return all Directories bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directories from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4566,7 +4625,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Directories bound to a User Group @@ -4581,7 +4640,7 @@ def graph_user_group_traverse_directory(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_directory ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_directory ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4596,7 +4655,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_directory" end # resource path - local_var_path = '/usergroups/{group_id}/directories'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/directories".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4631,6 +4690,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the G Suite instances bound to a User Group # This endpoint will return all G Suite Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4643,7 +4703,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the G Suite instances bound to a User Group @@ -4658,7 +4718,7 @@ def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_g_suite ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_g_suite ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4673,7 +4733,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_g_suite" end # resource path - local_var_path = '/usergroups/{group_id}/gsuites'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/gsuites".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4708,6 +4768,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc end return data, status_code, headers end + # List the LDAP Servers bound to a User Group # This endpoint will return all LDAP Servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4720,7 +4781,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc # @return [Array] def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the LDAP Servers bound to a User Group @@ -4735,7 +4796,7 @@ def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_ldap_server ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_ldap_server ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4750,7 +4811,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_ldap_server" end # resource path - local_var_path = '/usergroups/{group_id}/ldapservers'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/ldapservers".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4785,6 +4846,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Office 365 instances bound to a User Group # This endpoint will return all Office 365 instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4797,7 +4859,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_office365(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Office 365 instances bound to a User Group @@ -4812,7 +4874,7 @@ def graph_user_group_traverse_office365(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_office365 ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_office365 ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4827,7 +4889,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_office365" end # resource path - local_var_path = '/usergroups/{group_id}/office365s'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/office365s".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4862,6 +4924,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the RADIUS Servers bound to a User Group # This endpoint will return all RADIUS servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4874,7 +4937,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the RADIUS Servers bound to a User Group @@ -4889,7 +4952,7 @@ def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_radius_server ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_radius_server ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4904,7 +4967,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_radius_server" end # resource path - local_var_path = '/usergroups/{group_id}/radiusservers'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/radiusservers".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -4939,6 +5002,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ end return data, status_code, headers end + # List the Systems bound to a User Group # This endpoint will return all Systems bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -4951,7 +5015,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ # @return [Array] def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Systems bound to a User Group @@ -4966,7 +5030,7 @@ def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_system ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_system ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -4981,7 +5045,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_system" end # resource path - local_var_path = '/usergroups/{group_id}/systems'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/systems".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -5016,6 +5080,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce end return data, status_code, headers end + # List the System Groups bound to User Groups # This endpoint will return all System Groups bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -5028,7 +5093,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce # @return [Array] def graph_user_group_traverse_system_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Groups bound to User Groups @@ -5043,7 +5108,7 @@ def graph_user_group_traverse_system_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_group_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_group_traverse_system_group ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -5058,7 +5123,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_group_traverse_system_group" end # resource path - local_var_path = '/usergroups/{group_id}/systemgroups'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/systemgroups".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -5093,21 +5158,22 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type end return data, status_code, headers end + # List the parent Groups of a User # This endpoint returns all the User Groups a User is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_member_of(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_member_of_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the parent Groups of a User @@ -5124,7 +5190,7 @@ def graph_user_member_of(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_member_of ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_member_of ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5139,7 +5205,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_member_of" end # resource path - local_var_path = '/users/{user_id}/memberof'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/memberof".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5176,6 +5242,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} end return data, status_code, headers end + # List the Applications bound to a User # This endpoint will return all Applications bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5188,7 +5255,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} # @return [Array] def graph_user_traverse_application(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Applications bound to a User @@ -5203,7 +5270,7 @@ def graph_user_traverse_application(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_application ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_application ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5218,7 +5285,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_application" end # resource path - local_var_path = '/users/{user_id}/applications'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/applications".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5253,6 +5320,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept end return data, status_code, headers end + # List the Directories bound to a User # This endpoint will return all Directories bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directory from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5265,7 +5333,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Directories bound to a User @@ -5280,7 +5348,7 @@ def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_directory ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_directory ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5295,7 +5363,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_directory" end # resource path - local_var_path = '/users/{user_id}/directories'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/directories".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5330,6 +5398,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, end return data, status_code, headers end + # List the G Suite instances bound to a User # This endpoint will return all G-Suite Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5342,7 +5411,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the G Suite instances bound to a User @@ -5357,7 +5426,7 @@ def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_g_suite ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_g_suite ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5372,7 +5441,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_g_suite" end # resource path - local_var_path = '/users/{user_id}/gsuites'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/gsuites".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5407,6 +5476,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op end return data, status_code, headers end + # List the LDAP servers bound to a User # This endpoint will return all LDAP Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5419,7 +5489,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op # @return [Array] def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the LDAP servers bound to a User @@ -5434,7 +5504,7 @@ def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_ldap_server ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_ldap_server ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5449,7 +5519,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_ldap_server" end # resource path - local_var_path = '/users/{user_id}/ldapservers'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/ldapservers".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5484,6 +5554,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept end return data, status_code, headers end + # List the Office 365 instances bound to a User # This endpoint will return all Office 365 Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5496,7 +5567,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Office 365 instances bound to a User @@ -5511,7 +5582,7 @@ def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_office365 ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_office365 ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5526,7 +5597,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_office365" end # resource path - local_var_path = '/users/{user_id}/office365s'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/office365s".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5561,6 +5632,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, end return data, status_code, headers end + # List the RADIUS Servers bound to a User # This endpoint will return all RADIUS Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5573,7 +5645,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the RADIUS Servers bound to a User @@ -5588,7 +5660,7 @@ def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_radius_server ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_radius_server ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5603,7 +5675,7 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_radius_server" end # resource path - local_var_path = '/users/{user_id}/radiusservers'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/radiusservers".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5638,6 +5710,7 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce end return data, status_code, headers end + # List the Systems bound to a User # This endpoint will return all Systems bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systems\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5647,11 +5720,11 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [String] :x_org_id (default to ) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] def graph_user_traverse_system(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Systems bound to a User @@ -5667,7 +5740,7 @@ def graph_user_traverse_system(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_system ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_system ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5682,7 +5755,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_system" end # resource path - local_var_path = '/users/{user_id}/systems'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/systems".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5718,6 +5791,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt end return data, status_code, headers end + # List the System Groups bound to a User # This endpoint will return all System Groups bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systemgroups\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -5730,7 +5804,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt # @return [Array] def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the System Groups bound to a User @@ -5745,7 +5819,7 @@ def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.graph_user_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: GraphApi.graph_user_traverse_system_group ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -5760,7 +5834,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.graph_user_traverse_system_group" end # resource path - local_var_path = '/users/{user_id}/systemgroups'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/systemgroups".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -5795,22 +5869,23 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep end return data, status_code, headers end + # List the policy statuses for a system # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policystatuses_list(system_id, content_type, accept, opts = {}) data, _status_code, _headers = policystatuses_list_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the policy statuses for a system @@ -5828,7 +5903,7 @@ def policystatuses_list(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policystatuses_list_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GraphApi.policystatuses_list ...' + @api_client.config.logger.debug "Calling API: GraphApi.policystatuses_list ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -5843,7 +5918,7 @@ def policystatuses_list_with_http_info(system_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling GraphApi.policystatuses_list" end # resource path - local_var_path = '/systems/{system_id}/policystatuses'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/policystatuses".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/groups_api.rb b/jcapiv2/lib/jcapiv2/api/groups_api.rb index de5fb5a..fc48e4a 100644 --- a/jcapiv2/lib/jcapiv2/api/groups_api.rb +++ b/jcapiv2/lib/jcapiv2/api/groups_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class GroupsApi @@ -19,21 +19,22 @@ class GroupsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List All Groups # This endpoint returns all Groups that exist in your organization. #### Available filter fields: - `name` - `disabled` - `type` #### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/groups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def groups_list(content_type, accept, opts = {}) data, _status_code, _headers = groups_list_with_http_info(content_type, accept, opts) - data + return data end # List All Groups @@ -50,7 +51,7 @@ def groups_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def groups_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: GroupsApi.groups_list ...' + @api_client.config.logger.debug "Calling API: GroupsApi.groups_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -61,7 +62,7 @@ def groups_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling GroupsApi.groups_list" end # resource path - local_var_path = '/groups' + local_var_path = "/groups" # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb b/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb index 35f46e2..3e0f517 100644 --- a/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb +++ b/jcapiv2/lib/jcapiv2/api/ldap_servers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class LDAPServersApi @@ -19,6 +19,7 @@ class LDAPServersApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a LDAP Server # This endpoint returns the _direct_ associations of this LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations?targets=user_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts) - data + return data end # List the associations of a LDAP Server @@ -48,7 +49,7 @@ def graph_ldap_server_associations_list(ldapserver_id, targets, content_type, ac # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_associations_list ...' + @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_associations_list ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -67,7 +68,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_associations_list" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c end return data, status_code, headers end + # Manage the associations of a LDAP Server # This endpoint allows you to manage the _direct_ associations of a LDAP Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example LDAP and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -114,7 +116,7 @@ def graph_ldap_server_associations_list_with_http_info(ldapserver_id, targets, c # @return [nil] def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opts = {}) graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a LDAP Server @@ -128,7 +130,7 @@ def graph_ldap_server_associations_post(ldapserver_id, content_type, accept, opt # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_associations_post ...' + @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_associations_post ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -143,7 +145,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_associations_post" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/associations'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/associations".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty end return data, status_code, headers end + # List the Users bound to a LDAP Server # This endpoint will return all Users bound to an LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -187,7 +190,7 @@ def graph_ldap_server_associations_post_with_http_info(ldapserver_id, content_ty # @return [Array] def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts) - data + return data end # List the Users bound to a LDAP Server @@ -202,7 +205,7 @@ def graph_ldap_server_traverse_user(ldapserver_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_traverse_user ...' + @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_traverse_user ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -217,7 +220,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_traverse_user" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/users'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/users".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, end return data, status_code, headers end + # List the User Groups bound to a LDAP Server # This endpoint will return all Users Groups bound to a LDAP Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this LDAP server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this LDAP server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id ObjectID of the LDAP Server. @@ -264,7 +268,7 @@ def graph_ldap_server_traverse_user_with_http_info(ldapserver_id, content_type, # @return [Array] def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a LDAP Server @@ -279,7 +283,7 @@ def graph_ldap_server_traverse_user_group(ldapserver_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: LDAPServersApi.graph_ldap_server_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: LDAPServersApi.graph_ldap_server_traverse_user_group ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -294,7 +298,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.graph_ldap_server_traverse_user_group" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/usergroups'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/usergroups".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -329,6 +333,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ end return data, status_code, headers end + # Get LDAP Server # This endpoint returns a specific LDAP server. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id Unique identifier of the LDAP server. @@ -339,7 +344,7 @@ def graph_ldap_server_traverse_user_group_with_http_info(ldapserver_id, content_ # @return [LdapServerOutput] def ldapservers_get(id, content_type, accept, opts = {}) data, _status_code, _headers = ldapservers_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get LDAP Server @@ -352,7 +357,7 @@ def ldapservers_get(id, content_type, accept, opts = {}) # @return [Array<(LdapServerOutput, Fixnum, Hash)>] LdapServerOutput data, response status code and response headers def ldapservers_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: LDAPServersApi.ldapservers_get ...' + @api_client.config.logger.debug "Calling API: LDAPServersApi.ldapservers_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -367,7 +372,7 @@ def ldapservers_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.ldapservers_get" end # resource path - local_var_path = '/ldapservers/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/ldapservers/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -400,21 +405,22 @@ def ldapservers_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List LDAP Servers # This endpoint returns the object IDs of your LDAP servers. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def ldapservers_list(content_type, accept, opts = {}) data, _status_code, _headers = ldapservers_list_with_http_info(content_type, accept, opts) - data + return data end # List LDAP Servers @@ -431,7 +437,7 @@ def ldapservers_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def ldapservers_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: LDAPServersApi.ldapservers_list ...' + @api_client.config.logger.debug "Calling API: LDAPServersApi.ldapservers_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -442,7 +448,7 @@ def ldapservers_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling LDAPServersApi.ldapservers_list" end # resource path - local_var_path = '/ldapservers' + local_var_path = "/ldapservers" # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/office365_api.rb b/jcapiv2/lib/jcapiv2/api/office365_api.rb index 98a2940..57d35ba 100644 --- a/jcapiv2/lib/jcapiv2/api/office365_api.rb +++ b/jcapiv2/lib/jcapiv2/api/office365_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class Office365Api @@ -19,6 +19,7 @@ class Office365Api def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of an Office 365 instance # This endpoint returns _direct_ associations of an Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_office365_associations_list(office365_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts) - data + return data end # List the associations of an Office 365 instance @@ -48,7 +49,7 @@ def graph_office365_associations_list(office365_id, targets, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_associations_list_with_http_info(office365_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_associations_list ...' + @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_associations_list ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -67,7 +68,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_associations_list" end # resource path - local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont end return data, status_code, headers end + # Manage the associations of an Office 365 instance # This endpoint allows you to manage the _direct_ associations of a Office 365 instance. A direct association can be a non-homogeneous relationship between 2 different objects, for example Office 365 and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user_group\", \"id\": \"{Group_ID}\" }' ``` # @param office365_id ObjectID of the Office 365 instance. @@ -114,7 +116,7 @@ def graph_office365_associations_list_with_http_info(office365_id, targets, cont # @return [nil] def graph_office365_associations_post(office365_id, content_type, accept, opts = {}) graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts) - nil + return nil end # Manage the associations of an Office 365 instance @@ -128,7 +130,7 @@ def graph_office365_associations_post(office365_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_office365_associations_post_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_associations_post ...' + @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_associations_post ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -143,7 +145,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_associations_post" end # resource path - local_var_path = '/office365s/{office365_id}/associations'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/associations".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, end return data, status_code, headers end + # List the Users bound to an Office 365 instance # This endpoint will return all Users bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -187,7 +190,7 @@ def graph_office365_associations_post_with_http_info(office365_id, content_type, # @return [Array] def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts) - data + return data end # List the Users bound to an Office 365 instance @@ -202,7 +205,7 @@ def graph_office365_traverse_user(office365_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_traverse_user ...' + @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_traverse_user ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -217,7 +220,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_traverse_user" end # resource path - local_var_path = '/office365s/{office365_id}/users'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/users".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc end return data, status_code, headers end + # List the User Groups bound to an Office 365 instance # This endpoint will return all Users Groups bound to an Office 365 instance, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Office 365 instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this Office 365 instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{O365_ID/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id ObjectID of the Office 365 suite. @@ -264,7 +268,7 @@ def graph_office365_traverse_user_with_http_info(office365_id, content_type, acc # @return [Array] def graph_office365_traverse_user_group(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts) - data + return data end # List the User Groups bound to an Office 365 instance @@ -279,7 +283,7 @@ def graph_office365_traverse_user_group(office365_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_office365_traverse_user_group_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.graph_office365_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: Office365Api.graph_office365_traverse_user_group ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -294,7 +298,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.graph_office365_traverse_user_group" end # resource path - local_var_path = '/office365s/{office365_id}/usergroups'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/usergroups".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -329,6 +333,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ end return data, status_code, headers end + # Deletes a Office 365 translation rule # This endpoint allows you to delete a translation rule for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id @@ -339,7 +344,7 @@ def graph_office365_traverse_user_group_with_http_info(office365_id, content_typ # @return [nil] def translation_rules_office365_delete(office365_id, id, content_type, accept, opts = {}) translation_rules_office365_delete_with_http_info(office365_id, id, content_type, accept, opts) - nil + return nil end # Deletes a Office 365 translation rule @@ -352,7 +357,7 @@ def translation_rules_office365_delete(office365_id, id, content_type, accept, o # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def translation_rules_office365_delete_with_http_info(office365_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_delete ...' + @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_delete ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -371,7 +376,7 @@ def translation_rules_office365_delete_with_http_info(office365_id, id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_delete" end # resource path - local_var_path = '/office365s/{office365_id}/translationrules/{id}'.sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/office365s/{office365_id}/translationrules/{id}".sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -402,6 +407,7 @@ def translation_rules_office365_delete_with_http_info(office365_id, id, content_ end return data, status_code, headers end + # Gets a specific Office 365 translation rule # This endpoint returns a specific translation rule for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. ###### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules/{id} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id @@ -412,7 +418,7 @@ def translation_rules_office365_delete_with_http_info(office365_id, id, content_ # @return [Office365TranslationRule] def translation_rules_office365_get(office365_id, id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_office365_get_with_http_info(office365_id, id, content_type, accept, opts) - data + return data end # Gets a specific Office 365 translation rule @@ -425,7 +431,7 @@ def translation_rules_office365_get(office365_id, id, content_type, accept, opts # @return [Array<(Office365TranslationRule, Fixnum, Hash)>] Office365TranslationRule data, response status code and response headers def translation_rules_office365_get_with_http_info(office365_id, id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_get ...' + @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_get ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -444,7 +450,7 @@ def translation_rules_office365_get_with_http_info(office365_id, id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_get" end # resource path - local_var_path = '/office365s/{office365_id}/translationrules/{id}'.sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/office365s/{office365_id}/translationrules/{id}".sub('{' + 'office365_id' + '}', office365_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -476,21 +482,22 @@ def translation_rules_office365_get_with_http_info(office365_id, id, content_typ end return data, status_code, headers end + # List all the Office 365 Translation Rules # This endpoint returns all translation rules for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param office365_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [Array] def translation_rules_office365_list(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_office365_list_with_http_info(office365_id, content_type, accept, opts) - data + return data end # List all the Office 365 Translation Rules @@ -507,7 +514,7 @@ def translation_rules_office365_list(office365_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def translation_rules_office365_list_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_list ...' + @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_list ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -522,7 +529,7 @@ def translation_rules_office365_list_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_list" end # resource path - local_var_path = '/office365s/{office365_id}/translationrules'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/translationrules".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} @@ -559,6 +566,7 @@ def translation_rules_office365_list_with_http_info(office365_id, content_type, end return data, status_code, headers end + # Create a new Office 365 Translation Rule # This endpoint allows you to create a translation rule for a specific Office 365 instance. These rules specify how JumpCloud attributes translate to [Microsoft Graph](https://developer.microsoft.com/en-us/graph) attributes. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/office365s/{office365_id}/translationrules \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ {Translation Rule Parameters} }' ``` # @param office365_id @@ -569,7 +577,7 @@ def translation_rules_office365_list_with_http_info(office365_id, content_type, # @return [Office365TranslationRule] def translation_rules_office365_post(office365_id, content_type, accept, opts = {}) data, _status_code, _headers = translation_rules_office365_post_with_http_info(office365_id, content_type, accept, opts) - data + return data end # Create a new Office 365 Translation Rule @@ -582,7 +590,7 @@ def translation_rules_office365_post(office365_id, content_type, accept, opts = # @return [Array<(Office365TranslationRule, Fixnum, Hash)>] Office365TranslationRule data, response status code and response headers def translation_rules_office365_post_with_http_info(office365_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: Office365Api.translation_rules_office365_post ...' + @api_client.config.logger.debug "Calling API: Office365Api.translation_rules_office365_post ..." end # verify the required parameter 'office365_id' is set if @api_client.config.client_side_validation && office365_id.nil? @@ -597,7 +605,7 @@ def translation_rules_office365_post_with_http_info(office365_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling Office365Api.translation_rules_office365_post" end # resource path - local_var_path = '/office365s/{office365_id}/translationrules'.sub('{' + 'office365_id' + '}', office365_id.to_s) + local_var_path = "/office365s/{office365_id}/translationrules".sub('{' + 'office365_id' + '}', office365_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/policies_api.rb b/jcapiv2/lib/jcapiv2/api/policies_api.rb index 4f0f268..fa2c429 100644 --- a/jcapiv2/lib/jcapiv2/api/policies_api.rb +++ b/jcapiv2/lib/jcapiv2/api/policies_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class PoliciesApi @@ -19,6 +19,7 @@ class PoliciesApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a Policy # This endpoint returns the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X GET 'https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Policy. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_policy_associations_list(policy_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts) - data + return data end # List the associations of a Policy @@ -48,7 +49,7 @@ def graph_policy_associations_list(policy_id, targets, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_associations_list_with_http_info(policy_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_associations_list ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_associations_list ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -67,7 +68,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_associations_list" end # resource path - local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty end return data, status_code, headers end + # Manage the associations of a Policy # This endpoint allows you to manage the _direct_ associations of a Policy. A direct association can be a non-homogeneous relationship between 2 different objects, for example Policies and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/associations/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{Group_ID}\" }' ``` # @param policy_id ObjectID of the Policy. @@ -114,7 +116,7 @@ def graph_policy_associations_list_with_http_info(policy_id, targets, content_ty # @return [nil] def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a Policy @@ -128,7 +130,7 @@ def graph_policy_associations_post(policy_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_policy_associations_post_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_associations_post ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_associations_post ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -143,7 +145,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_associations_post" end # resource path - local_var_path = '/policies/{policy_id}/associations'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/associations".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep end return data, status_code, headers end + # List the Systems bound to a Policy # This endpoint will return all Systems bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -187,7 +190,7 @@ def graph_policy_associations_post_with_http_info(policy_id, content_type, accep # @return [Array] def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts) - data + return data end # List the Systems bound to a Policy @@ -202,7 +205,7 @@ def graph_policy_traverse_system(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_traverse_system ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_traverse_system ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -217,7 +220,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_traverse_system" end # resource path - local_var_path = '/policies/{policy_id}/systems'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/systems".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, end return data, status_code, headers end + # List the System Groups bound to a Policy # This endpoint will return all Systems Groups bound to a Policy, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this Policy to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Policy. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id ObjectID of the Command. @@ -264,7 +268,7 @@ def graph_policy_traverse_system_with_http_info(policy_id, content_type, accept, # @return [Array] def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts) - data + return data end # List the System Groups bound to a Policy @@ -279,7 +283,7 @@ def graph_policy_traverse_system_group(policy_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.graph_policy_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.graph_policy_traverse_system_group ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -294,7 +298,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.graph_policy_traverse_system_group" end # resource path - local_var_path = '/policies/{policy_id}/systemgroups'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/systemgroups".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -329,6 +333,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a end return data, status_code, headers end + # Deletes a Policy # This endpoint allows you to delete a policy. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/policies/5a837ecd232e110d4291e6b9 \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy object. @@ -339,7 +344,7 @@ def graph_policy_traverse_system_group_with_http_info(policy_id, content_type, a # @return [nil] def policies_delete(id, content_type, accept, opts = {}) policies_delete_with_http_info(id, content_type, accept, opts) - nil + return nil end # Deletes a Policy @@ -352,7 +357,7 @@ def policies_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def policies_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_delete ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policies_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -367,7 +372,7 @@ def policies_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_delete" end # resource path - local_var_path = '/policies/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/policies/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -399,6 +404,7 @@ def policies_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Gets a specific Policy. # This endpoint returns a specific policy. ###### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{PolicyID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy object. @@ -409,7 +415,7 @@ def policies_delete_with_http_info(id, content_type, accept, opts = {}) # @return [PolicyWithDetails] def policies_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policies_get_with_http_info(id, content_type, accept, opts) - data + return data end # Gets a specific Policy. @@ -422,7 +428,7 @@ def policies_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyWithDetails, Fixnum, Hash)>] PolicyWithDetails data, response status code and response headers def policies_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_get ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policies_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -437,7 +443,7 @@ def policies_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_get" end # resource path - local_var_path = '/policies/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/policies/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -470,21 +476,22 @@ def policies_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Lists all the Policies # This endpoint returns all policies. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policies_list(content_type, accept, opts = {}) data, _status_code, _headers = policies_list_with_http_info(content_type, accept, opts) - data + return data end # Lists all the Policies @@ -501,7 +508,7 @@ def policies_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policies_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_list ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policies_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -512,7 +519,7 @@ def policies_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_list" end # resource path - local_var_path = '/policies' + local_var_path = "/policies" # query parameters query_params = {} @@ -550,6 +557,7 @@ def policies_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create a new Policy # This endpoint allows you to create a policy. Given the amount of configurable parameters required to create a Policy, we suggest you use the JumpCloud Admin Console to create new policies. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ {Policy_Parameters} }' ``` # @param content_type @@ -560,7 +568,7 @@ def policies_list_with_http_info(content_type, accept, opts = {}) # @return [PolicyWithDetails] def policies_post(content_type, accept, opts = {}) data, _status_code, _headers = policies_post_with_http_info(content_type, accept, opts) - data + return data end # Create a new Policy @@ -573,7 +581,7 @@ def policies_post(content_type, accept, opts = {}) # @return [Array<(PolicyWithDetails, Fixnum, Hash)>] PolicyWithDetails data, response status code and response headers def policies_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_post ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policies_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -584,7 +592,7 @@ def policies_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policies_post" end # resource path - local_var_path = '/policies' + local_var_path = "/policies" # query parameters query_params = {} @@ -617,6 +625,7 @@ def policies_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update an existing Policy # This endpoint allows you to update a policy. Given the amount of configurable parameters required to update a Policy, we suggest you use the JumpCloud Admin Console to create new policies. ##### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/policies/59fced45c9118022172547ff \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY' \\ -d '{ {Policy_Parameters} }' ``` # @param id ObjectID of the Policy object. @@ -626,7 +635,7 @@ def policies_post_with_http_info(content_type, accept, opts = {}) # @return [Policy] def policies_put(id, opts = {}) data, _status_code, _headers = policies_put_with_http_info(id, opts) - data + return data end # Update an existing Policy @@ -638,14 +647,14 @@ def policies_put(id, opts = {}) # @return [Array<(Policy, Fixnum, Hash)>] Policy data, response status code and response headers def policies_put_with_http_info(id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policies_put ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policies_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling PoliciesApi.policies_put" end # resource path - local_var_path = '/policies/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/policies/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -676,6 +685,7 @@ def policies_put_with_http_info(id, opts = {}) end return data, status_code, headers end + # Get a specific Policy Result. # This endpoint will return the policy results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policyresults/{Policy_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy Result. @@ -686,7 +696,7 @@ def policies_put_with_http_info(id, opts = {}) # @return [PolicyResult] def policyresults_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policyresults_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get a specific Policy Result. @@ -699,7 +709,7 @@ def policyresults_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyResult, Fixnum, Hash)>] PolicyResult data, response status code and response headers def policyresults_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policyresults_get ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policyresults_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -714,7 +724,7 @@ def policyresults_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policyresults_get" end # resource path - local_var_path = '/policyresults/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/policyresults/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -747,23 +757,24 @@ def policyresults_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Lists all the policy results of a policy. # This endpoint returns all policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policyresults \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) - # @option opts [Array] :aggregate (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :aggregate # @option opts [String] :x_org_id (default to ) # @return [Array] def policyresults_list(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = policyresults_list_with_http_info(policy_id, content_type, accept, opts) - data + return data end # Lists all the policy results of a policy. @@ -782,7 +793,7 @@ def policyresults_list(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policyresults_list_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policyresults_list ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policyresults_list ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -797,7 +808,7 @@ def policyresults_list_with_http_info(policy_id, content_type, accept, opts = {} fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policyresults_list" end # resource path - local_var_path = '/policies/{policy_id}/policyresults'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/policyresults".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -836,22 +847,23 @@ def policyresults_list_with_http_info(policy_id, content_type, accept, opts = {} end return data, status_code, headers end + # Lists all the policy results for an organization. # This endpoint returns all policies results for an Organization. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policyresults \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :aggregate (default to []) - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :aggregate + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policyresults_list_0(content_type, accept, opts = {}) data, _status_code, _headers = policyresults_list_0_with_http_info(content_type, accept, opts) - data + return data end # Lists all the policy results for an organization. @@ -869,7 +881,7 @@ def policyresults_list_0(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policyresults_list_0_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policyresults_list_0 ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policyresults_list_0 ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -880,7 +892,7 @@ def policyresults_list_0_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policyresults_list_0" end # resource path - local_var_path = '/policyresults' + local_var_path = "/policyresults" # query parameters query_params = {} @@ -919,22 +931,23 @@ def policyresults_list_0_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # List the policy statuses for a system # This endpoint returns the policy results for a particular system. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policystatuses_list(system_id, content_type, accept, opts = {}) data, _status_code, _headers = policystatuses_list_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the policy statuses for a system @@ -952,7 +965,7 @@ def policystatuses_list(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policystatuses_list_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policystatuses_list ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policystatuses_list ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -967,7 +980,7 @@ def policystatuses_list_with_http_info(system_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policystatuses_list" end # resource path - local_var_path = '/systems/{system_id}/policystatuses'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/policystatuses".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -1005,22 +1018,23 @@ def policystatuses_list_with_http_info(system_id, content_type, accept, opts = { end return data, status_code, headers end + # Lists the latest policy results of a policy. # This endpoint returns the latest policies results for a specific policy. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}/policystatuses \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param policy_id # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policystatuses_list_0(policy_id, content_type, accept, opts = {}) data, _status_code, _headers = policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts) - data + return data end # Lists the latest policy results of a policy. @@ -1038,7 +1052,7 @@ def policystatuses_list_0(policy_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policystatuses_list_0 ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policystatuses_list_0 ..." end # verify the required parameter 'policy_id' is set if @api_client.config.client_side_validation && policy_id.nil? @@ -1053,7 +1067,7 @@ def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policystatuses_list_0" end # resource path - local_var_path = '/policies/{policy_id}/policystatuses'.sub('{' + 'policy_id' + '}', policy_id.to_s) + local_var_path = "/policies/{policy_id}/policystatuses".sub('{' + 'policy_id' + '}', policy_id.to_s) # query parameters query_params = {} @@ -1091,6 +1105,7 @@ def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = end return data, status_code, headers end + # Get a specific Policy Template # This endpoint returns a specific policy template. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy Template. @@ -1101,7 +1116,7 @@ def policystatuses_list_0_with_http_info(policy_id, content_type, accept, opts = # @return [PolicyTemplateWithDetails] def policytemplates_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get a specific Policy Template @@ -1114,7 +1129,7 @@ def policytemplates_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyTemplateWithDetails, Fixnum, Hash)>] PolicyTemplateWithDetails data, response status code and response headers def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policytemplates_get ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policytemplates_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1129,7 +1144,7 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policytemplates_get" end # resource path - local_var_path = '/policytemplates/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/policytemplates/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1162,21 +1177,22 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Lists all of the Policy Templates # This endpoint returns all policy templates. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policytemplates \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policytemplates_list(content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_list_with_http_info(content_type, accept, opts) - data + return data end # Lists all of the Policy Templates @@ -1193,7 +1209,7 @@ def policytemplates_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policytemplates_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PoliciesApi.policytemplates_list ...' + @api_client.config.logger.debug "Calling API: PoliciesApi.policytemplates_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1204,7 +1220,7 @@ def policytemplates_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PoliciesApi.policytemplates_list" end # resource path - local_var_path = '/policytemplates' + local_var_path = "/policytemplates" # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb b/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb index 7750ee0..9bfc786 100644 --- a/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb +++ b/jcapiv2/lib/jcapiv2/api/policytemplates_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class PolicytemplatesApi @@ -19,6 +19,7 @@ class PolicytemplatesApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Get a specific Policy Template # This endpoint returns a specific policy template. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policies/{Policy_ID}\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the Policy Template. @@ -29,7 +30,7 @@ def initialize(api_client = ApiClient.default) # @return [PolicyTemplateWithDetails] def policytemplates_get(id, content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get a specific Policy Template @@ -42,7 +43,7 @@ def policytemplates_get(id, content_type, accept, opts = {}) # @return [Array<(PolicyTemplateWithDetails, Fixnum, Hash)>] PolicyTemplateWithDetails data, response status code and response headers def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PolicytemplatesApi.policytemplates_get ...' + @api_client.config.logger.debug "Calling API: PolicytemplatesApi.policytemplates_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -57,7 +58,7 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PolicytemplatesApi.policytemplates_get" end # resource path - local_var_path = '/policytemplates/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/policytemplates/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -90,21 +91,22 @@ def policytemplates_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Lists all of the Policy Templates # This endpoint returns all policy templates. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/policytemplates \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def policytemplates_list(content_type, accept, opts = {}) data, _status_code, _headers = policytemplates_list_with_http_info(content_type, accept, opts) - data + return data end # Lists all of the Policy Templates @@ -121,7 +123,7 @@ def policytemplates_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def policytemplates_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: PolicytemplatesApi.policytemplates_list ...' + @api_client.config.logger.debug "Calling API: PolicytemplatesApi.policytemplates_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -132,7 +134,7 @@ def policytemplates_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling PolicytemplatesApi.policytemplates_list" end # resource path - local_var_path = '/policytemplates' + local_var_path = "/policytemplates" # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb b/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb index 6e94a08..bd48e49 100644 --- a/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb +++ b/jcapiv2/lib/jcapiv2/api/radius_servers_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class RADIUSServersApi @@ -19,6 +19,7 @@ class RADIUSServersApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a RADIUS Server # This endpoint returns the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations?targets=user_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_radius_server_associations_list(radiusserver_id, targets, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts) - data + return data end # List the associations of a RADIUS Server @@ -48,7 +49,7 @@ def graph_radius_server_associations_list(radiusserver_id, targets, content_type # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_associations_list_with_http_info(radiusserver_id, targets, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_associations_list ...' + @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_associations_list ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -67,7 +68,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_associations_list" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target end return data, status_code, headers end + # Manage the associations of a RADIUS Server # This endpoint allows you to manage the _direct_ associations of a Radius Server. A direct association can be a non-homogeneous relationship between 2 different objects, for example Radius Servers and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"type\":\"user\", \"id\":\"{USER_ID}\", \"op\":\"add\" }' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -114,7 +116,7 @@ def graph_radius_server_associations_list_with_http_info(radiusserver_id, target # @return [nil] def graph_radius_server_associations_post(radiusserver_id, content_type, accept, opts = {}) graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a RADIUS Server @@ -128,7 +130,7 @@ def graph_radius_server_associations_post(radiusserver_id, content_type, accept, # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_radius_server_associations_post_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_associations_post ...' + @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_associations_post ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -143,7 +145,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_associations_post" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/associations'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/associations".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten end return data, status_code, headers end + # List the Users bound to a RADIUS Server # This endpoint will return all Users bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -187,7 +190,7 @@ def graph_radius_server_associations_post_with_http_info(radiusserver_id, conten # @return [Array] def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts) - data + return data end # List the Users bound to a RADIUS Server @@ -202,7 +205,7 @@ def graph_radius_server_traverse_user(radiusserver_id, content_type, accept, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_traverse_user ...' + @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_traverse_user ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -217,7 +220,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_traverse_user" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/users'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/users".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty end return data, status_code, headers end + # List the User Groups bound to a RADIUS Server # This endpoint will return all Users Groups bound to a RADIUS Server, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this RADIUS server instance to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this RADIUS server instance. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/radiusservers/{RADIUS_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param radiusserver_id ObjectID of the Radius Server. @@ -264,7 +268,7 @@ def graph_radius_server_traverse_user_with_http_info(radiusserver_id, content_ty # @return [Array] def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a RADIUS Server @@ -279,7 +283,7 @@ def graph_radius_server_traverse_user_group(radiusserver_id, content_type, accep # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: RADIUSServersApi.graph_radius_server_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: RADIUSServersApi.graph_radius_server_traverse_user_group ..." end # verify the required parameter 'radiusserver_id' is set if @api_client.config.client_side_validation && radiusserver_id.nil? @@ -294,7 +298,7 @@ def graph_radius_server_traverse_user_group_with_http_info(radiusserver_id, cont fail ArgumentError, "Missing the required parameter 'accept' when calling RADIUSServersApi.graph_radius_server_traverse_user_group" end # resource path - local_var_path = '/radiusservers/{radiusserver_id}/usergroups'.sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) + local_var_path = "/radiusservers/{radiusserver_id}/usergroups".sub('{' + 'radiusserver_id' + '}', radiusserver_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb b/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb index 8b1f3af..f2c79be 100644 --- a/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb +++ b/jcapiv2/lib/jcapiv2/api/samba_domains_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class SambaDomainsApi @@ -19,6 +19,7 @@ class SambaDomainsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Delete Samba Domain # This endpoint allows you to delete a samba domain from an LDAP server. ##### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains/{SAMBA_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -30,7 +31,7 @@ def initialize(api_client = ApiClient.default) # @return [String] def ldapservers_samba_domains_delete(ldapserver_id, id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts) - data + return data end # Delete Samba Domain @@ -44,7 +45,7 @@ def ldapservers_samba_domains_delete(ldapserver_id, id, opts = {}) # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_delete ...' + @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_delete ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -55,7 +56,7 @@ def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {} fail ArgumentError, "Missing the required parameter 'id' when calling SambaDomainsApi.ldapservers_samba_domains_delete" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/sambadomains/{id}'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/sambadomains/{id}".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -88,6 +89,7 @@ def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {} end return data, status_code, headers end + # Get Samba Domain # This endpoint returns a specific samba domain for an LDAP server. ##### Sample Request ``` curl -X GET \\ https://console.jumpcloud.com/api/v2/ldapservers/ldapservers/{LDAP_ID}/sambadomains/{SAMBA_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -99,7 +101,7 @@ def ldapservers_samba_domains_delete_with_http_info(ldapserver_id, id, opts = {} # @return [SambaDomainOutput] def ldapservers_samba_domains_get(ldapserver_id, id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts) - data + return data end # Get Samba Domain @@ -113,7 +115,7 @@ def ldapservers_samba_domains_get(ldapserver_id, id, opts = {}) # @return [Array<(SambaDomainOutput, Fixnum, Hash)>] SambaDomainOutput data, response status code and response headers def ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_get ...' + @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_get ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -124,7 +126,7 @@ def ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling SambaDomainsApi.ldapservers_samba_domains_get" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/sambadomains/{id}'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/sambadomains/{id}".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -157,22 +159,23 @@ def ldapservers_samba_domains_get_with_http_info(ldapserver_id, id, opts = {}) end return data, status_code, headers end + # List Samba Domains # This endpoint returns all samba domains for an LDAP server. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param ldapserver_id Unique identifier of the LDAP server. # @param [Hash] opts the optional parameters # @option opts [String] :content_type (default to application/json) # @option opts [String] :accept (default to application/json) - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def ldapservers_samba_domains_list(ldapserver_id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts) - data + return data end # List Samba Domains @@ -190,14 +193,14 @@ def ldapservers_samba_domains_list(ldapserver_id, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_list ...' + @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_list ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? fail ArgumentError, "Missing the required parameter 'ldapserver_id' when calling SambaDomainsApi.ldapservers_samba_domains_list" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/sambadomains'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/sambadomains".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -235,6 +238,7 @@ def ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts = {}) end return data, status_code, headers end + # Create Samba Domain # This endpoint allows you to create a samba domain for an LDAP server. ##### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"sid\":\"{SID_ID}\", \"name\":\"{WORKGROUP_NAME}\" }' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -246,7 +250,7 @@ def ldapservers_samba_domains_list_with_http_info(ldapserver_id, opts = {}) # @return [SambaDomainOutput] def ldapservers_samba_domains_post(ldapserver_id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts) - data + return data end # Create Samba Domain @@ -260,14 +264,14 @@ def ldapservers_samba_domains_post(ldapserver_id, opts = {}) # @return [Array<(SambaDomainOutput, Fixnum, Hash)>] SambaDomainOutput data, response status code and response headers def ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_post ...' + @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_post ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? fail ArgumentError, "Missing the required parameter 'ldapserver_id' when calling SambaDomainsApi.ldapservers_samba_domains_post" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/sambadomains'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/sambadomains".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s) # query parameters query_params = {} @@ -300,6 +304,7 @@ def ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts = {}) end return data, status_code, headers end + # Update Samba Domain # This endpoint allows you to update the samba domain information for an LDAP server. ##### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/ldapservers/{LDAP_ID}/sambadomains/{SAMBA_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"sid\":\"{SID_ID}\", \"name\":\"{WORKGROUP_NAME}\" }' ``` # @param ldapserver_id Unique identifier of the LDAP server. @@ -312,7 +317,7 @@ def ldapservers_samba_domains_post_with_http_info(ldapserver_id, opts = {}) # @return [SambaDomainOutput] def ldapservers_samba_domains_put(ldapserver_id, id, opts = {}) data, _status_code, _headers = ldapservers_samba_domains_put_with_http_info(ldapserver_id, id, opts) - data + return data end # Update Samba Domain @@ -327,7 +332,7 @@ def ldapservers_samba_domains_put(ldapserver_id, id, opts = {}) # @return [Array<(SambaDomainOutput, Fixnum, Hash)>] SambaDomainOutput data, response status code and response headers def ldapservers_samba_domains_put_with_http_info(ldapserver_id, id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SambaDomainsApi.ldapservers_samba_domains_put ...' + @api_client.config.logger.debug "Calling API: SambaDomainsApi.ldapservers_samba_domains_put ..." end # verify the required parameter 'ldapserver_id' is set if @api_client.config.client_side_validation && ldapserver_id.nil? @@ -338,7 +343,7 @@ def ldapservers_samba_domains_put_with_http_info(ldapserver_id, id, opts = {}) fail ArgumentError, "Missing the required parameter 'id' when calling SambaDomainsApi.ldapservers_samba_domains_put" end # resource path - local_var_path = '/ldapservers/{ldapserver_id}/sambadomains/{id}'.sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) + local_var_path = "/ldapservers/{ldapserver_id}/sambadomains/{id}".sub('{' + 'ldapserver_id' + '}', ldapserver_id.to_s).sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb b/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb index 9464ee0..f3ac41a 100644 --- a/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb +++ b/jcapiv2/lib/jcapiv2/api/system_group_associations_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class SystemGroupAssociationsApi @@ -19,6 +19,7 @@ class SystemGroupAssociationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a System Group # This endpoint returns the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_system_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - data + return data end # List the associations of a System Group @@ -48,7 +49,7 @@ def graph_system_group_associations_list(group_id, content_type, accept, targets # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_associations_list ...' + @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_associations_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -67,7 +68,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'targets' when calling SystemGroupAssociationsApi.graph_system_group_associations_list" end # resource path - local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, end return data, status_code, headers end + # Manage the associations of a System Group # This endpoint allows you to manage the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{UserID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -114,7 +116,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, # @return [nil] def graph_system_group_associations_post(group_id, content_type, accept, opts = {}) graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a System Group @@ -128,7 +130,7 @@ def graph_system_group_associations_post(group_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_associations_post ...' + @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_associations_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -143,7 +145,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_associations_post" end # resource path - local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Commands bound to a System Group # This endpoint will return all Commands bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -187,7 +190,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, # @return [Array] def graph_system_group_traverse_command(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Commands bound to a System Group @@ -202,7 +205,7 @@ def graph_system_group_traverse_command(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_command_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_command ...' + @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_command ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -217,7 +220,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_command" end # resource path - local_var_path = '/systemgroups/{group_id}/commands'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/commands".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the Policies bound to a System Group # This endpoint will return all Policies bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System Group. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not public yet as we haven't finished the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -264,7 +268,7 @@ def graph_system_group_traverse_command_with_http_info(group_id, content_type, a # @return [Array] def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Policies bound to a System Group @@ -279,7 +283,7 @@ def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_policy ...' + @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_policy ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -294,7 +298,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_policy" end # resource path - local_var_path = '/systemgroups/{group_id}/policies'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/policies".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -329,6 +333,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # List the Users bound to a System Group # This endpoint will return all Users bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -341,7 +346,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac # @return [Array] def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Users bound to a System Group @@ -356,7 +361,7 @@ def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user ...' + @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -371,7 +376,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_user" end # resource path - local_var_path = '/systemgroups/{group_id}/users'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/users".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -406,6 +411,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce end return data, status_code, headers end + # List the User Groups bound to a System Group # This endpoint will return all User Groups bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -418,7 +424,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce # @return [Array] def graph_system_group_traverse_user_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a System Group @@ -433,7 +439,7 @@ def graph_system_group_traverse_user_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: SystemGroupAssociationsApi.graph_system_group_traverse_user_group ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -448,7 +454,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupAssociationsApi.graph_system_group_traverse_user_group" end # resource path - local_var_path = '/systemgroups/{group_id}/usergroups'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/usergroups".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb b/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb index 7f06e87..2181984 100644 --- a/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb +++ b/jcapiv2/lib/jcapiv2/api/system_group_members_membership_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class SystemGroupMembersMembershipApi @@ -19,21 +19,22 @@ class SystemGroupMembersMembershipApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the System Group's parents # This endpoint returns all System Groups a System Group is a member of. This endpoint is not yet public as we haven't completed the code yet. # @param group_id ObjectID of the System Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Group's parents @@ -50,7 +51,7 @@ def graph_system_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_member_of ...' + @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_member_of ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -65,7 +66,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_member_of" end # resource path - local_var_path = '/systemgroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -102,6 +103,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the members of a System Group # This endpoint returns the system members of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -114,7 +116,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the members of a System Group @@ -129,7 +131,7 @@ def graph_system_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_list ...' + @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -144,7 +146,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_members_list" end # resource path - local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -179,6 +181,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep end return data, status_code, headers end + # Manage the members of a System Group # This endpoint allows you to manage the system members of a System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{System_ID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -192,7 +195,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep # @return [nil] def graph_system_group_members_post(group_id, content_type, accept, opts = {}) graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the members of a System Group @@ -208,7 +211,7 @@ def graph_system_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_post ...' + @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_members_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -223,7 +226,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_members_post" end # resource path - local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -257,6 +260,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep end return data, status_code, headers end + # List the System Group's membership # This endpoint returns all Systems that are a member of this System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -265,13 +269,13 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_membership_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Group's membership @@ -288,7 +292,7 @@ def graph_system_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupMembersMembershipApi.graph_system_group_membership ...' + @api_client.config.logger.debug "Calling API: SystemGroupMembersMembershipApi.graph_system_group_membership ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -303,7 +307,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupMembersMembershipApi.graph_system_group_membership" end # resource path - local_var_path = '/systemgroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/system_groups_api.rb b/jcapiv2/lib/jcapiv2/api/system_groups_api.rb index 2853d75..1560a8d 100644 --- a/jcapiv2/lib/jcapiv2/api/system_groups_api.rb +++ b/jcapiv2/lib/jcapiv2/api/system_groups_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class SystemGroupsApi @@ -19,6 +19,7 @@ class SystemGroupsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a System Group # This endpoint returns the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_system_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - data + return data end # List the associations of a System Group @@ -48,7 +49,7 @@ def graph_system_group_associations_list(group_id, content_type, accept, targets # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_associations_list ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_associations_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -67,7 +68,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'targets' when calling SystemGroupsApi.graph_system_group_associations_list" end # resource path - local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, end return data, status_code, headers end + # Manage the associations of a System Group # This endpoint allows you to manage the _direct_ associations of a System Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example System Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{UserID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -114,7 +116,7 @@ def graph_system_group_associations_list_with_http_info(group_id, content_type, # @return [nil] def graph_system_group_associations_post(group_id, content_type, accept, opts = {}) graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a System Group @@ -128,7 +130,7 @@ def graph_system_group_associations_post(group_id, content_type, accept, opts = # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_associations_post ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_associations_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -143,7 +145,7 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_associations_post" end # resource path - local_var_path = '/systemgroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -175,21 +177,22 @@ def graph_system_group_associations_post_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the System Group's parents # This endpoint returns all System Groups a System Group is a member of. This endpoint is not yet public as we haven't completed the code yet. # @param group_id ObjectID of the System Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Group's parents @@ -206,7 +209,7 @@ def graph_system_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_member_of ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_member_of ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -221,7 +224,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_member_of" end # resource path - local_var_path = '/systemgroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -258,6 +261,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the members of a System Group # This endpoint returns the system members of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -270,7 +274,7 @@ def graph_system_group_member_of_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the members of a System Group @@ -285,7 +289,7 @@ def graph_system_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_members_list ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_members_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -300,7 +304,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_members_list" end # resource path - local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -335,6 +339,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep end return data, status_code, headers end + # Manage the members of a System Group # This endpoint allows you to manage the system members of a System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{System_ID}\" }' ``` # @param group_id ObjectID of the System Group. @@ -348,7 +353,7 @@ def graph_system_group_members_list_with_http_info(group_id, content_type, accep # @return [nil] def graph_system_group_members_post(group_id, content_type, accept, opts = {}) graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the members of a System Group @@ -364,7 +369,7 @@ def graph_system_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_members_post ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_members_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -379,7 +384,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_members_post" end # resource path - local_var_path = '/systemgroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -413,6 +418,7 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep end return data, status_code, headers end + # List the System Group's membership # This endpoint returns all Systems that are a member of this System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -421,13 +427,13 @@ def graph_system_group_members_post_with_http_info(group_id, content_type, accep # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_membership_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Group's membership @@ -444,7 +450,7 @@ def graph_system_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_membership ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_membership ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -459,7 +465,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_membership" end # resource path - local_var_path = '/systemgroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -496,6 +502,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the Policies bound to a System Group # This endpoint will return all Policies bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System Group. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not public yet as we haven't finished the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -508,7 +515,7 @@ def graph_system_group_membership_with_http_info(group_id, content_type, accept, # @return [Array] def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Policies bound to a System Group @@ -523,7 +530,7 @@ def graph_system_group_traverse_policy(group_id, content_type, accept, opts = {} # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_policy_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_traverse_policy ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_traverse_policy ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -538,7 +545,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_traverse_policy" end # resource path - local_var_path = '/systemgroups/{group_id}/policies'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/policies".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -573,6 +580,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # List the Users bound to a System Group # This endpoint will return all Users bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -585,7 +593,7 @@ def graph_system_group_traverse_policy_with_http_info(group_id, content_type, ac # @return [Array] def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Users bound to a System Group @@ -600,7 +608,7 @@ def graph_system_group_traverse_user(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_traverse_user ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_traverse_user ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -615,7 +623,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_traverse_user" end # resource path - local_var_path = '/systemgroups/{group_id}/users'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/users".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -650,6 +658,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce end return data, status_code, headers end + # List the User Groups bound to a System Group # This endpoint will return all User Groups bound to a System Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System Group to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{GroupID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the System Group. @@ -662,7 +671,7 @@ def graph_system_group_traverse_user_with_http_info(group_id, content_type, acce # @return [Array] def graph_system_group_traverse_user_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a System Group @@ -677,7 +686,7 @@ def graph_system_group_traverse_user_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_group_traverse_user_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.graph_system_group_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.graph_system_group_traverse_user_group ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -692,7 +701,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.graph_system_group_traverse_user_group" end # resource path - local_var_path = '/systemgroups/{group_id}/usergroups'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/systemgroups/{group_id}/usergroups".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -727,6 +736,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type end return data, status_code, headers end + # Delete a System Group # This endpoint allows you to delete a System Group. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the System Group. @@ -737,7 +747,7 @@ def graph_system_group_traverse_user_group_with_http_info(group_id, content_type # @return [nil] def groups_system_delete(id, content_type, accept, opts = {}) groups_system_delete_with_http_info(id, content_type, accept, opts) - nil + return nil end # Delete a System Group @@ -750,7 +760,7 @@ def groups_system_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_delete ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -765,7 +775,7 @@ def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_delete" end # resource path - local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -797,6 +807,7 @@ def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # View an individual System Group details # This endpoint returns the details of a System Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the System Group. @@ -807,7 +818,7 @@ def groups_system_delete_with_http_info(id, content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_get(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_system_get_with_http_info(id, content_type, accept, opts) - data + return data end # View an individual System Group details @@ -820,7 +831,7 @@ def groups_system_get(id, content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_get ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -835,7 +846,7 @@ def groups_system_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_get" end # resource path - local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -868,21 +879,22 @@ def groups_system_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List all System Groups # This endpoint returns all System Groups. Available filter fields: - `name` - `disabled` - `type` #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def groups_system_list(content_type, accept, opts = {}) data, _status_code, _headers = groups_system_list_with_http_info(content_type, accept, opts) - data + return data end # List all System Groups @@ -899,7 +911,7 @@ def groups_system_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def groups_system_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_list ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -910,7 +922,7 @@ def groups_system_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_list" end # resource path - local_var_path = '/systemgroups' + local_var_path = "/systemgroups" # query parameters query_params = {} @@ -948,6 +960,7 @@ def groups_system_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Partial update a System Group # We have hidden PATCH on the systemgroups and usergroups for now; we don't have that implemented correctly yet, people should use PUT until we do a true PATCH operation. #### Sample Request ``` https://console.jumpcloud.com/api/v2/systemgroups/{id} ``` # @param id ObjectID of the System Group. @@ -959,7 +972,7 @@ def groups_system_list_with_http_info(content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_patch(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_system_patch_with_http_info(id, content_type, accept, opts) - data + return data end # Partial update a System Group @@ -973,7 +986,7 @@ def groups_system_patch(id, content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_patch ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_patch ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -988,7 +1001,7 @@ def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_patch" end # resource path - local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1021,6 +1034,7 @@ def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Create a new System Group # This endpoint allows you to create a new System Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{Group_Name}\" }' ``` # @param content_type @@ -1031,7 +1045,7 @@ def groups_system_patch_with_http_info(id, content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_post(content_type, accept, opts = {}) data, _status_code, _headers = groups_system_post_with_http_info(content_type, accept, opts) - data + return data end # Create a new System Group @@ -1044,7 +1058,7 @@ def groups_system_post(content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_post ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1055,7 +1069,7 @@ def groups_system_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_post" end # resource path - local_var_path = '/systemgroups' + local_var_path = "/systemgroups" # query parameters query_params = {} @@ -1088,6 +1102,7 @@ def groups_system_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update a System Group # This endpoint allows you to do a full update of the System Group. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/systemgroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"Name_Update\" }' ``` # @param id ObjectID of the System Group. @@ -1099,7 +1114,7 @@ def groups_system_post_with_http_info(content_type, accept, opts = {}) # @return [SystemGroup] def groups_system_put(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_system_put_with_http_info(id, content_type, accept, opts) - data + return data end # Update a System Group @@ -1113,7 +1128,7 @@ def groups_system_put(id, content_type, accept, opts = {}) # @return [Array<(SystemGroup, Fixnum, Hash)>] SystemGroup data, response status code and response headers def groups_system_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemGroupsApi.groups_system_put ...' + @api_client.config.logger.debug "Calling API: SystemGroupsApi.groups_system_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1128,7 +1143,7 @@ def groups_system_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling SystemGroupsApi.groups_system_put" end # resource path - local_var_path = '/systemgroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/systemgroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/systems_api.rb b/jcapiv2/lib/jcapiv2/api/systems_api.rb index e97a6a1..a3c7de1 100644 --- a/jcapiv2/lib/jcapiv2/api/systems_api.rb +++ b/jcapiv2/lib/jcapiv2/api/systems_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class SystemsApi @@ -19,6 +19,7 @@ class SystemsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a System # This endpoint returns the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations?targets=user \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -34,7 +35,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_system_associations_list(system_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts) - data + return data end # List the associations of a System @@ -52,7 +53,7 @@ def graph_system_associations_list(system_id, content_type, accept, targets, opt # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_associations_list_with_http_info(system_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_associations_list ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_associations_list ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -71,7 +72,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'targets' when calling SystemsApi.graph_system_associations_list" end # resource path - local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -109,6 +110,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep end return data, status_code, headers end + # Manage associations of a System # This endpoint allows you to manage the _direct_ associations of a System. A direct association can be a non-homogeneous relationship between 2 different objects, for example Systems and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/systems/{System_ID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"user\", \"id\": \"UserID\" }' ``` # @param system_id ObjectID of the System. @@ -122,7 +124,7 @@ def graph_system_associations_list_with_http_info(system_id, content_type, accep # @return [nil] def graph_system_associations_post(system_id, content_type, accept, opts = {}) graph_system_associations_post_with_http_info(system_id, content_type, accept, opts) - nil + return nil end # Manage associations of a System @@ -138,7 +140,7 @@ def graph_system_associations_post(system_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_system_associations_post_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_associations_post ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_associations_post ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -153,7 +155,7 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_associations_post" end # resource path - local_var_path = '/systems/{system_id}/associations'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/associations".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -187,23 +189,24 @@ def graph_system_associations_post_with_http_info(system_id, content_type, accep end return data, status_code, headers end + # List the parent Groups of a System # This endpoint returns all the System Groups a System is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_system_member_of(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_member_of_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the parent Groups of a System @@ -222,7 +225,7 @@ def graph_system_member_of(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_member_of_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_member_of ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_member_of ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -237,7 +240,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_member_of" end # resource path - local_var_path = '/systems/{system_id}/memberof'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/memberof".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -276,6 +279,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts end return data, status_code, headers end + # List the Commands bound to a System # This endpoint will return all Commands bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Command; this array represents all grouping and/or associations that would have to be removed to deprovision the Command from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/commands \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -288,7 +292,7 @@ def graph_system_member_of_with_http_info(system_id, content_type, accept, opts # @return [Array] def graph_system_traverse_command(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the Commands bound to a System @@ -303,7 +307,7 @@ def graph_system_traverse_command(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_command_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_command ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_command ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -318,7 +322,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_command" end # resource path - local_var_path = '/systems/{system_id}/commands'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/commands".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -353,6 +357,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept end return data, status_code, headers end + # List the Policies bound to a System # This endpoint will return all Policies bound to a System, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding Policy; this array represents all grouping and/or associations that would have to be removed to deprovision the Policy from this System. See `/members` and `/associations` endpoints to manage those collections. This endpoint is not yet public as we have finish the code. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/{System_ID}/policies \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -365,7 +370,7 @@ def graph_system_traverse_command_with_http_info(system_id, content_type, accept # @return [Array] def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the Policies bound to a System @@ -380,7 +385,7 @@ def graph_system_traverse_policy(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_policy ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_policy ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -395,7 +400,7 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_policy" end # resource path - local_var_path = '/systems/{system_id}/policies'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/policies".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -430,6 +435,7 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, end return data, status_code, headers end + # List the Users bound to a System # This endpoint will return all Users bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User; this array represents all grouping and/or associations that would have to be removed to deprovision the User from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/users \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -441,11 +447,11 @@ def graph_system_traverse_policy_with_http_info(system_id, content_type, accept, # @option opts [Integer] :skip The offset into the records to return. (default to 0) # @option opts [String] :date Current date header for the System Context API # @option opts [String] :authorization Authorization header for the System Context API - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] def graph_system_traverse_user(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the Users bound to a System @@ -463,7 +469,7 @@ def graph_system_traverse_user(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_user ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_user ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -478,7 +484,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_user" end # resource path - local_var_path = '/systems/{system_id}/users'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/users".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -516,6 +522,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o end return data, status_code, headers end + # List the User Groups bound to a System # This endpoint will return all User Groups bound to a System, either directly or indirectly essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this System to the corresponding User Group; this array represents all grouping and/or associations that would have to be removed to deprovision the User Group from this System. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/systems/{System_ID}/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param system_id ObjectID of the System. @@ -530,7 +537,7 @@ def graph_system_traverse_user_with_http_info(system_id, content_type, accept, o # @return [Array] def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts) - data + return data end # List the User Groups bound to a System @@ -547,7 +554,7 @@ def graph_system_traverse_user_group(system_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_system_traverse_user_group_with_http_info(system_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.graph_system_traverse_user_group ...' + @api_client.config.logger.debug "Calling API: SystemsApi.graph_system_traverse_user_group ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? @@ -562,7 +569,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling SystemsApi.graph_system_traverse_user_group" end # resource path - local_var_path = '/systems/{system_id}/usergroups'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/usergroups".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} @@ -599,6 +606,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc end return data, status_code, headers end + # Get System FDE Key # This endpoint will return the current (latest) fde key saved for a system. # @param system_id @@ -607,7 +615,7 @@ def graph_system_traverse_user_group_with_http_info(system_id, content_type, acc # @return [Systemfdekey] def systems_get_fde_key(system_id, opts = {}) data, _status_code, _headers = systems_get_fde_key_with_http_info(system_id, opts) - data + return data end # Get System FDE Key @@ -618,14 +626,14 @@ def systems_get_fde_key(system_id, opts = {}) # @return [Array<(Systemfdekey, Fixnum, Hash)>] Systemfdekey data, response status code and response headers def systems_get_fde_key_with_http_info(system_id, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: SystemsApi.systems_get_fde_key ...' + @api_client.config.logger.debug "Calling API: SystemsApi.systems_get_fde_key ..." end # verify the required parameter 'system_id' is set if @api_client.config.client_side_validation && system_id.nil? fail ArgumentError, "Missing the required parameter 'system_id' when calling SystemsApi.systems_get_fde_key" end # resource path - local_var_path = '/systems/{system_id}/fdekey'.sub('{' + 'system_id' + '}', system_id.to_s) + local_var_path = "/systems/{system_id}/fdekey".sub('{' + 'system_id' + '}', system_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb b/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb index 72548be..0852a2f 100644 --- a/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb +++ b/jcapiv2/lib/jcapiv2/api/user_group_associations_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class UserGroupAssociationsApi @@ -19,6 +19,7 @@ class UserGroupAssociationsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a User Group. # This endpoint returns the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations?targets=system \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_user_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - data + return data end # List the associations of a User Group. @@ -48,7 +49,7 @@ def graph_user_group_associations_list(group_id, content_type, accept, targets, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_associations_list ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_associations_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -67,7 +68,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'targets' when calling UserGroupAssociationsApi.graph_user_group_associations_list" end # resource path - local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # Manage the associations of a User Group # This endpoint manages the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{SystemID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -114,7 +116,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac # @return [nil] def graph_user_group_associations_post(group_id, content_type, accept, opts = {}) graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a User Group @@ -128,7 +130,7 @@ def graph_user_group_associations_post(group_id, content_type, accept, opts = {} # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_associations_post ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_associations_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -143,7 +145,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_associations_post" end # resource path - local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -175,6 +177,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # List the Active Directories bound to a User Group # This endpoint will return all Active Directory Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Active Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Active Directory from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/activedirectories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -187,7 +190,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac # @return [Array] def graph_user_group_traverse_active_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Active Directories bound to a User Group @@ -202,7 +205,7 @@ def graph_user_group_traverse_active_directory(group_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_active_directory ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_active_directory ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -217,7 +220,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_active_directory" end # resource path - local_var_path = '/usergroups/{group_id}/activedirectories'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/activedirectories".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -252,6 +255,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ end return data, status_code, headers end + # List the Applications bound to a User Group # This endpoint will return all Applications bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -264,7 +268,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ # @return [Array] def graph_user_group_traverse_application(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Applications bound to a User Group @@ -279,7 +283,7 @@ def graph_user_group_traverse_application(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_application ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_application ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -294,7 +298,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_application" end # resource path - local_var_path = '/usergroups/{group_id}/applications'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/applications".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -329,6 +333,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Directories bound to a User Group # This endpoint will return all Directories bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directories from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -341,7 +346,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Directories bound to a User Group @@ -356,7 +361,7 @@ def graph_user_group_traverse_directory(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_directory ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_directory ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -371,7 +376,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_directory" end # resource path - local_var_path = '/usergroups/{group_id}/directories'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/directories".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -406,6 +411,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the G Suite instances bound to a User Group # This endpoint will return all G Suite Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -418,7 +424,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the G Suite instances bound to a User Group @@ -433,7 +439,7 @@ def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_g_suite ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_g_suite ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -448,7 +454,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_g_suite" end # resource path - local_var_path = '/usergroups/{group_id}/gsuites'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/gsuites".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -483,6 +489,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc end return data, status_code, headers end + # List the LDAP Servers bound to a User Group # This endpoint will return all LDAP Servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -495,7 +502,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc # @return [Array] def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the LDAP Servers bound to a User Group @@ -510,7 +517,7 @@ def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_ldap_server ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_ldap_server ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -525,7 +532,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_ldap_server" end # resource path - local_var_path = '/usergroups/{group_id}/ldapservers'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/ldapservers".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -560,6 +567,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Office 365 instances bound to a User Group # This endpoint will return all Office 365 instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -572,7 +580,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_office365(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Office 365 instances bound to a User Group @@ -587,7 +595,7 @@ def graph_user_group_traverse_office365(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_office365 ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_office365 ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -602,7 +610,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_office365" end # resource path - local_var_path = '/usergroups/{group_id}/office365s'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/office365s".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -637,6 +645,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the RADIUS Servers bound to a User Group # This endpoint will return all RADIUS servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -649,7 +658,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the RADIUS Servers bound to a User Group @@ -664,7 +673,7 @@ def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_radius_server ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_radius_server ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -679,7 +688,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_radius_server" end # resource path - local_var_path = '/usergroups/{group_id}/radiusservers'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/radiusservers".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -714,6 +723,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ end return data, status_code, headers end + # List the Systems bound to a User Group # This endpoint will return all Systems bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -726,7 +736,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ # @return [Array] def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Systems bound to a User Group @@ -741,7 +751,7 @@ def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -756,7 +766,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_system" end # resource path - local_var_path = '/usergroups/{group_id}/systems'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/systems".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -791,6 +801,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce end return data, status_code, headers end + # List the System Groups bound to User Groups # This endpoint will return all System Groups bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -803,7 +814,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce # @return [Array] def graph_user_group_traverse_system_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Groups bound to User Groups @@ -818,7 +829,7 @@ def graph_user_group_traverse_system_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: UserGroupAssociationsApi.graph_user_group_traverse_system_group ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -833,7 +844,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupAssociationsApi.graph_user_group_traverse_system_group" end # resource path - local_var_path = '/usergroups/{group_id}/systemgroups'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/systemgroups".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb b/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb index a63c037..a607e6e 100644 --- a/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb +++ b/jcapiv2/lib/jcapiv2/api/user_group_members_membership_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class UserGroupMembersMembershipApi @@ -19,21 +19,22 @@ class UserGroupMembersMembershipApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the User Group's parents # This endpoint returns all User Groups a User Group is a member of. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{group_id}/memberof ``` Not public yet, as the code is not finished, # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Group's parents @@ -50,7 +51,7 @@ def graph_user_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_member_of ...' + @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_member_of ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -65,7 +66,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_member_of" end # resource path - local_var_path = '/usergroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -102,6 +103,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op end return data, status_code, headers end + # List the members of a User Group # This endpoint returns the user members of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -114,7 +116,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op # @return [Array] def graph_user_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the members of a User Group @@ -129,7 +131,7 @@ def graph_user_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_members_list ...' + @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_members_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -144,7 +146,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_members_list" end # resource path - local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -179,6 +181,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # Manage the members of a User Group # This endpoint allows you to manage the user members of a User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -190,7 +193,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, # @return [nil] def graph_user_group_members_post(group_id, content_type, accept, opts = {}) graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the members of a User Group @@ -204,7 +207,7 @@ def graph_user_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_members_post ...' + @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_members_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -219,7 +222,7 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_members_post" end # resource path - local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -251,21 +254,22 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the User Group's membership # This endpoint returns all users members that are a member of this User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_membership_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Group's membership @@ -282,7 +286,7 @@ def graph_user_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupMembersMembershipApi.graph_user_group_membership ...' + @api_client.config.logger.debug "Calling API: UserGroupMembersMembershipApi.graph_user_group_membership ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -297,7 +301,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupMembersMembershipApi.graph_user_group_membership" end # resource path - local_var_path = '/usergroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/user_groups_api.rb b/jcapiv2/lib/jcapiv2/api/user_groups_api.rb index 2f0cc51..1d9cf92 100644 --- a/jcapiv2/lib/jcapiv2/api/user_groups_api.rb +++ b/jcapiv2/lib/jcapiv2/api/user_groups_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class UserGroupsApi @@ -19,6 +19,7 @@ class UserGroupsApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a User Group. # This endpoint returns the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations?targets=system \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_user_group_associations_list(group_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts) - data + return data end # List the associations of a User Group. @@ -48,7 +49,7 @@ def graph_user_group_associations_list(group_id, content_type, accept, targets, # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_associations_list_with_http_info(group_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_associations_list ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_associations_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -67,7 +68,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'targets' when calling UserGroupsApi.graph_user_group_associations_list" end # resource path - local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # Manage the associations of a User Group # This endpoint manages the _direct_ associations of this User Group. A direct association can be a non-homogeneous relationship between 2 different objects, for example User Groups and Users. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system\", \"id\": \"{SystemID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -114,7 +116,7 @@ def graph_user_group_associations_list_with_http_info(group_id, content_type, ac # @return [nil] def graph_user_group_associations_post(group_id, content_type, accept, opts = {}) graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a User Group @@ -128,7 +130,7 @@ def graph_user_group_associations_post(group_id, content_type, accept, opts = {} # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_associations_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_associations_post ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_associations_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -143,7 +145,7 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_associations_post" end # resource path - local_var_path = '/usergroups/{group_id}/associations'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/associations".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -175,21 +177,22 @@ def graph_user_group_associations_post_with_http_info(group_id, content_type, ac end return data, status_code, headers end + # List the User Group's parents # This endpoint returns all User Groups a User Group is a member of. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{group_id}/memberof ``` Not public yet, as the code is not finished, # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_member_of(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Group's parents @@ -206,7 +209,7 @@ def graph_user_group_member_of(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_member_of_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_member_of ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_member_of ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -221,7 +224,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_member_of" end # resource path - local_var_path = '/usergroups/{group_id}/memberof'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/memberof".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -258,6 +261,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op end return data, status_code, headers end + # List the members of a User Group # This endpoint returns the user members of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -270,7 +274,7 @@ def graph_user_group_member_of_with_http_info(group_id, content_type, accept, op # @return [Array] def graph_user_group_members_list(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the members of a User Group @@ -285,7 +289,7 @@ def graph_user_group_members_list(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_members_list_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_members_list ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_members_list ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -300,7 +304,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_members_list" end # resource path - local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -335,6 +339,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # Manage the members of a User Group # This endpoint allows you to manage the user members of a User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/members \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"user\", \"id\": \"{User_ID}\" }' ``` # @param group_id ObjectID of the User Group. @@ -346,7 +351,7 @@ def graph_user_group_members_list_with_http_info(group_id, content_type, accept, # @return [nil] def graph_user_group_members_post(group_id, content_type, accept, opts = {}) graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts) - nil + return nil end # Manage the members of a User Group @@ -360,7 +365,7 @@ def graph_user_group_members_post(group_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_group_members_post_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_members_post ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_members_post ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -375,7 +380,7 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_members_post" end # resource path - local_var_path = '/usergroups/{group_id}/members'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/members".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -407,21 +412,22 @@ def graph_user_group_members_post_with_http_info(group_id, content_type, accept, end return data, status_code, headers end + # List the User Group's membership # This endpoint returns all users members that are a member of this User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/membership \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_group_membership(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_membership_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the User Group's membership @@ -438,7 +444,7 @@ def graph_user_group_membership(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_membership_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_membership ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_membership ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -453,7 +459,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_membership" end # resource path - local_var_path = '/usergroups/{group_id}/membership'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/membership".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -490,6 +496,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o end return data, status_code, headers end + # List the Active Directories bound to a User Group # This endpoint will return all Active Directory Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Active Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Active Directory from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/activedirectories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -502,7 +509,7 @@ def graph_user_group_membership_with_http_info(group_id, content_type, accept, o # @return [Array] def graph_user_group_traverse_active_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Active Directories bound to a User Group @@ -517,7 +524,7 @@ def graph_user_group_traverse_active_directory(group_id, content_type, accept, o # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_active_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_active_directory ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_active_directory ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -532,7 +539,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_active_directory" end # resource path - local_var_path = '/usergroups/{group_id}/activedirectories'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/activedirectories".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -567,6 +574,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ end return data, status_code, headers end + # List the Applications bound to a User Group # This endpoint will return all Applications bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -579,7 +587,7 @@ def graph_user_group_traverse_active_directory_with_http_info(group_id, content_ # @return [Array] def graph_user_group_traverse_application(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Applications bound to a User Group @@ -594,7 +602,7 @@ def graph_user_group_traverse_application(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_application_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_application ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_application ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -609,7 +617,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_application" end # resource path - local_var_path = '/usergroups/{group_id}/applications'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/applications".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -644,6 +652,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Directories bound to a User Group # This endpoint will return all Directories bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directories from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -656,7 +665,7 @@ def graph_user_group_traverse_application_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_directory(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Directories bound to a User Group @@ -671,7 +680,7 @@ def graph_user_group_traverse_directory(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_directory_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_directory ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_directory ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -686,7 +695,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_directory" end # resource path - local_var_path = '/usergroups/{group_id}/directories'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/directories".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -721,6 +730,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the G Suite instances bound to a User Group # This endpoint will return all G Suite Instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -733,7 +743,7 @@ def graph_user_group_traverse_directory_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the G Suite instances bound to a User Group @@ -748,7 +758,7 @@ def graph_user_group_traverse_g_suite(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_g_suite ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_g_suite ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -763,7 +773,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_g_suite" end # resource path - local_var_path = '/usergroups/{group_id}/gsuites'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/gsuites".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -798,6 +808,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc end return data, status_code, headers end + # List the LDAP Servers bound to a User Group # This endpoint will return all LDAP Servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -810,7 +821,7 @@ def graph_user_group_traverse_g_suite_with_http_info(group_id, content_type, acc # @return [Array] def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the LDAP Servers bound to a User Group @@ -825,7 +836,7 @@ def graph_user_group_traverse_ldap_server(group_id, content_type, accept, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_ldap_server ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_ldap_server ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -840,7 +851,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_ldap_server" end # resource path - local_var_path = '/usergroups/{group_id}/ldapservers'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/ldapservers".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -875,6 +886,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, end return data, status_code, headers end + # List the Office 365 instances bound to a User Group # This endpoint will return all Office 365 instances bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -887,7 +899,7 @@ def graph_user_group_traverse_ldap_server_with_http_info(group_id, content_type, # @return [Array] def graph_user_group_traverse_office365(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Office 365 instances bound to a User Group @@ -902,7 +914,7 @@ def graph_user_group_traverse_office365(group_id, content_type, accept, opts = { # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_office365_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_office365 ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_office365 ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -917,7 +929,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_office365" end # resource path - local_var_path = '/usergroups/{group_id}/office365s'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/office365s".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -952,6 +964,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a end return data, status_code, headers end + # List the RADIUS Servers bound to a User Group # This endpoint will return all RADIUS servers bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -964,7 +977,7 @@ def graph_user_group_traverse_office365_with_http_info(group_id, content_type, a # @return [Array] def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the RADIUS Servers bound to a User Group @@ -979,7 +992,7 @@ def graph_user_group_traverse_radius_server(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_radius_server_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_radius_server ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_radius_server ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -994,7 +1007,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_radius_server" end # resource path - local_var_path = '/usergroups/{group_id}/radiusservers'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/radiusservers".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -1029,6 +1042,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ end return data, status_code, headers end + # List the Systems bound to a User Group # This endpoint will return all Systems bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systems \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -1041,7 +1055,7 @@ def graph_user_group_traverse_radius_server_with_http_info(group_id, content_typ # @return [Array] def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the Systems bound to a User Group @@ -1056,7 +1070,7 @@ def graph_user_group_traverse_system(group_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_system ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_system ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -1071,7 +1085,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_system" end # resource path - local_var_path = '/usergroups/{group_id}/systems'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/systems".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -1106,6 +1120,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce end return data, status_code, headers end + # List the System Groups bound to User Groups # This endpoint will return all System Groups bound to a User Group, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User Group to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User Group. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID}/systemgroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param group_id ObjectID of the User Group. @@ -1118,7 +1133,7 @@ def graph_user_group_traverse_system_with_http_info(group_id, content_type, acce # @return [Array] def graph_user_group_traverse_system_group(group_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts) - data + return data end # List the System Groups bound to User Groups @@ -1133,7 +1148,7 @@ def graph_user_group_traverse_system_group(group_id, content_type, accept, opts # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_group_traverse_system_group_with_http_info(group_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.graph_user_group_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.graph_user_group_traverse_system_group ..." end # verify the required parameter 'group_id' is set if @api_client.config.client_side_validation && group_id.nil? @@ -1148,7 +1163,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.graph_user_group_traverse_system_group" end # resource path - local_var_path = '/usergroups/{group_id}/systemgroups'.sub('{' + 'group_id' + '}', group_id.to_s) + local_var_path = "/usergroups/{group_id}/systemgroups".sub('{' + 'group_id' + '}', group_id.to_s) # query parameters query_params = {} @@ -1183,6 +1198,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type end return data, status_code, headers end + # Delete a User Group # This endpoint allows you to delete a User Group. #### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/usergroups/{GroupID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the User Group. @@ -1193,7 +1209,7 @@ def graph_user_group_traverse_system_group_with_http_info(group_id, content_type # @return [nil] def groups_user_delete(id, content_type, accept, opts = {}) groups_user_delete_with_http_info(id, content_type, accept, opts) - nil + return nil end # Delete a User Group @@ -1206,7 +1222,7 @@ def groups_user_delete(id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_delete ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1221,7 +1237,7 @@ def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_delete" end # resource path - local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1253,6 +1269,7 @@ def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # View an individual User Group details # This endpoint returns the details of a User Group. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups/{GroupID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id ObjectID of the User Group. @@ -1263,7 +1280,7 @@ def groups_user_delete_with_http_info(id, content_type, accept, opts = {}) # @return [UserGroup] def groups_user_get(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_user_get_with_http_info(id, content_type, accept, opts) - data + return data end # View an individual User Group details @@ -1276,7 +1293,7 @@ def groups_user_get(id, content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_get ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1291,7 +1308,7 @@ def groups_user_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_get" end # resource path - local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1324,21 +1341,22 @@ def groups_user_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # List all User Groups # This endpoint returns all User Groups. Available filter fields: - `name` - `disabled` - `type` #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def groups_user_list(content_type, accept, opts = {}) data, _status_code, _headers = groups_user_list_with_http_info(content_type, accept, opts) - data + return data end # List all User Groups @@ -1355,7 +1373,7 @@ def groups_user_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def groups_user_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_list ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1366,7 +1384,7 @@ def groups_user_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_list" end # resource path - local_var_path = '/usergroups' + local_var_path = "/usergroups" # query parameters query_params = {} @@ -1404,6 +1422,7 @@ def groups_user_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Partial update a User Group # We have hidden PATCH on the systemgroups and usergroups for now; we don't have that implemented correctly yet, people should use PUT until we do a true PATCH operation. #### Sample Request ``` https://console.jumpcloud.com/api/v2/usergroups/{id} ``` # @param id ObjectID of the User Group. @@ -1415,7 +1434,7 @@ def groups_user_list_with_http_info(content_type, accept, opts = {}) # @return [UserGroup] def groups_user_patch(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_user_patch_with_http_info(id, content_type, accept, opts) - data + return data end # Partial update a User Group @@ -1429,7 +1448,7 @@ def groups_user_patch(id, content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_patch ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_patch ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1444,7 +1463,7 @@ def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_patch" end # resource path - local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -1477,6 +1496,7 @@ def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Create a new User Group # This endpoint allows you to create a new User Group. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/usergroups \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"{Group_Name}\" }' ``` # @param content_type @@ -1487,7 +1507,7 @@ def groups_user_patch_with_http_info(id, content_type, accept, opts = {}) # @return [UserGroup] def groups_user_post(content_type, accept, opts = {}) data, _status_code, _headers = groups_user_post_with_http_info(content_type, accept, opts) - data + return data end # Create a new User Group @@ -1500,7 +1520,7 @@ def groups_user_post(content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_post ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -1511,7 +1531,7 @@ def groups_user_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_post" end # resource path - local_var_path = '/usergroups' + local_var_path = "/usergroups" # query parameters query_params = {} @@ -1544,6 +1564,7 @@ def groups_user_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update a User Group # This endpoint allows you to do a full update of the User Group. #### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/usergroups/{Group_ID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY' \\ -d '{ \"name\": \"group_update\" }' ``` # @param id ObjectID of the User Group. @@ -1555,7 +1576,7 @@ def groups_user_post_with_http_info(content_type, accept, opts = {}) # @return [UserGroup] def groups_user_put(id, content_type, accept, opts = {}) data, _status_code, _headers = groups_user_put_with_http_info(id, content_type, accept, opts) - data + return data end # Update a User Group @@ -1569,7 +1590,7 @@ def groups_user_put(id, content_type, accept, opts = {}) # @return [Array<(UserGroup, Fixnum, Hash)>] UserGroup data, response status code and response headers def groups_user_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UserGroupsApi.groups_user_put ...' + @api_client.config.logger.debug "Calling API: UserGroupsApi.groups_user_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -1584,7 +1605,7 @@ def groups_user_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UserGroupsApi.groups_user_put" end # resource path - local_var_path = '/usergroups/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/usergroups/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/users_api.rb b/jcapiv2/lib/jcapiv2/api/users_api.rb index a4dbc87..d808caf 100644 --- a/jcapiv2/lib/jcapiv2/api/users_api.rb +++ b/jcapiv2/lib/jcapiv2/api/users_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class UsersApi @@ -19,6 +19,7 @@ class UsersApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # List the associations of a User # This endpoint returns the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/associations?targets=system_group \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -32,7 +33,7 @@ def initialize(api_client = ApiClient.default) # @return [Array] def graph_user_associations_list(user_id, content_type, accept, targets, opts = {}) data, _status_code, _headers = graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts) - data + return data end # List the associations of a User @@ -48,7 +49,7 @@ def graph_user_associations_list(user_id, content_type, accept, targets, opts = # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_associations_list_with_http_info(user_id, content_type, accept, targets, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_associations_list ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_associations_list ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -67,7 +68,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t fail ArgumentError, "Missing the required parameter 'targets' when calling UsersApi.graph_user_associations_list" end # resource path - local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -103,6 +104,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t end return data, status_code, headers end + # Manage the associations of a User # This endpoint allows you to manage the _direct_ associations of a User. A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/users/{UserID}/associations \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"attributes\": { \"sudo\": { \"enabled\": true, \"withoutPassword\": false } }, \"op\": \"add\", \"type\": \"system_group\", \"id\": \"{GroupID}\" }' # @param user_id ObjectID of the User. @@ -114,7 +116,7 @@ def graph_user_associations_list_with_http_info(user_id, content_type, accept, t # @return [nil] def graph_user_associations_post(user_id, content_type, accept, opts = {}) graph_user_associations_post_with_http_info(user_id, content_type, accept, opts) - nil + return nil end # Manage the associations of a User @@ -128,7 +130,7 @@ def graph_user_associations_post(user_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def graph_user_associations_post_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_associations_post ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_associations_post ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -143,7 +145,7 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_associations_post" end # resource path - local_var_path = '/users/{user_id}/associations'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/associations".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -175,21 +177,22 @@ def graph_user_associations_post_with_http_info(user_id, content_type, accept, o end return data, status_code, headers end + # List the parent Groups of a User # This endpoint returns all the User Groups a User is a member of. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/memberof \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def graph_user_member_of(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_member_of_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the parent Groups of a User @@ -206,7 +209,7 @@ def graph_user_member_of(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_member_of ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_member_of ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -221,7 +224,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_member_of" end # resource path - local_var_path = '/users/{user_id}/memberof'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/memberof".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -258,6 +261,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} end return data, status_code, headers end + # List the Applications bound to a User # This endpoint will return all Applications bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Application; this array represents all grouping and/or associations that would have to be removed to deprovision the Application from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/applications \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -270,7 +274,7 @@ def graph_user_member_of_with_http_info(user_id, content_type, accept, opts = {} # @return [Array] def graph_user_traverse_application(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Applications bound to a User @@ -285,7 +289,7 @@ def graph_user_traverse_application(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_application_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_application ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_application ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -300,7 +304,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_application" end # resource path - local_var_path = '/users/{user_id}/applications'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/applications".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -335,6 +339,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept end return data, status_code, headers end + # List the Directories bound to a User # This endpoint will return all Directories bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Directory; this array represents all grouping and/or associations that would have to be removed to deprovision the Directory from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/directories \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -347,7 +352,7 @@ def graph_user_traverse_application_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Directories bound to a User @@ -362,7 +367,7 @@ def graph_user_traverse_directory(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_directory ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_directory ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -377,7 +382,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_directory" end # resource path - local_var_path = '/users/{user_id}/directories'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/directories".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -412,6 +417,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, end return data, status_code, headers end + # List the G Suite instances bound to a User # This endpoint will return all G-Suite Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding G Suite instance; this array represents all grouping and/or associations that would have to be removed to deprovision the G Suite instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/gsuites \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -424,7 +430,7 @@ def graph_user_traverse_directory_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the G Suite instances bound to a User @@ -439,7 +445,7 @@ def graph_user_traverse_g_suite(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_g_suite ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_g_suite ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -454,7 +460,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_g_suite" end # resource path - local_var_path = '/users/{user_id}/gsuites'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/gsuites".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -489,6 +495,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op end return data, status_code, headers end + # List the LDAP servers bound to a User # This endpoint will return all LDAP Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding LDAP Server; this array represents all grouping and/or associations that would have to be removed to deprovision the LDAP Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/ldapservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -501,7 +508,7 @@ def graph_user_traverse_g_suite_with_http_info(user_id, content_type, accept, op # @return [Array] def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the LDAP servers bound to a User @@ -516,7 +523,7 @@ def graph_user_traverse_ldap_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_ldap_server ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_ldap_server ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -531,7 +538,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_ldap_server" end # resource path - local_var_path = '/users/{user_id}/ldapservers'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/ldapservers".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -566,6 +573,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept end return data, status_code, headers end + # List the Office 365 instances bound to a User # This endpoint will return all Office 365 Instances bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding Office 365 instance; this array represents all grouping and/or associations that would have to be removed to deprovision the Office 365 instance from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/office365s \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -578,7 +586,7 @@ def graph_user_traverse_ldap_server_with_http_info(user_id, content_type, accept # @return [Array] def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Office 365 instances bound to a User @@ -593,7 +601,7 @@ def graph_user_traverse_office365(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_office365 ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_office365 ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -608,7 +616,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_office365" end # resource path - local_var_path = '/users/{user_id}/office365s'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/office365s".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -643,6 +651,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, end return data, status_code, headers end + # List the RADIUS Servers bound to a User # This endpoint will return all RADIUS Servers bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding RADIUS Server; this array represents all grouping and/or associations that would have to be removed to deprovision the RADIUS Server from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/radiusservers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -655,7 +664,7 @@ def graph_user_traverse_office365_with_http_info(user_id, content_type, accept, # @return [Array] def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the RADIUS Servers bound to a User @@ -670,7 +679,7 @@ def graph_user_traverse_radius_server(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_radius_server_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_radius_server ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_radius_server ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -685,7 +694,7 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_radius_server" end # resource path - local_var_path = '/users/{user_id}/radiusservers'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/radiusservers".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -720,6 +729,7 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce end return data, status_code, headers end + # List the Systems bound to a User # This endpoint will return all Systems bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systems\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -729,11 +739,11 @@ def graph_user_traverse_radius_server_with_http_info(user_id, content_type, acce # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [String] :x_org_id (default to ) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] def graph_user_traverse_system(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the Systems bound to a User @@ -749,7 +759,7 @@ def graph_user_traverse_system(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_system ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_system ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -764,7 +774,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_system" end # resource path - local_var_path = '/users/{user_id}/systems'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/systems".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -800,6 +810,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt end return data, status_code, headers end + # List the System Groups bound to a User # This endpoint will return all System Groups bound to a User, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The `attributes` object is a key/value hash of compiled graph attributes for all paths followed. The `paths` array enumerates each path from this User to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this User. See `/members` and `/associations` endpoints to manage those collections. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/users/{UserID}/systemgroups\\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param user_id ObjectID of the User. @@ -812,7 +823,7 @@ def graph_user_traverse_system_with_http_info(user_id, content_type, accept, opt # @return [Array] def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) data, _status_code, _headers = graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts) - data + return data end # List the System Groups bound to a User @@ -827,7 +838,7 @@ def graph_user_traverse_system_group(user_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def graph_user_traverse_system_group_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.graph_user_traverse_system_group ...' + @api_client.config.logger.debug "Calling API: UsersApi.graph_user_traverse_system_group ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -842,7 +853,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.graph_user_traverse_system_group" end # resource path - local_var_path = '/users/{user_id}/systemgroups'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/systemgroups".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} @@ -877,6 +888,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep end return data, status_code, headers end + # Send User Emails # This endpoint allows you to send a specific email to a user without waiting for or triggering a workflow. # @param user_id ObjectID of the User. @@ -888,7 +900,7 @@ def graph_user_traverse_system_group_with_http_info(user_id, content_type, accep # @return [nil] def users_send_emails(user_id, content_type, accept, opts = {}) users_send_emails_with_http_info(user_id, content_type, accept, opts) - nil + return nil end # Send User Emails @@ -902,7 +914,7 @@ def users_send_emails(user_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def users_send_emails_with_http_info(user_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: UsersApi.users_send_emails ...' + @api_client.config.logger.debug "Calling API: UsersApi.users_send_emails ..." end # verify the required parameter 'user_id' is set if @api_client.config.client_side_validation && user_id.nil? @@ -917,7 +929,7 @@ def users_send_emails_with_http_info(user_id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling UsersApi.users_send_emails" end # resource path - local_var_path = '/users/{user_id}/emails'.sub('{' + 'user_id' + '}', user_id.to_s) + local_var_path = "/users/{user_id}/emails".sub('{' + 'user_id' + '}', user_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api/workday_import_api.rb b/jcapiv2/lib/jcapiv2/api/workday_import_api.rb index 8fa1aeb..9e65273 100644 --- a/jcapiv2/lib/jcapiv2/api/workday_import_api.rb +++ b/jcapiv2/lib/jcapiv2/api/workday_import_api.rb @@ -6,11 +6,11 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end -require 'uri' +require "uri" module JCAPIv2 class WorkdayImportApi @@ -19,6 +19,7 @@ class WorkdayImportApi def initialize(api_client = ApiClient.default) @api_client = api_client end + # Authorize Workday # This endpoint adds an authorization method to a workday instance. You must supply a username and password for `Basic Authentication` that is the same as your WorkDay Integrator System User. Failure to provide these credentials will result in the request being rejected. Currently `O-Auth` isn't a supported authentication protocol for WorkDay, but will be in the future. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/workdays/{WorkDayID}/auth \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"auth\":{ \"basic\": { \"username\": \"someDeveloper\", \"password\": \"notTheRealPassword\" } } }' ``` # @param workday_id @@ -30,7 +31,7 @@ def initialize(api_client = ApiClient.default) # @return [nil] def workdays_authorize(workday_id, content_type, accept, opts = {}) workdays_authorize_with_http_info(workday_id, content_type, accept, opts) - nil + return nil end # Authorize Workday @@ -44,7 +45,7 @@ def workdays_authorize(workday_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_authorize ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_authorize ..." end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -59,7 +60,7 @@ def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = { fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_authorize" end # resource path - local_var_path = '/workdays/{workday_id}/auth'.sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = "/workdays/{workday_id}/auth".sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} @@ -91,6 +92,7 @@ def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = { end return data, status_code, headers end + # Deauthorize Workday # Removes any and all authorization methods from the workday instance ##### Sample Request ``` curl -X DELETE https://console.jumpcloud.com/api/v2/workdays/{WorkDayID}/auth \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param workday_id @@ -101,7 +103,7 @@ def workdays_authorize_with_http_info(workday_id, content_type, accept, opts = { # @return [nil] def workdays_deauthorize(workday_id, content_type, accept, opts = {}) workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts) - nil + return nil end # Deauthorize Workday @@ -114,7 +116,7 @@ def workdays_deauthorize(workday_id, content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_deauthorize ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_deauthorize ..." end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -129,7 +131,7 @@ def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_deauthorize" end # resource path - local_var_path = '/workdays/{workday_id}/auth'.sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = "/workdays/{workday_id}/auth".sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} @@ -161,6 +163,7 @@ def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = end return data, status_code, headers end + # Delete Workday # This endpoint allows you to delete an instance of Workday. **This functionality is currently not enable for users.** # @param id @@ -171,7 +174,7 @@ def workdays_deauthorize_with_http_info(workday_id, content_type, accept, opts = # @return [Object] def workdays_delete(id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_delete_with_http_info(id, content_type, accept, opts) - data + return data end # Delete Workday @@ -184,7 +187,7 @@ def workdays_delete(id, content_type, accept, opts = {}) # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers def workdays_delete_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_delete ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_delete ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -199,7 +202,7 @@ def workdays_delete_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_delete" end # resource path - local_var_path = '/workdays/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/workdays/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -232,6 +235,7 @@ def workdays_delete_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Get Workday # This endpoint will return all the available information about an instance of Workday. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -242,7 +246,7 @@ def workdays_delete_with_http_info(id, content_type, accept, opts = {}) # @return [WorkdayOutput] def workdays_get(id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_get_with_http_info(id, content_type, accept, opts) - data + return data end # Get Workday @@ -255,7 +259,7 @@ def workdays_get(id, content_type, accept, opts = {}) # @return [Array<(WorkdayOutput, Fixnum, Hash)>] WorkdayOutput data, response status code and response headers def workdays_get_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_get ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_get ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -270,7 +274,7 @@ def workdays_get_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_get" end # resource path - local_var_path = '/workdays/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/workdays/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -303,6 +307,7 @@ def workdays_get_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Workday Import # The endpoint allows you to create a Workday Import request. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/workdays/{WorkdayID}/import \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '[ { \"email\":\"{email}\", \"firstname\":\"{firstname}\", \"lastname\":\"{firstname}\", \"username\":\"{username}\", \"attributes\":[ {\"name\":\"EmployeeID\",\"value\":\"0000\"}, {\"name\":\"WorkdayID\",\"value\":\"name.name\"} ] } ] ``` # @param workday_id @@ -314,7 +319,7 @@ def workdays_get_with_http_info(id, content_type, accept, opts = {}) # @return [JobId] def workdays_import(workday_id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_import_with_http_info(workday_id, content_type, accept, opts) - data + return data end # Workday Import @@ -328,7 +333,7 @@ def workdays_import(workday_id, content_type, accept, opts = {}) # @return [Array<(JobId, Fixnum, Hash)>] JobId data, response status code and response headers def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_import ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_import ..." end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -343,7 +348,7 @@ def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_import" end # resource path - local_var_path = '/workdays/{workday_id}/import'.sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = "/workdays/{workday_id}/import".sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} @@ -376,6 +381,7 @@ def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) end return data, status_code, headers end + # List Import Results # This endpoint provides a list of job results from the workday import and will contain all imported data from Workday. #### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/{WorkdayID}/import/{ImportJobID}/results \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param id @@ -389,7 +395,7 @@ def workdays_import_with_http_info(workday_id, content_type, accept, opts = {}) # @return [Array] def workdays_importresults(id, job_id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_importresults_with_http_info(id, job_id, content_type, accept, opts) - data + return data end # List Import Results @@ -405,7 +411,7 @@ def workdays_importresults(id, job_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def workdays_importresults_with_http_info(id, job_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_importresults ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_importresults ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -424,7 +430,7 @@ def workdays_importresults_with_http_info(id, job_id, content_type, accept, opts fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_importresults" end # resource path - local_var_path = '/workdays/{id}/import/{job_id}/results'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'job_id' + '}', job_id.to_s) + local_var_path = "/workdays/{id}/import/{job_id}/results".sub('{' + 'id' + '}', id.to_s).sub('{' + 'job_id' + '}', job_id.to_s) # query parameters query_params = {} @@ -459,21 +465,22 @@ def workdays_importresults_with_http_info(id, job_id, content_type, accept, opts end return data, status_code, headers end + # List Workdays # This endpoint will return all the available information about all your instances of Workday. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param content_type # @param accept # @param [Hash] opts the optional parameters - # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. (default to []) + # @option opts [Array] :fields The comma separated fields included in the returned records. If omitted the default list of fields will be returned. # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) - # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. + # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @option opts [String] :x_org_id (default to ) # @return [Array] def workdays_list(content_type, accept, opts = {}) data, _status_code, _headers = workdays_list_with_http_info(content_type, accept, opts) - data + return data end # List Workdays @@ -490,7 +497,7 @@ def workdays_list(content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def workdays_list_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_list ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_list ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -501,7 +508,7 @@ def workdays_list_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_list" end # resource path - local_var_path = '/workdays' + local_var_path = "/workdays" # query parameters query_params = {} @@ -539,6 +546,7 @@ def workdays_list_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Create new Workday # This endpoint allows you to create a new workday instance. You must supply a username and password for `Basic Authentication` that is the same as your WorkDay Integrator System User. Failure to provide these credentials will result in the request being rejected. Currently `O-Auth` isn't a supported authentication protocol for WorkDay, but will be in the future. Currently, only one instance is allowed and it must be `Workday Import`. #### Sample Request ``` curl -X POST https://console.jumpcloud.com/api/v2/workdays/ \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"name\": \"Workday2\", \"reportUrl\":\"https://workday.com/ccx/service/customreport2/gms/user/reportname?format=json\", \"auth\": { \"basic\": { \"username\": \"someDeveloper\", \"password\": \"notTheRealPassword\" } } }' ``` # @param content_type @@ -549,7 +557,7 @@ def workdays_list_with_http_info(content_type, accept, opts = {}) # @return [nil] def workdays_post(content_type, accept, opts = {}) workdays_post_with_http_info(content_type, accept, opts) - nil + return nil end # Create new Workday @@ -562,7 +570,7 @@ def workdays_post(content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_post_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_post ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_post ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -573,7 +581,7 @@ def workdays_post_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_post" end # resource path - local_var_path = '/workdays' + local_var_path = "/workdays" # query parameters query_params = {} @@ -605,6 +613,7 @@ def workdays_post_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # Update Workday # This endpoint allows you to update the name and Custom Report URL for a Workday Instance. Currently, the name can not be changed from the default of `Workday Import`. ##### Sample Request ``` curl -X PUT https://console.jumpcloud.com/api/v2/workdays/{WorkdayID} \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"reportUrl\":\"{Report_URL}\", \"name\":\"{Name}\" } ' ``` # @param id @@ -616,7 +625,7 @@ def workdays_post_with_http_info(content_type, accept, opts = {}) # @return [WorkdayOutput] def workdays_put(id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_put_with_http_info(id, content_type, accept, opts) - data + return data end # Update Workday @@ -630,7 +639,7 @@ def workdays_put(id, content_type, accept, opts = {}) # @return [Array<(WorkdayOutput, Fixnum, Hash)>] WorkdayOutput data, response status code and response headers def workdays_put_with_http_info(id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_put ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_put ..." end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? @@ -645,7 +654,7 @@ def workdays_put_with_http_info(id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_put" end # resource path - local_var_path = '/workdays/{id}'.sub('{' + 'id' + '}', id.to_s) + local_var_path = "/workdays/{id}".sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} @@ -678,6 +687,7 @@ def workdays_put_with_http_info(id, content_type, accept, opts = {}) end return data, status_code, headers end + # Get Workday Settings (incomplete) # This endpoint allows you to obtain all settings needed for creating a workday instance, specifically the URL to initiate Basic Authentication with WorkDay. **This functionality is currently not enable for users.** # @param content_type @@ -688,7 +698,7 @@ def workdays_put_with_http_info(id, content_type, accept, opts = {}) # @return [nil] def workdays_settings(content_type, accept, opts = {}) workdays_settings_with_http_info(content_type, accept, opts) - nil + return nil end # Get Workday Settings (incomplete) @@ -701,7 +711,7 @@ def workdays_settings(content_type, accept, opts = {}) # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers def workdays_settings_with_http_info(content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_settings ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_settings ..." end # verify the required parameter 'content_type' is set if @api_client.config.client_side_validation && content_type.nil? @@ -712,7 +722,7 @@ def workdays_settings_with_http_info(content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_settings" end # resource path - local_var_path = '/workdays/settings' + local_var_path = "/workdays/settings" # query parameters query_params = {} @@ -745,6 +755,7 @@ def workdays_settings_with_http_info(content_type, accept, opts = {}) end return data, status_code, headers end + # List Workday Workers # This endpoint will return all of the data in your WorkDay Custom Report that has been associated with your WorkDay Instance in JumpCloud. ##### Sample Request ``` curl -X GET https://console.jumpcloud.com/api/v2/workdays/{WorkDayID}/workers \\ -H 'Accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'x-api-key: {API_KEY}' ``` # @param workday_id @@ -753,12 +764,12 @@ def workdays_settings_with_http_info(content_type, accept, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Integer] :limit The number of records to return at once. Limited to 100. (default to 10) # @option opts [Integer] :skip The offset into the records to return. (default to 0) - # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. (default to []) + # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @option opts [String] :x_org_id (default to ) # @return [Array] def workdays_workers(workday_id, content_type, accept, opts = {}) data, _status_code, _headers = workdays_workers_with_http_info(workday_id, content_type, accept, opts) - data + return data end # List Workday Workers @@ -774,7 +785,7 @@ def workdays_workers(workday_id, content_type, accept, opts = {}) # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers def workdays_workers_with_http_info(workday_id, content_type, accept, opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: WorkdayImportApi.workdays_workers ...' + @api_client.config.logger.debug "Calling API: WorkdayImportApi.workdays_workers ..." end # verify the required parameter 'workday_id' is set if @api_client.config.client_side_validation && workday_id.nil? @@ -789,7 +800,7 @@ def workdays_workers_with_http_info(workday_id, content_type, accept, opts = {}) fail ArgumentError, "Missing the required parameter 'accept' when calling WorkdayImportApi.workdays_workers" end # resource path - local_var_path = '/workdays/{workday_id}/workers'.sub('{' + 'workday_id' + '}', workday_id.to_s) + local_var_path = "/workdays/{workday_id}/workers".sub('{' + 'workday_id' + '}', workday_id.to_s) # query parameters query_params = {} diff --git a/jcapiv2/lib/jcapiv2/api_client.rb b/jcapiv2/lib/jcapiv2/api_client.rb index 1de0f93..25cc3aa 100644 --- a/jcapiv2/lib/jcapiv2/api_client.rb +++ b/jcapiv2/lib/jcapiv2/api_client.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,7 +33,7 @@ def initialize(config = Configuration.default) @config = config @user_agent = "Swagger-Codegen/#{VERSION}/ruby" @default_headers = { - 'Content-Type' => 'application/json', + 'Content-Type' => "application/json", 'User-Agent' => @user_agent } end @@ -137,7 +137,7 @@ def build_request(http_method, path, opts = {}) # @param [String] mime MIME # @return [Boolean] True if the MIME is application/json def json_mime?(mime) - (mime == '*/*') || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? + (mime == "*/*") || !(mime =~ /Application\/.*json(?!p)(;.*)?/i).nil? end # Deserialize the response to the given return type. @@ -201,12 +201,12 @@ def convert_to_type(data, return_type) when /\AArray<(.+)>\z/ # e.g. Array sub_type = $1 - data.map { |item| convert_to_type(item, sub_type) } + data.map {|item| convert_to_type(item, sub_type) } when /\AHash\\z/ # e.g. Hash sub_type = $1 {}.tap do |hash| - data.each { |k, v| hash[k] = convert_to_type(v, sub_type) } + data.each {|k, v| hash[k] = convert_to_type(v, sub_type) } end else # models, e.g. Pet @@ -228,7 +228,7 @@ def download_file(request) encoding = nil request.on_headers do |response| content_disposition = response.headers['Content-Disposition'] - if content_disposition && content_disposition =~ /filename=/i + if content_disposition and content_disposition =~ /filename=/i filename = content_disposition[/filename=['"]?([^'"\s]+)['"]?/, 1] prefix = sanitize_filename(filename) else @@ -327,7 +327,7 @@ def select_header_accept(accepts) return nil if accepts.nil? || accepts.empty? # use JSON when present, otherwise use all of the provided json_accept = accepts.find { |s| json_mime?(s) } - json_accept || accepts.join(',') + return json_accept || accepts.join(',') end # Return Content-Type header based on an array of content types provided. @@ -338,7 +338,7 @@ def select_header_content_type(content_types) return 'application/json' if content_types.nil? || content_types.empty? # use JSON when present, otherwise use the first one json_content_type = content_types.find { |s| json_mime?(s) } - json_content_type || content_types.first + return json_content_type || content_types.first end # Convert object (array, hash, object, etc) to JSON string. @@ -348,7 +348,7 @@ def object_to_http_body(model) return model if model.nil? || model.is_a?(String) local_body = nil if model.is_a?(Array) - local_body = model.map { |m| object_to_hash(m) } + local_body = model.map{|m| object_to_hash(m) } else local_body = object_to_hash(model) end diff --git a/jcapiv2/lib/jcapiv2/api_error.rb b/jcapiv2/lib/jcapiv2/api_error.rb index 31322c3..81f54fc 100644 --- a/jcapiv2/lib/jcapiv2/api_error.rb +++ b/jcapiv2/lib/jcapiv2/api_error.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end diff --git a/jcapiv2/lib/jcapiv2/configuration.rb b/jcapiv2/lib/jcapiv2/configuration.rb index 0ce2147..d7fff86 100644 --- a/jcapiv2/lib/jcapiv2/configuration.rb +++ b/jcapiv2/lib/jcapiv2/configuration.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -170,7 +170,7 @@ def host=(host) def base_path=(base_path) # Add leading and trailing slashes to base_path @base_path = "/#{base_path}".gsub(/\/+/, '/') - @base_path = '' if @base_path == '/' + @base_path = "" if @base_path == "/" end def base_url diff --git a/jcapiv2/lib/jcapiv2/models/active_directory_input.rb b/jcapiv2/lib/jcapiv2/models/active_directory_input.rb index 6a099fc..c3209ea 100644 --- a/jcapiv2/lib/jcapiv2/models/active_directory_input.rb +++ b/jcapiv2/lib/jcapiv2/models/active_directory_input.rb @@ -6,17 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class ActiveDirectoryInput # Domain name for this Active Directory instance. attr_accessor :domain + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,24 +39,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'domain') self.domain = attributes[:'domain'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -87,7 +90,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -169,7 +172,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -180,5 +183,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/active_directory_output.rb b/jcapiv2/lib/jcapiv2/models/active_directory_output.rb index be331b3..80ab07e 100644 --- a/jcapiv2/lib/jcapiv2/models/active_directory_output.rb +++ b/jcapiv2/lib/jcapiv2/models/active_directory_output.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class ActiveDirectoryOutput # Domain name for this Active Directory instance. attr_accessor :domain @@ -20,6 +21,7 @@ class ActiveDirectoryOutput # ObjectID of this Active Directory instance. attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'domain') self.domain = attributes[:'domain'] @@ -51,6 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -58,17 +61,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? - true + return true end # Checks equality by comparing each attribute. @@ -102,7 +105,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +187,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +198,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/administrator.rb b/jcapiv2/lib/jcapiv2/models/administrator.rb index 0e8677b..0cf9ad1 100644 --- a/jcapiv2/lib/jcapiv2/models/administrator.rb +++ b/jcapiv2/lib/jcapiv2/models/administrator.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Administrator attr_accessor :id @@ -26,6 +27,7 @@ class Administrator attr_accessor :registered + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -56,7 +58,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -81,19 +83,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'registered') self.registered = attributes[:'registered'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -131,7 +134,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -213,7 +216,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -224,5 +227,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/auth_info.rb b/jcapiv2/lib/jcapiv2/models/auth_info.rb index 59df517..4c35d65 100644 --- a/jcapiv2/lib/jcapiv2/models/auth_info.rb +++ b/jcapiv2/lib/jcapiv2/models/auth_info.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class AuthInfo attr_accessor :expiry @@ -20,6 +21,7 @@ class AuthInfo attr_accessor :message + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'expiry') self.expiry = attributes[:'expiry'] @@ -57,19 +59,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'message') self.message = attributes[:'message'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -104,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,5 +200,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/auth_input.rb b/jcapiv2/lib/jcapiv2/models/auth_input.rb index 2de6aaa..140c017 100644 --- a/jcapiv2/lib/jcapiv2/models/auth_input.rb +++ b/jcapiv2/lib/jcapiv2/models/auth_input.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class AuthInput attr_accessor :oauth attr_accessor :basic + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'oauth') self.oauth = attributes[:'oauth'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'basic') self.basic = attributes[:'basic'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/auth_input_object.rb b/jcapiv2/lib/jcapiv2/models/auth_input_object.rb index ae5b164..6653762 100644 --- a/jcapiv2/lib/jcapiv2/models/auth_input_object.rb +++ b/jcapiv2/lib/jcapiv2/models/auth_input_object.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class AuthInputObject attr_accessor :auth + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'auth') self.auth = attributes[:'auth'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/authinput_basic.rb b/jcapiv2/lib/jcapiv2/models/authinput_basic.rb index a23208a..0f155c5 100644 --- a/jcapiv2/lib/jcapiv2/models/authinput_basic.rb +++ b/jcapiv2/lib/jcapiv2/models/authinput_basic.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class AuthinputBasic attr_accessor :username attr_accessor :password + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'username') self.username = attributes[:'username'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'password') self.password = attributes[:'password'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb b/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb index 5c94adc..5c2a4e6 100644 --- a/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb +++ b/jcapiv2/lib/jcapiv2/models/authinput_oauth.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class AuthinputOauth attr_accessor :code + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'code') self.code = attributes[:'code'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb b/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb index 7abdf99..96d5e23 100644 --- a/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb +++ b/jcapiv2/lib/jcapiv2/models/bulk_user_create.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -26,6 +26,7 @@ class BulkUserCreate # Map of additional attributes. attr_accessor :attributes + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -54,7 +55,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'username') self.username = attributes[:'username'] @@ -77,19 +78,20 @@ def initialize(attributes = {}) self.attributes = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -126,7 +128,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -208,7 +210,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -219,5 +221,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb b/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb index 03576a3..23e7f21 100644 --- a/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb +++ b/jcapiv2/lib/jcapiv2/models/bulk_user_update.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -29,6 +29,7 @@ class BulkUserUpdate # Map of additional attributes. attr_accessor :attributes + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -59,7 +60,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -86,19 +87,20 @@ def initialize(attributes = {}) self.attributes = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -136,7 +138,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -218,7 +220,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -229,5 +231,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/directory.rb b/jcapiv2/lib/jcapiv2/models/directory.rb index 75310bd..719e5ba 100644 --- a/jcapiv2/lib/jcapiv2/models/directory.rb +++ b/jcapiv2/lib/jcapiv2/models/directory.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Directory # The type of directory. attr_accessor :type @@ -69,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -82,6 +83,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -89,37 +91,37 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['g_suite', 'ldap_server', 'office_365', 'workday']) + type_validator = EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) return false unless type_validator.valid?(@type) return false if @id.nil? return false if @name.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['g_suite', 'ldap_server', 'office_365', 'workday']) + validator = EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -156,7 +158,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -238,7 +240,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -249,5 +251,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/emailrequest.rb b/jcapiv2/lib/jcapiv2/models/emailrequest.rb index f792167..2097a24 100644 --- a/jcapiv2/lib/jcapiv2/models/emailrequest.rb +++ b/jcapiv2/lib/jcapiv2/models/emailrequest.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Emailrequest attr_accessor :email_type @@ -58,34 +59,35 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'emailType') self.email_type = attributes[:'emailType'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - email_type_validator = EnumAttributeValidator.new('String', ['activation']) + email_type_validator = EnumAttributeValidator.new('String', ["activation"]) return false unless email_type_validator.valid?(@email_type) - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] email_type Object to be assigned def email_type=(email_type) - validator = EnumAttributeValidator.new('String', ['activation']) + validator = EnumAttributeValidator.new('String', ["activation"]) unless validator.valid?(email_type) - fail ArgumentError, 'invalid value for "email_type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'email_type', must be one of #{validator.allowable_values}." end @email_type = email_type end @@ -120,7 +122,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -202,7 +204,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -213,5 +215,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/error.rb b/jcapiv2/lib/jcapiv2/models/error.rb index 82f5110..2831fa6 100644 --- a/jcapiv2/lib/jcapiv2/models/error.rb +++ b/jcapiv2/lib/jcapiv2/models/error.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Error attr_accessor :code @@ -20,6 +21,7 @@ class Error attr_accessor :fields + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'code') self.code = attributes[:'code'] @@ -57,19 +59,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'fields') self.fields = attributes[:'fields'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -104,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,5 +200,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/errorresponse.rb b/jcapiv2/lib/jcapiv2/models/errorresponse.rb index 8c3ae2f..6e96c76 100644 --- a/jcapiv2/lib/jcapiv2/models/errorresponse.rb +++ b/jcapiv2/lib/jcapiv2/models/errorresponse.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Errorresponse attr_accessor :message + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'message') self.message = attributes[:'message'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb b/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb index cd5e021..5d4d46c 100644 --- a/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb +++ b/jcapiv2/lib/jcapiv2/models/g_suite_builtin_translation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -15,28 +15,29 @@ module JCAPIv2 class GSuiteBuiltinTranslation - HOME_ADDRESSES = 'user_home_addresses'.freeze - WORK_ADDRESSES = 'user_work_addresses'.freeze - OTHER_ADDRESSES = 'user_other_addresses'.freeze - HOME_PHONE_NUMBERS = 'user_home_phone_numbers'.freeze - MOBILE_PHONE_NUMBERS = 'user_mobile_phone_numbers'.freeze - OTHER_PHONE_NUMBERS = 'user_other_phone_numbers'.freeze - WORK_PHONE_NUMBERS = 'user_work_phone_numbers'.freeze - WORK_FAX_PHONE_NUMBERS = 'user_work_fax_phone_numbers'.freeze - WORK_MOBILE_PHONE_NUMBERS = 'user_work_mobile_phone_numbers'.freeze - PRIMARY_ORGANIZATION_COST_CENTER = 'user_primary_organization_cost_center'.freeze - PRIMARY_ORGANIZATION_DEPARTMENT = 'user_primary_organization_department'.freeze - PRIMARY_ORGANIZATION_DESCRIPTION = 'user_primary_organization_description'.freeze - PRIMARY_ORGANIZATION_EMPLOYEE_ID = 'user_primary_organization_employee_id'.freeze - PRIMARY_ORGANIZATION_TITLE = 'user_primary_organization_title'.freeze + HOME_ADDRESSES = "user_home_addresses".freeze + WORK_ADDRESSES = "user_work_addresses".freeze + OTHER_ADDRESSES = "user_other_addresses".freeze + HOME_PHONE_NUMBERS = "user_home_phone_numbers".freeze + MOBILE_PHONE_NUMBERS = "user_mobile_phone_numbers".freeze + OTHER_PHONE_NUMBERS = "user_other_phone_numbers".freeze + WORK_PHONE_NUMBERS = "user_work_phone_numbers".freeze + WORK_FAX_PHONE_NUMBERS = "user_work_fax_phone_numbers".freeze + WORK_MOBILE_PHONE_NUMBERS = "user_work_mobile_phone_numbers".freeze + PRIMARY_ORGANIZATION_COST_CENTER = "user_primary_organization_cost_center".freeze + PRIMARY_ORGANIZATION_DEPARTMENT = "user_primary_organization_department".freeze + PRIMARY_ORGANIZATION_DESCRIPTION = "user_primary_organization_description".freeze + PRIMARY_ORGANIZATION_EMPLOYEE_ID = "user_primary_organization_employee_id".freeze + PRIMARY_ORGANIZATION_TITLE = "user_primary_organization_title".freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = GSuiteBuiltinTranslation.constants.select { |c| GSuiteBuiltinTranslation::const_get(c) == value } + constantValues = GSuiteBuiltinTranslation.constants.select{|c| GSuiteBuiltinTranslation::const_get(c) == value} raise "Invalid ENUM value #{value} for class #GSuiteBuiltinTranslation" if constantValues.empty? value end end + end diff --git a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb index 3349130..edfb547 100644 --- a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb +++ b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule.rb @@ -6,19 +6,21 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class GSuiteTranslationRule attr_accessor :built_in # ObjectId uniquely identifying a Translation Rule. attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +43,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] @@ -50,19 +52,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -96,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -178,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -189,5 +192,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb index 9b0425a..0cb6c2d 100644 --- a/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb +++ b/jcapiv2/lib/jcapiv2/models/g_suite_translation_rule_request.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class GSuiteTranslationRuleRequest attr_accessor :built_in + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/graph_connection.rb b/jcapiv2/lib/jcapiv2/models/graph_connection.rb index 630e258..6c58da1 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_connection.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_connection.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -19,6 +19,7 @@ class GraphConnection attr_accessor :to + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'from') self.from = attributes[:'from'] @@ -50,6 +51,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'to') self.to = attributes[:'to'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -57,17 +59,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @to.nil? - invalid_properties.push('invalid value for "to", to cannot be nil.') + invalid_properties.push("invalid value for 'to', to cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @to.nil? - true + return true end # Checks equality by comparing each attribute. @@ -101,7 +103,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -183,7 +185,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -194,5 +196,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/graph_management_req.rb index 1978d6d..57696a2 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_management_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class GraphManagementReq # How to modify the graph connection. attr_accessor :op @@ -68,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -81,6 +82,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -88,37 +90,37 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) return false unless op_validator.valid?(@op) return false if @type.nil? return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -155,7 +157,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -237,7 +239,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -248,5 +250,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/graph_object.rb b/jcapiv2/lib/jcapiv2/models/graph_object.rb index af97761..197e9cd 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_object.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_object.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class GraphObject # The type of graph object. attr_accessor :type @@ -20,6 +21,7 @@ class GraphObject # The ObjectID of the graph object. attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -51,6 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -58,14 +61,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -73,7 +76,7 @@ def list_invalid_properties def valid? return false if @type.nil? return false if @id.nil? - true + return true end # Checks equality by comparing each attribute. @@ -107,7 +110,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +192,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +203,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb b/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb index 08cd245..55b2ace 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_object_with_paths.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class GraphObjectWithPaths attr_accessor :type @@ -22,6 +23,7 @@ class GraphObjectWithPaths # A path through the graph between two graph objects. attr_accessor :paths + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +48,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -61,6 +63,7 @@ def initialize(attributes = {}) self.paths = value end end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -68,18 +71,18 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end if @paths.nil? - invalid_properties.push('invalid value for "paths", paths cannot be nil.') + invalid_properties.push("invalid value for 'paths', paths cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -88,7 +91,7 @@ def valid? return false if @type.nil? return false if @id.nil? return false if @paths.nil? - true + return true end # Checks equality by comparing each attribute. @@ -123,7 +126,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -205,7 +208,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -216,5 +219,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/graph_type.rb b/jcapiv2/lib/jcapiv2/models/graph_type.rb index 1133018..0e5dfca 100644 --- a/jcapiv2/lib/jcapiv2/models/graph_type.rb +++ b/jcapiv2/lib/jcapiv2/models/graph_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -15,26 +15,27 @@ module JCAPIv2 class GraphType - ACTIVE_DIRECTORY = 'active_directory'.freeze - APPLICATION = 'application'.freeze - COMMAND = 'command'.freeze - G_SUITE = 'g_suite'.freeze - LDAP_SERVER = 'ldap_server'.freeze - OFFICE_365 = 'office_365'.freeze - POLICY = 'policy'.freeze - RADIUS_SERVER = 'radius_server'.freeze - SYSTEM = 'system'.freeze - SYSTEM_GROUP = 'system_group'.freeze - USER = 'user'.freeze - USER_GROUP = 'user_group'.freeze + ACTIVE_DIRECTORY = "active_directory".freeze + APPLICATION = "application".freeze + COMMAND = "command".freeze + G_SUITE = "g_suite".freeze + LDAP_SERVER = "ldap_server".freeze + OFFICE_365 = "office_365".freeze + POLICY = "policy".freeze + RADIUS_SERVER = "radius_server".freeze + SYSTEM = "system".freeze + SYSTEM_GROUP = "system_group".freeze + USER = "user".freeze + USER_GROUP = "user_group".freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = GraphType.constants.select { |c| GraphType::const_get(c) == value } + constantValues = GraphType.constants.select{|c| GraphType::const_get(c) == value} raise "Invalid ENUM value #{value} for class #GraphType" if constantValues.empty? value end end + end diff --git a/jcapiv2/lib/jcapiv2/models/group.rb b/jcapiv2/lib/jcapiv2/models/group.rb index 439b111..814acf6 100644 --- a/jcapiv2/lib/jcapiv2/models/group.rb +++ b/jcapiv2/lib/jcapiv2/models/group.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Group # ObjectId uniquely identifying a Group. attr_accessor :id @@ -22,6 +23,7 @@ class Group # Display name of a Group. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +48,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -59,19 +61,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -106,7 +109,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -188,7 +191,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -199,5 +202,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/group_type.rb b/jcapiv2/lib/jcapiv2/models/group_type.rb index 3f4fba3..720cb5b 100644 --- a/jcapiv2/lib/jcapiv2/models/group_type.rb +++ b/jcapiv2/lib/jcapiv2/models/group_type.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -15,16 +15,17 @@ module JCAPIv2 class GroupType - SYSTEM_GROUP = 'system_group'.freeze - USER_GROUP = 'user_group'.freeze + SYSTEM_GROUP = "system_group".freeze + USER_GROUP = "user_group".freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = GroupType.constants.select { |c| GroupType::const_get(c) == value } + constantValues = GroupType.constants.select{|c| GroupType::const_get(c) == value} raise "Invalid ENUM value #{value} for class #GroupType" if constantValues.empty? value end end + end diff --git a/jcapiv2/lib/jcapiv2/models/job_details.rb b/jcapiv2/lib/jcapiv2/models/job_details.rb index a67c5dc..c9c5050 100644 --- a/jcapiv2/lib/jcapiv2/models/job_details.rb +++ b/jcapiv2/lib/jcapiv2/models/job_details.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class JobDetails attr_accessor :id @@ -30,6 +31,7 @@ class JobDetails attr_accessor :persisted_fields + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +66,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -99,19 +101,20 @@ def initialize(attributes = {}) self.persisted_fields = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -151,7 +154,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -233,7 +236,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -244,5 +247,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/job_id.rb b/jcapiv2/lib/jcapiv2/models/job_id.rb index 3bfd107..067dc8c 100644 --- a/jcapiv2/lib/jcapiv2/models/job_id.rb +++ b/jcapiv2/lib/jcapiv2/models/job_id.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class JobId attr_accessor :job_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'jobId') self.job_id = attributes[:'jobId'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/job_workresult.rb b/jcapiv2/lib/jcapiv2/models/job_workresult.rb index 9cfa9c4..89d52e6 100644 --- a/jcapiv2/lib/jcapiv2/models/job_workresult.rb +++ b/jcapiv2/lib/jcapiv2/models/job_workresult.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class JobWorkresult attr_accessor :meta + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'meta') self.meta = attributes[:'meta'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb b/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb index cadd89b..b7e8db6 100644 --- a/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb +++ b/jcapiv2/lib/jcapiv2/models/ldap_server_input.rb @@ -6,17 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class LdapServerInput # The name of this LDAP server attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,24 +39,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -87,7 +90,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -169,7 +172,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -180,5 +183,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb b/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb index 60bc04b..a80ab46 100644 --- a/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb +++ b/jcapiv2/lib/jcapiv2/models/ldap_server_output.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class LdapServerOutput # The name of this LDAP server attr_accessor :name @@ -20,6 +21,7 @@ class LdapServerOutput # Unique identifier of this LDAP server attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -51,6 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -58,17 +61,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? - true + return true end # Checks equality by comparing each attribute. @@ -102,7 +105,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -184,7 +187,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -195,5 +198,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/mfa.rb b/jcapiv2/lib/jcapiv2/models/mfa.rb index a25ca50..2e74ca5 100644 --- a/jcapiv2/lib/jcapiv2/models/mfa.rb +++ b/jcapiv2/lib/jcapiv2/models/mfa.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Mfa attr_accessor :exclusion @@ -20,6 +21,7 @@ class Mfa attr_accessor :configured + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'exclusion') self.exclusion = attributes[:'exclusion'] @@ -57,19 +59,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'configured') self.configured = attributes[:'configured'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -104,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,5 +200,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb b/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb index 2bd3553..813482a 100644 --- a/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb +++ b/jcapiv2/lib/jcapiv2/models/oauth_code_input.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class OauthCodeInput attr_accessor :code + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'code') self.code = attributes[:'code'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb b/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb index 1b9c085..40306ef 100644 --- a/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb +++ b/jcapiv2/lib/jcapiv2/models/office365_builtin_translation.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -15,24 +15,25 @@ module JCAPIv2 class Office365BuiltinTranslation - STREET_ADDRESS = 'user_street_address'.freeze - CITY = 'user_city'.freeze - STATE = 'user_state'.freeze - COUNTRY = 'user_country'.freeze - POSTAL_CODE = 'user_postal_code'.freeze - BUSINESS_PHONES = 'user_business_phones'.freeze - MOBILE_PHONE = 'user_mobile_phone'.freeze - DEPARTMENT = 'user_department'.freeze - JOB_TITLE = 'user_job_title'.freeze - OFFICE_LOCATION = 'user_office_location'.freeze + STREET_ADDRESS = "user_street_address".freeze + CITY = "user_city".freeze + STATE = "user_state".freeze + COUNTRY = "user_country".freeze + POSTAL_CODE = "user_postal_code".freeze + BUSINESS_PHONES = "user_business_phones".freeze + MOBILE_PHONE = "user_mobile_phone".freeze + DEPARTMENT = "user_department".freeze + JOB_TITLE = "user_job_title".freeze + OFFICE_LOCATION = "user_office_location".freeze # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = Office365BuiltinTranslation.constants.select { |c| Office365BuiltinTranslation::const_get(c) == value } + constantValues = Office365BuiltinTranslation.constants.select{|c| Office365BuiltinTranslation::const_get(c) == value} raise "Invalid ENUM value #{value} for class #Office365BuiltinTranslation" if constantValues.empty? value end end + end diff --git a/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb b/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb index ba74c8a..fdbe1d0 100644 --- a/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb +++ b/jcapiv2/lib/jcapiv2/models/office365_translation_rule.rb @@ -6,19 +6,21 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Office365TranslationRule attr_accessor :built_in # ObjectId uniquely identifying a Translation Rule. attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +43,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] @@ -50,19 +52,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -96,7 +99,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -178,7 +181,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -189,5 +192,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb b/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb index 5014c8e..de4be1f 100644 --- a/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb +++ b/jcapiv2/lib/jcapiv2/models/office365_translation_rule_request.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Office365TranslationRuleRequest attr_accessor :built_in + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'builtIn') self.built_in = attributes[:'builtIn'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -86,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -168,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -179,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy.rb b/jcapiv2/lib/jcapiv2/models/policy.rb index 3a86b39..7b9824a 100644 --- a/jcapiv2/lib/jcapiv2/models/policy.rb +++ b/jcapiv2/lib/jcapiv2/models/policy.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -23,6 +23,7 @@ class Policy # The description for this specific Policy. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -47,7 +48,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -60,19 +61,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -107,7 +109,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +191,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +202,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_request.rb b/jcapiv2/lib/jcapiv2/models/policy_request.rb index f0fab84..cb87873 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_request.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_request.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -22,6 +22,7 @@ class PolicyRequest attr_accessor :template + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -46,7 +47,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -61,6 +62,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'template') self.template = attributes[:'template'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -68,17 +70,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - true + return true end # Checks equality by comparing each attribute. @@ -113,7 +115,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -195,7 +197,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -206,5 +208,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_request_template.rb b/jcapiv2/lib/jcapiv2/models/policy_request_template.rb index 95cf2a4..e071569 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_request_template.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_request_template.rb @@ -6,17 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class PolicyRequestTemplate # ObjectId uniquely identifying a Policy instance; only allowed on POST requests. attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,24 +39,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -87,7 +90,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -169,7 +172,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -180,5 +183,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_result.rb b/jcapiv2/lib/jcapiv2/models/policy_result.rb index 000f36a..e881479 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_result.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_result.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class PolicyResult # ObjectId uniquely identifying the parent Policy. attr_accessor :policy_id @@ -47,6 +48,7 @@ class PolicyResult # Details pertaining to the policy result. attr_accessor :detail + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -87,7 +89,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'policyID') self.policy_id = attributes[:'policyID'] @@ -132,19 +134,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'detail') self.detail = attributes[:'detail'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -187,7 +190,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -269,7 +272,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -280,5 +283,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template.rb b/jcapiv2/lib/jcapiv2/models/policy_template.rb index e62d18f..880655e 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -94,7 +94,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -127,31 +127,32 @@ def initialize(attributes = {}) if attributes.has_key?(:'state') self.state = attributes[:'state'] else - self.state = '' + self.state = "" end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - os_meta_family_validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) + os_meta_family_validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) return false unless os_meta_family_validator.valid?(@os_meta_family) - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] os_meta_family Object to be assigned def os_meta_family=(os_meta_family) - validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) + validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) unless validator.valid?(os_meta_family) - fail ArgumentError, 'invalid value for "os_meta_family", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'os_meta_family', must be one of #{validator.allowable_values}." end @os_meta_family = os_meta_family end @@ -193,7 +194,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -275,7 +276,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -286,5 +287,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb b/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb index a3c3ead..0f8312b 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_config_field.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class PolicyTemplateConfigField # ObjectId uniquely identifying a Policy Template Configuration Field attr_accessor :id @@ -93,7 +94,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -126,6 +127,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'tooltip') self.tooltip = attributes[:'tooltip'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -133,32 +135,32 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @id.nil? - display_type_validator = EnumAttributeValidator.new('String', ['checkbox', 'date', 'email', 'number', 'select', 'text', 'textarea']) + display_type_validator = EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) return false unless display_type_validator.valid?(@display_type) return false if @name.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] display_type Object to be assigned def display_type=(display_type) - validator = EnumAttributeValidator.new('String', ['checkbox', 'date', 'email', 'number', 'select', 'text', 'textarea']) + validator = EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) unless validator.valid?(display_type) - fail ArgumentError, 'invalid value for "display_type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'display_type', must be one of #{validator.allowable_values}." end @display_type = display_type end @@ -200,7 +202,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -282,7 +284,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -293,5 +295,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb index 9e61de4..4691ec3 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class PolicyTemplateConfigFieldTooltip attr_accessor :template attr_accessor :variables + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'template') self.template = attributes[:'template'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'variables') self.variables = attributes[:'variables'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb index 2c19a63..b37c68d 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_config_field_tooltip_variables.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class PolicyTemplateConfigFieldTooltipVariables attr_accessor :icon attr_accessor :message + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'icon') self.icon = attributes[:'icon'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'message') self.message = attributes[:'message'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb b/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb index c54b3d1..21c8441 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_template_with_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -94,7 +94,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -129,29 +129,30 @@ def initialize(attributes = {}) if attributes.has_key?(:'behavior') self.behavior = attributes[:'behavior'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - os_meta_family_validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) + os_meta_family_validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) return false unless os_meta_family_validator.valid?(@os_meta_family) - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] os_meta_family Object to be assigned def os_meta_family=(os_meta_family) - validator = EnumAttributeValidator.new('String', ['linux', 'darwin', 'windows']) + validator = EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) unless validator.valid?(os_meta_family) - fail ArgumentError, 'invalid value for "os_meta_family", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'os_meta_family', must be one of #{validator.allowable_values}." end @os_meta_family = os_meta_family end @@ -193,7 +194,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -275,7 +276,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -286,5 +287,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_value.rb b/jcapiv2/lib/jcapiv2/models/policy_value.rb index ecbc5aa..3f5f2d4 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_value.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_value.rb @@ -6,17 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class PolicyValue # The ObjectId of the corresponding Policy Template configuration field. attr_accessor :config_field_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,24 +39,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'configFieldID') self.config_field_id = attributes[:'configFieldID'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -87,7 +90,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -169,7 +172,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -180,5 +183,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/policy_with_details.rb b/jcapiv2/lib/jcapiv2/models/policy_with_details.rb index e1e4ea2..ffcc9d6 100644 --- a/jcapiv2/lib/jcapiv2/models/policy_with_details.rb +++ b/jcapiv2/lib/jcapiv2/models/policy_with_details.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -27,6 +27,7 @@ class PolicyWithDetails attr_accessor :values + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -55,7 +56,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -80,19 +81,20 @@ def initialize(attributes = {}) self.values = value end end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -129,7 +131,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -211,7 +213,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -222,5 +224,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb b/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb index 25a6393..fe7ed6a 100644 --- a/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb +++ b/jcapiv2/lib/jcapiv2/models/samba_domain_input.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SambaDomainInput # Name of this domain's WorkGroup attr_accessor :name @@ -20,6 +21,7 @@ class SambaDomainInput # Security identifier of this domain attr_accessor :sid + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +44,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -51,6 +53,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'sid') self.sid = attributes[:'sid'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -58,14 +61,14 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @sid.nil? - invalid_properties.push('invalid value for "sid", sid cannot be nil.') + invalid_properties.push("invalid value for 'sid', sid cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -73,7 +76,7 @@ def list_invalid_properties def valid? return false if @name.nil? return false if @sid.nil? - true + return true end # Checks equality by comparing each attribute. @@ -107,7 +110,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -189,7 +192,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -200,5 +203,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb b/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb index d9fe583..069ab9d 100644 --- a/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb +++ b/jcapiv2/lib/jcapiv2/models/samba_domain_output.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SambaDomainOutput # Name of this domain's WorkGroup attr_accessor :name @@ -23,6 +24,7 @@ class SambaDomainOutput # Unique identifier of this domain attr_accessor :id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -47,7 +49,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] @@ -60,6 +62,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -67,18 +70,18 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end if @sid.nil? - invalid_properties.push('invalid value for "sid", sid cannot be nil.') + invalid_properties.push("invalid value for 'sid', sid cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -87,7 +90,7 @@ def valid? return false if @name.nil? return false if @sid.nil? return false if @id.nil? - true + return true end # Checks equality by comparing each attribute. @@ -122,7 +125,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -204,7 +207,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +218,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/sshkeylist.rb b/jcapiv2/lib/jcapiv2/models/sshkeylist.rb index de5ab2e..3cec068 100644 --- a/jcapiv2/lib/jcapiv2/models/sshkeylist.rb +++ b/jcapiv2/lib/jcapiv2/models/sshkeylist.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Sshkeylist # The date the SSH key was created. attr_accessor :create_date @@ -26,6 +27,7 @@ class Sshkeylist # The name of the SSH key. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -52,7 +54,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'create_date') self.create_date = attributes[:'create_date'] @@ -69,19 +71,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -117,7 +120,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -199,7 +202,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -210,5 +213,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb index facebaa..5378f8a 100644 --- a/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/system_graph_management_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemGraphManagementReq attr_accessor :attributes @@ -72,7 +73,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -89,6 +90,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -96,39 +98,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) + type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) return false unless type_validator.valid?(@type) return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -136,9 +138,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) + validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -176,7 +178,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -258,7 +260,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -269,5 +271,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb index 656b266..f79305e 100644 --- a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb +++ b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -17,6 +17,7 @@ module JCAPIv2 class SystemGraphManagementReqAttributes attr_accessor :sudo + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'sudo') self.sudo = attributes[:'sudo'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -87,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -169,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -180,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb index face2e4..32562e9 100644 --- a/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb +++ b/jcapiv2/lib/jcapiv2/models/system_graph_management_req_attributes_sudo.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemGraphManagementReqAttributesSudo attr_accessor :enabled attr_accessor :without_password + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'enabled') self.enabled = attributes[:'enabled'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'withoutPassword') self.without_password = attributes[:'withoutPassword'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_group.rb b/jcapiv2/lib/jcapiv2/models/system_group.rb index 05c7b88..dc5e6bd 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemGroup # ObjectId uniquely identifying a System Group. attr_accessor :id @@ -69,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -82,29 +83,30 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - type_validator = EnumAttributeValidator.new('String', ['system_group']) + type_validator = EnumAttributeValidator.new('String', ["system_group"]) return false unless type_validator.valid?(@type) - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['system_group']) + validator = EnumAttributeValidator.new('String', ["system_group"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -141,7 +143,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -223,7 +225,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -234,5 +236,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_group_data.rb b/jcapiv2/lib/jcapiv2/models/system_group_data.rb index eabe2ca..346460f 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group_data.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group_data.rb @@ -6,17 +6,19 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemGroupData # Display name of a System Group. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,11 +39,12 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -49,17 +52,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - true + return true end # Checks equality by comparing each attribute. @@ -92,7 +95,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -174,7 +177,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -185,5 +188,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb index 9419677..e83910b 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group_graph_management_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemGroupGraphManagementReq # How to modify the graph connection. attr_accessor :op @@ -68,7 +69,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -81,6 +82,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -88,39 +90,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) + type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) return false unless type_validator.valid?(@type) return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -128,9 +130,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'user', 'user_group']) + validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -167,7 +169,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -249,7 +251,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -260,5 +262,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb b/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb index 650a6b4..0bc390e 100644 --- a/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb +++ b/jcapiv2/lib/jcapiv2/models/system_group_members_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemGroupMembersReq # How to modify the membership connection. attr_accessor :op @@ -69,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -82,6 +83,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -89,39 +91,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove"]) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['system']) + type_validator = EnumAttributeValidator.new('String', ["system"]) return false unless type_validator.valid?(@type) return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove']) + validator = EnumAttributeValidator.new('String', ["add", "remove"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -129,9 +131,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['system']) + validator = EnumAttributeValidator.new('String', ["system"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -168,7 +170,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -250,7 +252,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -261,5 +263,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/systemfdekey.rb b/jcapiv2/lib/jcapiv2/models/systemfdekey.rb index 398e9d0..b0c7209 100644 --- a/jcapiv2/lib/jcapiv2/models/systemfdekey.rb +++ b/jcapiv2/lib/jcapiv2/models/systemfdekey.rb @@ -6,16 +6,18 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Systemfdekey attr_accessor :key + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -36,11 +38,12 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'key') self.key = attributes[:'key'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -48,17 +51,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @key.nil? - invalid_properties.push('invalid value for "key", key cannot be nil.') + invalid_properties.push("invalid value for 'key', key cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @key.nil? - true + return true end # Checks equality by comparing each attribute. @@ -91,7 +94,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -173,7 +176,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -184,5 +187,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/systemuser.rb b/jcapiv2/lib/jcapiv2/models/systemuser.rb index 2757e86..ed3b07c 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuser.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuser.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Systemuser attr_accessor :email @@ -95,6 +96,7 @@ class Systemuser attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -193,7 +195,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -360,6 +362,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -367,74 +370,74 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if !@email.nil? && @email.to_s.length > 1024 - invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") end if !@username.nil? && @username.to_s.length > 1024 - invalid_properties.push('invalid value for "username", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'username', the character length must be smaller than or equal to 1024.") end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") end if !@firstname.nil? && @firstname.to_s.length > 1024 - invalid_properties.push('invalid value for "firstname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'firstname', the character length must be smaller than or equal to 1024.") end if !@lastname.nil? && @lastname.to_s.length > 1024 - invalid_properties.push('invalid value for "lastname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'lastname', the character length must be smaller than or equal to 1024.") end if !@associated_tag_count.nil? && @associated_tag_count < 0 - invalid_properties.push('invalid value for "associated_tag_count", must be greater than or equal to 0.') + invalid_properties.push("invalid value for 'associated_tag_count', must be greater than or equal to 0.") end if !@middlename.nil? && @middlename.to_s.length > 1024 - invalid_properties.push('invalid value for "middlename", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'middlename', the character length must be smaller than or equal to 1024.") end if !@displayname.nil? && @displayname.to_s.length > 1024 - invalid_properties.push('invalid value for "displayname", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'displayname', the character length must be smaller than or equal to 1024.") end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") end if !@location.nil? && @location.to_s.length > 1024 - invalid_properties.push('invalid value for "location", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'location', the character length must be smaller than or equal to 1024.") end if !@cost_center.nil? && @cost_center.to_s.length > 1024 - invalid_properties.push('invalid value for "cost_center", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'cost_center', the character length must be smaller than or equal to 1024.") end if !@employee_type.nil? && @employee_type.to_s.length > 1024 - invalid_properties.push('invalid value for "employee_type", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'employee_type', the character length must be smaller than or equal to 1024.") end if !@company.nil? && @company.to_s.length > 1024 - invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'company', the character length must be smaller than or equal to 1024.") end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') + invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") end if !@job_title.nil? && @job_title.to_s.length > 1024 - invalid_properties.push('invalid value for "job_title", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'job_title', the character length must be smaller than or equal to 1024.") end if !@department.nil? && @department.to_s.length > 1024 - invalid_properties.push('invalid value for "department", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'department', the character length must be smaller than or equal to 1024.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -457,14 +460,15 @@ def valid? return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 return false if !@job_title.nil? && @job_title.to_s.length > 1024 return false if !@department.nil? && @department.to_s.length > 1024 - true + return true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) + if !email.nil? && email.to_s.length > 1024 - fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." end @email = email @@ -473,8 +477,9 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] username Value to be assigned def username=(username) + if !username.nil? && username.to_s.length > 1024 - fail ArgumentError, 'invalid value for "username", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'username', the character length must be smaller than or equal to 1024." end @username = username @@ -483,8 +488,9 @@ def username=(username) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) + if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." end @unix_uid = unix_uid @@ -493,8 +499,9 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) + if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." end @unix_guid = unix_guid @@ -503,8 +510,9 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] firstname Value to be assigned def firstname=(firstname) + if !firstname.nil? && firstname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "firstname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'firstname', the character length must be smaller than or equal to 1024." end @firstname = firstname @@ -513,8 +521,9 @@ def firstname=(firstname) # Custom attribute writer method with validation # @param [Object] lastname Value to be assigned def lastname=(lastname) + if !lastname.nil? && lastname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "lastname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'lastname', the character length must be smaller than or equal to 1024." end @lastname = lastname @@ -523,8 +532,9 @@ def lastname=(lastname) # Custom attribute writer method with validation # @param [Object] associated_tag_count Value to be assigned def associated_tag_count=(associated_tag_count) + if !associated_tag_count.nil? && associated_tag_count < 0 - fail ArgumentError, 'invalid value for "associated_tag_count", must be greater than or equal to 0.' + fail ArgumentError, "invalid value for 'associated_tag_count', must be greater than or equal to 0." end @associated_tag_count = associated_tag_count @@ -533,8 +543,9 @@ def associated_tag_count=(associated_tag_count) # Custom attribute writer method with validation # @param [Object] middlename Value to be assigned def middlename=(middlename) + if !middlename.nil? && middlename.to_s.length > 1024 - fail ArgumentError, 'invalid value for "middlename", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'middlename', the character length must be smaller than or equal to 1024." end @middlename = middlename @@ -543,8 +554,9 @@ def middlename=(middlename) # Custom attribute writer method with validation # @param [Object] displayname Value to be assigned def displayname=(displayname) + if !displayname.nil? && displayname.to_s.length > 1024 - fail ArgumentError, 'invalid value for "displayname", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'displayname', the character length must be smaller than or equal to 1024." end @displayname = displayname @@ -553,8 +565,9 @@ def displayname=(displayname) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) + if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." end @description = description @@ -563,8 +576,9 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] location Value to be assigned def location=(location) + if !location.nil? && location.to_s.length > 1024 - fail ArgumentError, 'invalid value for "location", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'location', the character length must be smaller than or equal to 1024." end @location = location @@ -573,8 +587,9 @@ def location=(location) # Custom attribute writer method with validation # @param [Object] cost_center Value to be assigned def cost_center=(cost_center) + if !cost_center.nil? && cost_center.to_s.length > 1024 - fail ArgumentError, 'invalid value for "cost_center", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'cost_center', the character length must be smaller than or equal to 1024." end @cost_center = cost_center @@ -583,8 +598,9 @@ def cost_center=(cost_center) # Custom attribute writer method with validation # @param [Object] employee_type Value to be assigned def employee_type=(employee_type) + if !employee_type.nil? && employee_type.to_s.length > 1024 - fail ArgumentError, 'invalid value for "employee_type", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'employee_type', the character length must be smaller than or equal to 1024." end @employee_type = employee_type @@ -593,8 +609,9 @@ def employee_type=(employee_type) # Custom attribute writer method with validation # @param [Object] company Value to be assigned def company=(company) + if !company.nil? && company.to_s.length > 1024 - fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'company', the character length must be smaller than or equal to 1024." end @company = company @@ -603,8 +620,9 @@ def company=(company) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) + if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' + fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." end @employee_identifier = employee_identifier @@ -613,8 +631,9 @@ def employee_identifier=(employee_identifier) # Custom attribute writer method with validation # @param [Object] job_title Value to be assigned def job_title=(job_title) + if !job_title.nil? && job_title.to_s.length > 1024 - fail ArgumentError, 'invalid value for "job_title", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'job_title', the character length must be smaller than or equal to 1024." end @job_title = job_title @@ -623,8 +642,9 @@ def job_title=(job_title) # Custom attribute writer method with validation # @param [Object] department Value to be assigned def department=(department) + if !department.nil? && department.to_s.length > 1024 - fail ArgumentError, 'invalid value for "department", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'department', the character length must be smaller than or equal to 1024." end @department = department @@ -699,7 +719,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -781,7 +801,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -792,5 +812,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb index 3144cab..5d8a0cd 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class Systemuserputpost attr_accessor :email @@ -89,6 +90,7 @@ class Systemuserputpost attr_accessor :mfa + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -181,7 +183,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'email') self.email = attributes[:'email'] @@ -340,6 +342,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'mfa') self.mfa = attributes[:'mfa'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -347,34 +350,34 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @email.nil? - invalid_properties.push('invalid value for "email", email cannot be nil.') + invalid_properties.push("invalid value for 'email', email cannot be nil.") end if @email.to_s.length > 1024 - invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'email', the character length must be smaller than or equal to 1024.") end if @username.nil? - invalid_properties.push('invalid value for "username", username cannot be nil.') + invalid_properties.push("invalid value for 'username', username cannot be nil.") end if !@unix_uid.nil? && @unix_uid < 1 - invalid_properties.push('invalid value for "unix_uid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_uid', must be greater than or equal to 1.") end if !@unix_guid.nil? && @unix_guid < 1 - invalid_properties.push('invalid value for "unix_guid", must be greater than or equal to 1.') + invalid_properties.push("invalid value for 'unix_guid', must be greater than or equal to 1.") end if !@description.nil? && @description.to_s.length > 1024 - invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.') + invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 1024.") end if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - invalid_properties.push('invalid value for "employee_identifier", the character length must be smaller than or equal to 256.') + invalid_properties.push("invalid value for 'employee_identifier', the character length must be smaller than or equal to 256.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid @@ -387,18 +390,18 @@ def valid? return false if !@unix_guid.nil? && @unix_guid < 1 return false if !@description.nil? && @description.to_s.length > 1024 return false if !@employee_identifier.nil? && @employee_identifier.to_s.length > 256 - true + return true end # Custom attribute writer method with validation # @param [Object] email Value to be assigned def email=(email) if email.nil? - fail ArgumentError, 'email cannot be nil' + fail ArgumentError, "email cannot be nil" end if email.to_s.length > 1024 - fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'email', the character length must be smaller than or equal to 1024." end @email = email @@ -407,8 +410,9 @@ def email=(email) # Custom attribute writer method with validation # @param [Object] unix_uid Value to be assigned def unix_uid=(unix_uid) + if !unix_uid.nil? && unix_uid < 1 - fail ArgumentError, 'invalid value for "unix_uid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_uid', must be greater than or equal to 1." end @unix_uid = unix_uid @@ -417,8 +421,9 @@ def unix_uid=(unix_uid) # Custom attribute writer method with validation # @param [Object] unix_guid Value to be assigned def unix_guid=(unix_guid) + if !unix_guid.nil? && unix_guid < 1 - fail ArgumentError, 'invalid value for "unix_guid", must be greater than or equal to 1.' + fail ArgumentError, "invalid value for 'unix_guid', must be greater than or equal to 1." end @unix_guid = unix_guid @@ -427,8 +432,9 @@ def unix_guid=(unix_guid) # Custom attribute writer method with validation # @param [Object] description Value to be assigned def description=(description) + if !description.nil? && description.to_s.length > 1024 - fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.' + fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 1024." end @description = description @@ -437,8 +443,9 @@ def description=(description) # Custom attribute writer method with validation # @param [Object] employee_identifier Value to be assigned def employee_identifier=(employee_identifier) + if !employee_identifier.nil? && employee_identifier.to_s.length > 256 - fail ArgumentError, 'invalid value for "employee_identifier", the character length must be smaller than or equal to 256.' + fail ArgumentError, "invalid value for 'employee_identifier', the character length must be smaller than or equal to 256." end @employee_identifier = employee_identifier @@ -510,7 +517,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -592,7 +599,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -603,5 +610,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb index edd958d..6d965ba 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost_addresses.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemuserputpostAddresses attr_accessor :type @@ -30,6 +31,7 @@ class SystemuserputpostAddresses attr_accessor :country + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -64,7 +66,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -97,19 +99,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'country') self.country = attributes[:'country'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -149,7 +152,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -231,7 +234,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -242,5 +245,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb b/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb index 9ae061d..f870366 100644 --- a/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb +++ b/jcapiv2/lib/jcapiv2/models/systemuserputpost_phone_numbers.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class SystemuserputpostPhoneNumbers attr_accessor :type attr_accessor :number + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'type') self.type = attributes[:'type'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'number') self.number = attributes[:'number'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb index aa49096..b105511 100644 --- a/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/user_graph_management_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGraphManagementReq attr_accessor :attributes @@ -72,7 +73,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -89,6 +90,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -96,39 +98,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) + type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) return false unless type_validator.valid?(@type) return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -136,9 +138,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) + validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -176,7 +178,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -258,7 +260,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -269,5 +271,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group.rb b/jcapiv2/lib/jcapiv2/models/user_group.rb index 3b66419..e44d99d 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGroup # ObjectId uniquely identifying a User Group. attr_accessor :id @@ -69,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -82,29 +83,30 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - type_validator = EnumAttributeValidator.new('String', ['user_group']) + type_validator = EnumAttributeValidator.new('String', ["user_group"]) return false unless type_validator.valid?(@type) - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['user_group']) + validator = EnumAttributeValidator.new('String', ["user_group"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -141,7 +143,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -223,7 +225,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -234,5 +236,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb b/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb index 4ebffc2..144de5a 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_graph_management_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGroupGraphManagementReq # How to modify the graph connection. attr_accessor :op @@ -69,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -82,6 +83,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -89,39 +91,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) + type_validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) return false unless type_validator.valid?(@type) return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove', 'update']) + validator = EnumAttributeValidator.new('String', ["add", "remove", "update"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -129,9 +131,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['active_directory', 'application', 'command', 'g_suite', 'ldap_server', 'office_365', 'policy', 'radius_server', 'system', 'system_group']) + validator = EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -168,7 +170,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -250,7 +252,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -261,5 +263,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb b/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb index 9167a6c..9b9c851 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_members_req.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGroupMembersReq # How to modify the membership connection. attr_accessor :op @@ -69,7 +70,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'op') self.op = attributes[:'op'] @@ -82,6 +83,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'id') self.id = attributes[:'id'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -89,39 +91,39 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @op.nil? - invalid_properties.push('invalid value for "op", op cannot be nil.') + invalid_properties.push("invalid value for 'op', op cannot be nil.") end if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') + invalid_properties.push("invalid value for 'type', type cannot be nil.") end if @id.nil? - invalid_properties.push('invalid value for "id", id cannot be nil.') + invalid_properties.push("invalid value for 'id', id cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @op.nil? - op_validator = EnumAttributeValidator.new('String', ['add', 'remove']) + op_validator = EnumAttributeValidator.new('String', ["add", "remove"]) return false unless op_validator.valid?(@op) return false if @type.nil? - type_validator = EnumAttributeValidator.new('String', ['user']) + type_validator = EnumAttributeValidator.new('String', ["user"]) return false unless type_validator.valid?(@type) return false if @id.nil? - true + return true end # Custom attribute writer method checking allowed values (enum). # @param [Object] op Object to be assigned def op=(op) - validator = EnumAttributeValidator.new('String', ['add', 'remove']) + validator = EnumAttributeValidator.new('String', ["add", "remove"]) unless validator.valid?(op) - fail ArgumentError, 'invalid value for "op", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'op', must be one of #{validator.allowable_values}." end @op = op end @@ -129,9 +131,9 @@ def op=(op) # Custom attribute writer method checking allowed values (enum). # @param [Object] type Object to be assigned def type=(type) - validator = EnumAttributeValidator.new('String', ['user']) + validator = EnumAttributeValidator.new('String', ["user"]) unless validator.valid?(type) - fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' + fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}." end @type = type end @@ -168,7 +170,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -250,7 +252,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -261,5 +263,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_post.rb b/jcapiv2/lib/jcapiv2/models/user_group_post.rb index 6b98128..9fe6da9 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_post.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_post.rb @@ -6,19 +6,21 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGroupPost attr_accessor :attributes # Display name of a User Group. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +43,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -50,6 +52,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -57,17 +60,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - true + return true end # Checks equality by comparing each attribute. @@ -101,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -183,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -194,5 +197,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb index d102292..a3ef36b 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -19,6 +19,7 @@ class UserGroupPostAttributes attr_accessor :samba_enabled + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'posixGroups') if (value = attributes[:'posixGroups']).is_a?(Array) @@ -52,19 +53,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'sambaEnabled') self.samba_enabled = attributes[:'sambaEnabled'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -98,7 +100,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -180,7 +182,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -191,5 +193,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb index 747935b..578c449 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_post_attributes_posix_groups.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGroupPostAttributesPosixGroups attr_accessor :id attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_put.rb b/jcapiv2/lib/jcapiv2/models/user_group_put.rb index d65243f..f05997b 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_put.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_put.rb @@ -6,19 +6,21 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class UserGroupPut attr_accessor :attributes # Display name of a User Group. attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -41,7 +43,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] @@ -50,6 +52,7 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? @@ -57,17 +60,17 @@ def initialize(attributes = {}) def list_invalid_properties invalid_properties = Array.new if @name.nil? - invalid_properties.push('invalid value for "name", name cannot be nil.') + invalid_properties.push("invalid value for 'name', name cannot be nil.") end - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? return false if @name.nil? - true + return true end # Checks equality by comparing each attribute. @@ -101,7 +104,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -183,7 +186,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -194,5 +197,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb b/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb index 91083e5..6935b0c 100644 --- a/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb +++ b/jcapiv2/lib/jcapiv2/models/user_group_put_attributes.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -17,6 +17,7 @@ module JCAPIv2 class UserGroupPutAttributes attr_accessor :samba_enabled + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -37,24 +38,25 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'sambaEnabled') self.samba_enabled = attributes[:'sambaEnabled'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -87,7 +89,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -169,7 +171,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -180,5 +182,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/workday_fields.rb b/jcapiv2/lib/jcapiv2/models/workday_fields.rb index bb8cfa0..453f17a 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_fields.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_fields.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class WorkdayFields attr_accessor :report_url attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'reportUrl') self.report_url = attributes[:'reportUrl'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/workday_input.rb b/jcapiv2/lib/jcapiv2/models/workday_input.rb index edc4664..e20cd48 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_input.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_input.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class WorkdayInput attr_accessor :report_url @@ -20,6 +21,7 @@ class WorkdayInput attr_accessor :auth + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -44,7 +46,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'reportUrl') self.report_url = attributes[:'reportUrl'] @@ -57,19 +59,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'auth') self.auth = attributes[:'auth'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -104,7 +107,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -186,7 +189,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -197,5 +200,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/workday_output.rb b/jcapiv2/lib/jcapiv2/models/workday_output.rb index c858041..1bc4d66 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_output.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_output.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class WorkdayOutput attr_accessor :id @@ -24,6 +25,7 @@ class WorkdayOutput attr_accessor :auth + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -52,7 +54,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'id') self.id = attributes[:'id'] @@ -73,19 +75,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'auth') self.auth = attributes[:'auth'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -122,7 +125,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -204,7 +207,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +218,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/workday_request.rb b/jcapiv2/lib/jcapiv2/models/workday_request.rb index 9eff152..1a74071 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_request.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_request.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class WorkdayRequest attr_accessor :object_id attr_accessor :name + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'objectId') self.object_id = attributes[:'objectId'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/workday_worker.rb b/jcapiv2/lib/jcapiv2/models/workday_worker.rb index 8b7b173..22f5b03 100644 --- a/jcapiv2/lib/jcapiv2/models/workday_worker.rb +++ b/jcapiv2/lib/jcapiv2/models/workday_worker.rb @@ -6,13 +6,14 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class WorkdayWorker attr_accessor :username @@ -24,6 +25,7 @@ class WorkdayWorker attr_accessor :attributes + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -52,7 +54,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'username') self.username = attributes[:'username'] @@ -73,19 +75,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'attributes') self.attributes = attributes[:'attributes'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -122,7 +125,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -204,7 +207,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -215,5 +218,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb b/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb index 45cd8e3..d6a16b1 100644 --- a/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb +++ b/jcapiv2/lib/jcapiv2/models/workdayoutput_auth.rb @@ -6,18 +6,20 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end require 'date' module JCAPIv2 + class WorkdayoutputAuth attr_accessor :basic attr_accessor :oauth + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -40,7 +42,7 @@ def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key - attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'basic') self.basic = attributes[:'basic'] @@ -49,19 +51,20 @@ def initialize(attributes = {}) if attributes.has_key?(:'oauth') self.oauth = attributes[:'oauth'] end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - invalid_properties + return invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - true + return true end # Checks equality by comparing each attribute. @@ -95,7 +98,7 @@ def build_from_hash(attributes) # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) @@ -177,7 +180,7 @@ def to_hash # @return [Hash] Returns the value in the form of hash def _to_hash(value) if value.is_a?(Array) - value.compact.map { |v| _to_hash(v) } + value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } @@ -188,5 +191,7 @@ def _to_hash(value) value end end + end + end diff --git a/jcapiv2/lib/jcapiv2/version.rb b/jcapiv2/lib/jcapiv2/version.rb index 0b2a850..5dcafff 100644 --- a/jcapiv2/lib/jcapiv2/version.rb +++ b/jcapiv2/lib/jcapiv2/version.rb @@ -6,10 +6,10 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end module JCAPIv2 - VERSION = '1.4.0' + VERSION = "1.4.0" end diff --git a/jcapiv2/spec/api/active_directory_api_spec.rb b/jcapiv2/spec/api/active_directory_api_spec.rb index 69f1287..f5ccfc1 100644 --- a/jcapiv2/spec/api/active_directory_api_spec.rb +++ b/jcapiv2/spec/api/active_directory_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'activedirectories_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -57,7 +57,7 @@ # @option opts [String] :x_org_id # @return [ActiveDirectoryOutput] describe 'activedirectories_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -76,7 +76,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'activedirectories_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -91,7 +91,7 @@ # @option opts [String] :x_org_id # @return [ActiveDirectoryOutput] describe 'activedirectories_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -109,7 +109,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_active_directory_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -142,7 +142,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/applications_api_spec.rb b/jcapiv2/spec/api/applications_api_spec.rb index 1a0d5e8..563f97b 100644 --- a/jcapiv2/spec/api/applications_api_spec.rb +++ b/jcapiv2/spec/api/applications_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_application_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/bulk_job_requests_api_spec.rb b/jcapiv2/spec/api/bulk_job_requests_api_spec.rb index 87848bf..2f4929c 100644 --- a/jcapiv2/spec/api/bulk_job_requests_api_spec.rb +++ b/jcapiv2/spec/api/bulk_job_requests_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [JobId] describe 'bulk_users_create test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'bulk_users_create_results test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -74,7 +74,7 @@ # @option opts [String] :x_org_id # @return [JobId] describe 'bulk_users_update test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -89,7 +89,7 @@ # @option opts [String] :x_org_id # @return [JobDetails] describe 'jobs_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -106,7 +106,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'jobs_results test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/commands_api_spec.rb b/jcapiv2/spec/api/commands_api_spec.rb index 4fb13f9..f0d4183 100644 --- a/jcapiv2/spec/api/commands_api_spec.rb +++ b/jcapiv2/spec/api/commands_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_command_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/directories_api_spec.rb b/jcapiv2/spec/api/directories_api_spec.rb index 9028ec1..3bfa289 100644 --- a/jcapiv2/spec/api/directories_api_spec.rb +++ b/jcapiv2/spec/api/directories_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'directories_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/fde_api_spec.rb b/jcapiv2/spec/api/fde_api_spec.rb index f92b3f6..04b2876 100644 --- a/jcapiv2/spec/api/fde_api_spec.rb +++ b/jcapiv2/spec/api/fde_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -40,7 +40,7 @@ # @option opts [String] :x_org_id # @return [Systemfdekey] describe 'systems_get_fde_key test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/g_suite_api_spec.rb b/jcapiv2/spec/api/g_suite_api_spec.rb index 3ab2608..7078e78 100644 --- a/jcapiv2/spec/api/g_suite_api_spec.rb +++ b/jcapiv2/spec/api/g_suite_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_g_suite_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -76,7 +76,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -93,7 +93,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -108,7 +108,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'translation_rules_g_suite_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -123,7 +123,7 @@ # @param [Hash] opts the optional parameters # @return [GSuiteTranslationRule] describe 'translation_rules_g_suite_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -142,7 +142,7 @@ # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [Array] describe 'translation_rules_g_suite_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -157,7 +157,7 @@ # @option opts [GSuiteTranslationRuleRequest] :body # @return [GSuiteTranslationRule] describe 'translation_rules_g_suite_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/graph_api_spec.rb b/jcapiv2/spec/api/graph_api_spec.rb index 7ba2c02..9133f47 100644 --- a/jcapiv2/spec/api/graph_api_spec.rb +++ b/jcapiv2/spec/api/graph_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_active_directory_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_active_directory_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -96,7 +96,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_application_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -146,7 +146,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_application_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -164,7 +164,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -180,7 +180,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_command_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -197,7 +197,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -214,7 +214,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_command_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -232,7 +232,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -246,7 +246,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_g_suite_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -263,7 +263,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -280,7 +280,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_g_suite_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -298,7 +298,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -314,7 +314,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_ldap_server_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -331,7 +331,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -348,7 +348,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -366,7 +366,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -382,7 +382,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_office365_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -399,7 +399,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -416,7 +416,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -434,7 +434,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -450,7 +450,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_policy_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -467,7 +467,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -484,7 +484,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -502,7 +502,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -518,7 +518,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_radius_server_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -535,7 +535,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -552,7 +552,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -572,7 +572,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -590,7 +590,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -608,7 +608,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -624,7 +624,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -643,7 +643,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -660,7 +660,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_members_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -678,7 +678,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_members_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -697,7 +697,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_membership test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -714,7 +714,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_command test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -731,7 +731,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_policy test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -748,7 +748,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -765,7 +765,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -786,7 +786,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -803,7 +803,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_command test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -820,7 +820,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_policy test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -840,7 +840,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_system_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -859,7 +859,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -877,7 +877,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -893,7 +893,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -911,7 +911,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -927,7 +927,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -946,7 +946,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -963,7 +963,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_members_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -979,7 +979,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_members_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -998,7 +998,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_membership test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1015,7 +1015,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_active_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1032,7 +1032,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_application test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1049,7 +1049,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1066,7 +1066,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_g_suite test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1083,7 +1083,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_ldap_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1100,7 +1100,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_office365 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1117,7 +1117,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_radius_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1134,7 +1134,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1151,7 +1151,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1170,7 +1170,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1187,7 +1187,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_application test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1204,7 +1204,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1221,7 +1221,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_g_suite test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1238,7 +1238,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_ldap_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1255,7 +1255,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_office365 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1272,7 +1272,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_radius_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1290,7 +1290,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_user_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1307,7 +1307,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -1327,7 +1327,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policystatuses_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/groups_api_spec.rb b/jcapiv2/spec/api/groups_api_spec.rb index 751a025..cddbe69 100644 --- a/jcapiv2/spec/api/groups_api_spec.rb +++ b/jcapiv2/spec/api/groups_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'groups_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/ldap_servers_api_spec.rb b/jcapiv2/spec/api/ldap_servers_api_spec.rb index c6d1c3f..72141a8 100644 --- a/jcapiv2/spec/api/ldap_servers_api_spec.rb +++ b/jcapiv2/spec/api/ldap_servers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_ldap_server_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_ldap_server_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -110,7 +110,7 @@ # @option opts [String] :x_org_id # @return [LdapServerOutput] describe 'ldapservers_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'ldapservers_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/office365_api_spec.rb b/jcapiv2/spec/api/office365_api_spec.rb index 7fa068a..3a85ae9 100644 --- a/jcapiv2/spec/api/office365_api_spec.rb +++ b/jcapiv2/spec/api/office365_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_office365_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_office365_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -110,7 +110,7 @@ # @param [Hash] opts the optional parameters # @return [nil] describe 'translation_rules_office365_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @param [Hash] opts the optional parameters # @return [Office365TranslationRule] describe 'translation_rules_office365_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -144,7 +144,7 @@ # @option opts [Array] :sort The comma separated fields used to sort the collection. Default sort is ascending, prefix with `-` to sort descending. # @return [Array] describe 'translation_rules_office365_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -159,7 +159,7 @@ # @option opts [Office365TranslationRuleRequest] :body # @return [Office365TranslationRule] describe 'translation_rules_office365_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/policies_api_spec.rb b/jcapiv2/spec/api/policies_api_spec.rb index 65d9402..a2d71bc 100644 --- a/jcapiv2/spec/api/policies_api_spec.rb +++ b/jcapiv2/spec/api/policies_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_policy_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_policy_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -110,7 +110,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'policies_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -125,7 +125,7 @@ # @option opts [String] :x_org_id # @return [PolicyWithDetails] describe 'policies_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -144,7 +144,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policies_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -159,7 +159,7 @@ # @option opts [String] :x_org_id # @return [PolicyWithDetails] describe 'policies_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -173,7 +173,7 @@ # @option opts [String] :x_org_id # @return [Policy] describe 'policies_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -188,7 +188,7 @@ # @option opts [String] :x_org_id # @return [PolicyResult] describe 'policyresults_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -209,7 +209,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policyresults_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -229,7 +229,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policyresults_list_0 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -249,7 +249,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policystatuses_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -269,7 +269,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policystatuses_list_0 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -284,7 +284,7 @@ # @option opts [String] :x_org_id # @return [PolicyTemplateWithDetails] describe 'policytemplates_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -303,7 +303,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policytemplates_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/policytemplates_api_spec.rb b/jcapiv2/spec/api/policytemplates_api_spec.rb index d3aafdb..88c87a0 100644 --- a/jcapiv2/spec/api/policytemplates_api_spec.rb +++ b/jcapiv2/spec/api/policytemplates_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -42,7 +42,7 @@ # @option opts [String] :x_org_id # @return [PolicyTemplateWithDetails] describe 'policytemplates_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'policytemplates_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/radius_servers_api_spec.rb b/jcapiv2/spec/api/radius_servers_api_spec.rb index 3615cba..48b4aae 100644 --- a/jcapiv2/spec/api/radius_servers_api_spec.rb +++ b/jcapiv2/spec/api/radius_servers_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_radius_server_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_radius_server_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/samba_domains_api_spec.rb b/jcapiv2/spec/api/samba_domains_api_spec.rb index baebe1c..8f224a7 100644 --- a/jcapiv2/spec/api/samba_domains_api_spec.rb +++ b/jcapiv2/spec/api/samba_domains_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -43,7 +43,7 @@ # @option opts [String] :x_org_id # @return [String] describe 'ldapservers_samba_domains_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -59,7 +59,7 @@ # @option opts [String] :x_org_id # @return [SambaDomainOutput] describe 'ldapservers_samba_domains_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -79,7 +79,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'ldapservers_samba_domains_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [SambaDomainOutput] describe 'ldapservers_samba_domains_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [SambaDomainOutput] describe 'ldapservers_samba_domains_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/system_group_associations_api_spec.rb b/jcapiv2/spec/api/system_group_associations_api_spec.rb index d3880fd..0bc1601 100644 --- a/jcapiv2/spec/api/system_group_associations_api_spec.rb +++ b/jcapiv2/spec/api/system_group_associations_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_command test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_policy test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/system_group_members_membership_api_spec.rb b/jcapiv2/spec/api/system_group_members_membership_api_spec.rb index b0565bb..5ae3fc6 100644 --- a/jcapiv2/spec/api/system_group_members_membership_api_spec.rb +++ b/jcapiv2/spec/api/system_group_members_membership_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_members_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -81,7 +81,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_members_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -100,7 +100,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_membership test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/system_groups_api_spec.rb b/jcapiv2/spec/api/system_groups_api_spec.rb index 90250a4..c8b7a96 100644 --- a/jcapiv2/spec/api/system_groups_api_spec.rb +++ b/jcapiv2/spec/api/system_groups_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -97,7 +97,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_members_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -115,7 +115,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_group_members_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -134,7 +134,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_membership test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -151,7 +151,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_policy test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -168,7 +168,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -185,7 +185,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_group_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -200,7 +200,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'groups_system_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -215,7 +215,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -234,7 +234,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'groups_system_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -250,7 +250,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_patch test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -265,7 +265,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -281,7 +281,7 @@ # @option opts [String] :x_org_id # @return [SystemGroup] describe 'groups_system_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/systems_api_spec.rb b/jcapiv2/spec/api/systems_api_spec.rb index a48313c..fb58081 100644 --- a/jcapiv2/spec/api/systems_api_spec.rb +++ b/jcapiv2/spec/api/systems_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -47,7 +47,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -65,7 +65,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_system_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -86,7 +86,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -103,7 +103,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_command test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -120,7 +120,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_policy test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -140,7 +140,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_system_traverse_user test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -159,7 +159,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_system_traverse_user_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -172,7 +172,7 @@ # @option opts [String] :x_org_id # @return [Systemfdekey] describe 'systems_get_fde_key test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/user_group_associations_api_spec.rb b/jcapiv2/spec/api/user_group_associations_api_spec.rb index a1aafba..db85c9a 100644 --- a/jcapiv2/spec/api/user_group_associations_api_spec.rb +++ b/jcapiv2/spec/api/user_group_associations_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -78,7 +78,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_active_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -95,7 +95,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_application test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -112,7 +112,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -129,7 +129,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_g_suite test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -146,7 +146,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_ldap_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -163,7 +163,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_office365 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -180,7 +180,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_radius_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -197,7 +197,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -214,7 +214,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/user_group_members_membership_api_spec.rb b/jcapiv2/spec/api/user_group_members_membership_api_spec.rb index db2b0d1..b85b852 100644 --- a/jcapiv2/spec/api/user_group_members_membership_api_spec.rb +++ b/jcapiv2/spec/api/user_group_members_membership_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -46,7 +46,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -63,7 +63,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_members_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -79,7 +79,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_members_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -98,7 +98,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_membership test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/user_groups_api_spec.rb b/jcapiv2/spec/api/user_groups_api_spec.rb index fde16f8..ae0c4b2 100644 --- a/jcapiv2/spec/api/user_groups_api_spec.rb +++ b/jcapiv2/spec/api/user_groups_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -97,7 +97,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_members_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -113,7 +113,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_group_members_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -132,7 +132,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_membership test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -149,7 +149,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_active_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -166,7 +166,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_application test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -183,7 +183,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -200,7 +200,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_g_suite test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -217,7 +217,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_ldap_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -234,7 +234,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_office365 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -251,7 +251,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_radius_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -268,7 +268,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -285,7 +285,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_group_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -300,7 +300,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'groups_user_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -315,7 +315,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -334,7 +334,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'groups_user_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -350,7 +350,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_patch test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -365,7 +365,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -381,7 +381,7 @@ # @option opts [String] :x_org_id # @return [UserGroup] describe 'groups_user_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/users_api_spec.rb b/jcapiv2/spec/api/users_api_spec.rb index eee0394..7f14edd 100644 --- a/jcapiv2/spec/api/users_api_spec.rb +++ b/jcapiv2/spec/api/users_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -45,7 +45,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_associations_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -61,7 +61,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'graph_user_associations_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -80,7 +80,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_member_of test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -97,7 +97,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_application test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -114,7 +114,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_directory test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -131,7 +131,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_g_suite test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -148,7 +148,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_ldap_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -165,7 +165,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_office365 test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -182,7 +182,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_radius_server test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -200,7 +200,7 @@ # @option opts [Array] :filter Supported operators are: eq, ne, gt, ge, lt, le, between, search, in # @return [Array] describe 'graph_user_traverse_system test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -217,7 +217,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'graph_user_traverse_system_group test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -233,7 +233,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'users_send_emails test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api/workday_import_api_spec.rb b/jcapiv2/spec/api/workday_import_api_spec.rb index 06f3dfc..482524c 100644 --- a/jcapiv2/spec/api/workday_import_api_spec.rb +++ b/jcapiv2/spec/api/workday_import_api_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -43,7 +43,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_authorize test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -58,7 +58,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_deauthorize test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -73,7 +73,7 @@ # @option opts [String] :x_org_id # @return [Object] describe 'workdays_delete test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -88,7 +88,7 @@ # @option opts [String] :x_org_id # @return [WorkdayOutput] describe 'workdays_get test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -104,7 +104,7 @@ # @option opts [String] :x_org_id # @return [JobId] describe 'workdays_import test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -122,7 +122,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'workdays_importresults test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -141,7 +141,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'workdays_list test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -156,7 +156,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_post test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -172,7 +172,7 @@ # @option opts [String] :x_org_id # @return [WorkdayOutput] describe 'workdays_put test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -187,7 +187,7 @@ # @option opts [String] :x_org_id # @return [nil] describe 'workdays_settings test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end @@ -205,7 +205,7 @@ # @option opts [String] :x_org_id # @return [Array] describe 'workdays_workers test' do - it 'should work' do + it "should work" do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end diff --git a/jcapiv2/spec/api_client_spec.rb b/jcapiv2/spec/api_client_spec.rb index 314d1ce..5903dc8 100644 --- a/jcapiv2/spec/api_client_spec.rb +++ b/jcapiv2/spec/api_client_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -51,11 +51,11 @@ end end - describe 'params_encoding in #build_request' do + describe "params_encoding in #build_request" do let(:config) { JCAPIv2::Configuration.new } let(:api_client) { JCAPIv2::ApiClient.new(config) } - it 'defaults to nil' do + it "defaults to nil" do expect(JCAPIv2::Configuration.default.params_encoding).to eq(nil) expect(config.params_encoding).to eq(nil) @@ -63,18 +63,18 @@ expect(request.options[:params_encoding]).to eq(nil) end - it 'can be customized' do + it "can be customized" do config.params_encoding = :multi request = api_client.build_request(:get, '/test') expect(request.options[:params_encoding]).to eq(:multi) end end - describe 'timeout in #build_request' do + describe "timeout in #build_request" do let(:config) { JCAPIv2::Configuration.new } let(:api_client) { JCAPIv2::ApiClient.new(config) } - it 'defaults to 0' do + it "defaults to 0" do expect(JCAPIv2::Configuration.default.timeout).to eq(0) expect(config.timeout).to eq(0) @@ -82,88 +82,88 @@ expect(request.options[:timeout]).to eq(0) end - it 'can be customized' do + it "can be customized" do config.timeout = 100 request = api_client.build_request(:get, '/test') expect(request.options[:timeout]).to eq(100) end end - describe '#deserialize' do + describe "#deserialize" do it "handles Array" do api_client = JCAPIv2::ApiClient.new - headers = { 'Content-Type' => 'application/json' } + headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: '[12, 34]') data = api_client.deserialize(response, 'Array') expect(data).to be_instance_of(Array) expect(data).to eq([12, 34]) end - it 'handles Array>' do + it "handles Array>" do api_client = JCAPIv2::ApiClient.new - headers = { 'Content-Type' => 'application/json' } + headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: '[[12, 34], [56]]') data = api_client.deserialize(response, 'Array>') expect(data).to be_instance_of(Array) expect(data).to eq([[12, 34], [56]]) end - it 'handles Hash' do + it "handles Hash" do api_client = JCAPIv2::ApiClient.new - headers = { 'Content-Type' => 'application/json' } + headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: '{"message": "Hello"}') data = api_client.deserialize(response, 'Hash') expect(data).to be_instance_of(Hash) - expect(data).to eq(:message => 'Hello') + expect(data).to eq({:message => 'Hello'}) end end describe "#object_to_hash" do - it 'ignores nils and includes empty arrays' do + it "ignores nils and includes empty arrays" do # uncomment below to test object_to_hash for model - # api_client = JCAPIv2::ApiClient.new - # _model = JCAPIv2::ModelName.new + #api_client = JCAPIv2::ApiClient.new + #_model = JCAPIv2::ModelName.new # update the model attribute below - # _model.id = 1 + #_model.id = 1 # update the expected value (hash) below - # expected = {id: 1, name: '', tags: []} - # expect(api_client.object_to_hash(_model)).to eq(expected) + #expected = {id: 1, name: '', tags: []} + #expect(api_client.object_to_hash(_model)).to eq(expected) end end - describe '#build_collection_param' do + describe "#build_collection_param" do let(:param) { ['aa', 'bb', 'cc'] } let(:api_client) { JCAPIv2::ApiClient.new } - it 'works for csv' do + it "works for csv" do expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') end - it 'works for ssv' do + it "works for ssv" do expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') end - it 'works for tsv' do + it "works for tsv" do expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") end - it 'works for pipes' do + it "works for pipes" do expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') end - it 'works for multi' do + it "works for multi" do expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) end - it 'fails for invalid collection format' do + it "fails for invalid collection format" do expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end - describe '#json_mime?' do + describe "#json_mime?" do let(:api_client) { JCAPIv2::ApiClient.new } - it 'works' do + it "works" do expect(api_client.json_mime?(nil)).to eq false expect(api_client.json_mime?('')).to eq false @@ -177,10 +177,10 @@ end end - describe '#select_header_accept' do + describe "#select_header_accept" do let(:api_client) { JCAPIv2::ApiClient.new } - it 'works' do + it "works" do expect(api_client.select_header_accept(nil)).to be_nil expect(api_client.select_header_accept([])).to be_nil @@ -193,10 +193,10 @@ end end - describe '#select_header_content_type' do + describe "#select_header_content_type" do let(:api_client) { JCAPIv2::ApiClient.new } - it 'works' do + it "works" do expect(api_client.select_header_content_type(nil)).to eq('application/json') expect(api_client.select_header_content_type([])).to eq('application/json') @@ -208,10 +208,10 @@ end end - describe '#sanitize_filename' do + describe "#sanitize_filename" do let(:api_client) { JCAPIv2::ApiClient.new } - it 'works' do + it "works" do expect(api_client.sanitize_filename('sun')).to eq('sun') expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') diff --git a/jcapiv2/spec/configuration_spec.rb b/jcapiv2/spec/configuration_spec.rb index 3c34758..bd77d21 100644 --- a/jcapiv2/spec/configuration_spec.rb +++ b/jcapiv2/spec/configuration_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -17,25 +17,25 @@ before(:each) do # uncomment below to setup host and base_path - # require 'URI' - # uri = URI.parse("https://console.jumpcloud.com/api/v2") - # JCAPIv2.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - # end + #require 'URI' + #uri = URI.parse("https://console.jumpcloud.com/api/v2") + #JCAPIv2.configure do |c| + # c.host = uri.host + # c.base_path = uri.path + #end end describe '#base_url' do it 'should have the default value' do # uncomment below to test default value of the base path - # expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") + #expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") end it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path # uncomment below to test trailing slashes - # expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") + #expect(config.base_url).to eq("https://console.jumpcloud.com/api/v2") end end end diff --git a/jcapiv2/spec/models/active_directory_input_spec.rb b/jcapiv2/spec/models/active_directory_input_spec.rb index 9d4f45e..c36ffc0 100644 --- a/jcapiv2/spec/models/active_directory_input_spec.rb +++ b/jcapiv2/spec/models/active_directory_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/active_directory_output_spec.rb b/jcapiv2/spec/models/active_directory_output_spec.rb index 745c04b..bd2277d 100644 --- a/jcapiv2/spec/models/active_directory_output_spec.rb +++ b/jcapiv2/spec/models/active_directory_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/administrator_spec.rb b/jcapiv2/spec/models/administrator_spec.rb index 18d899e..67b47dc 100644 --- a/jcapiv2/spec/models/administrator_spec.rb +++ b/jcapiv2/spec/models/administrator_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,38 +34,39 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_multi_factor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "registered"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/auth_info_spec.rb b/jcapiv2/spec/models/auth_info_spec.rb index 4c6d532..bad3821 100644 --- a/jcapiv2/spec/models/auth_info_spec.rb +++ b/jcapiv2/spec/models/auth_info_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "expiry"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "is_valid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/auth_input_object_spec.rb b/jcapiv2/spec/models/auth_input_object_spec.rb index b83db3d..f1dfc73 100644 --- a/jcapiv2/spec/models/auth_input_object_spec.rb +++ b/jcapiv2/spec/models/auth_input_object_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "auth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/auth_input_spec.rb b/jcapiv2/spec/models/auth_input_spec.rb index 522b99c..e4fc40a 100644 --- a/jcapiv2/spec/models/auth_input_spec.rb +++ b/jcapiv2/spec/models/auth_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "oauth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "basic"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/authinput_basic_spec.rb b/jcapiv2/spec/models/authinput_basic_spec.rb index 366eba7..b3a6d14 100644 --- a/jcapiv2/spec/models/authinput_basic_spec.rb +++ b/jcapiv2/spec/models/authinput_basic_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/authinput_oauth_spec.rb b/jcapiv2/spec/models/authinput_oauth_spec.rb index 6c0dd05..d5b071e 100644 --- a/jcapiv2/spec/models/authinput_oauth_spec.rb +++ b/jcapiv2/spec/models/authinput_oauth_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/bulk_user_create_spec.rb b/jcapiv2/spec/models/bulk_user_create_spec.rb index 2693ca8..6421b61 100644 --- a/jcapiv2/spec/models/bulk_user_create_spec.rb +++ b/jcapiv2/spec/models/bulk_user_create_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,32 +34,33 @@ end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/bulk_user_update_spec.rb b/jcapiv2/spec/models/bulk_user_update_spec.rb index 4f91b15..b0f3ecd 100644 --- a/jcapiv2/spec/models/bulk_user_update_spec.rb +++ b/jcapiv2/spec/models/bulk_user_update_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,38 +34,39 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/directory_spec.rb b/jcapiv2/spec/models/directory_spec.rb index af0eafd..ed9263c 100644 --- a/jcapiv2/spec/models/directory_spec.rb +++ b/jcapiv2/spec/models/directory_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,24 +34,25 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["g_suite", "ldap_server", "office_365", "workday"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/emailrequest_spec.rb b/jcapiv2/spec/models/emailrequest_spec.rb index b3ef48f..c120321 100644 --- a/jcapiv2/spec/models/emailrequest_spec.rb +++ b/jcapiv2/spec/models/emailrequest_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,12 +34,13 @@ end describe 'test attribute "email_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["activation"]) - # validator.allowable_values.each do |value| - # expect { @instance.email_type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["activation"]) + #validator.allowable_values.each do |value| + # expect { @instance.email_type = value }.not_to raise_error + #end end end end + diff --git a/jcapiv2/spec/models/error_spec.rb b/jcapiv2/spec/models/error_spec.rb index b7c79df..321fd6a 100644 --- a/jcapiv2/spec/models/error_spec.rb +++ b/jcapiv2/spec/models/error_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/errorresponse_spec.rb b/jcapiv2/spec/models/errorresponse_spec.rb index a18ea09..c31a36d 100644 --- a/jcapiv2/spec/models/errorresponse_spec.rb +++ b/jcapiv2/spec/models/errorresponse_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb b/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb index 2113e65..76012e8 100644 --- a/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb +++ b/jcapiv2/spec/models/g_suite_builtin_translation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,3 +33,4 @@ end end end + diff --git a/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb b/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb index 8bd05c9..4203aba 100644 --- a/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb +++ b/jcapiv2/spec/models/g_suite_translation_rule_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/g_suite_translation_rule_spec.rb b/jcapiv2/spec/models/g_suite_translation_rule_spec.rb index 3b0af86..da930ec 100644 --- a/jcapiv2/spec/models/g_suite_translation_rule_spec.rb +++ b/jcapiv2/spec/models/g_suite_translation_rule_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/graph_connection_spec.rb b/jcapiv2/spec/models/graph_connection_spec.rb index 6d4a02f..4348567 100644 --- a/jcapiv2/spec/models/graph_connection_spec.rb +++ b/jcapiv2/spec/models/graph_connection_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/graph_management_req_spec.rb b/jcapiv2/spec/models/graph_management_req_spec.rb index ee67d17..a569857 100644 --- a/jcapiv2/spec/models/graph_management_req_spec.rb +++ b/jcapiv2/spec/models/graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,24 +34,25 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/graph_object_spec.rb b/jcapiv2/spec/models/graph_object_spec.rb index f3d94ae..49d2a97 100644 --- a/jcapiv2/spec/models/graph_object_spec.rb +++ b/jcapiv2/spec/models/graph_object_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/graph_object_with_paths_spec.rb b/jcapiv2/spec/models/graph_object_with_paths_spec.rb index 042c169..2e07cd8 100644 --- a/jcapiv2/spec/models/graph_object_with_paths_spec.rb +++ b/jcapiv2/spec/models/graph_object_with_paths_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "paths"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/graph_type_spec.rb b/jcapiv2/spec/models/graph_type_spec.rb index 1889812..160c6e8 100644 --- a/jcapiv2/spec/models/graph_type_spec.rb +++ b/jcapiv2/spec/models/graph_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,3 +33,4 @@ end end end + diff --git a/jcapiv2/spec/models/group_spec.rb b/jcapiv2/spec/models/group_spec.rb index 8657b6c..f2bedf0 100644 --- a/jcapiv2/spec/models/group_spec.rb +++ b/jcapiv2/spec/models/group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/group_type_spec.rb b/jcapiv2/spec/models/group_type_spec.rb index ccb086a..d0f7222 100644 --- a/jcapiv2/spec/models/group_type_spec.rb +++ b/jcapiv2/spec/models/group_type_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,3 +33,4 @@ end end end + diff --git a/jcapiv2/spec/models/job_details_spec.rb b/jcapiv2/spec/models/job_details_spec.rb index 8a4fcd2..9f42e6d 100644 --- a/jcapiv2/spec/models/job_details_spec.rb +++ b/jcapiv2/spec/models/job_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,50 +34,51 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "admin_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "work_units_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "meta"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "persisted_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/job_id_spec.rb b/jcapiv2/spec/models/job_id_spec.rb index bb8868e..47b4dba 100644 --- a/jcapiv2/spec/models/job_id_spec.rb +++ b/jcapiv2/spec/models/job_id_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "job_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/job_workresult_spec.rb b/jcapiv2/spec/models/job_workresult_spec.rb index b02b6c9..03d4bdd 100644 --- a/jcapiv2/spec/models/job_workresult_spec.rb +++ b/jcapiv2/spec/models/job_workresult_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "meta"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/ldap_server_input_spec.rb b/jcapiv2/spec/models/ldap_server_input_spec.rb index 9e944fd..92970c9 100644 --- a/jcapiv2/spec/models/ldap_server_input_spec.rb +++ b/jcapiv2/spec/models/ldap_server_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/ldap_server_output_spec.rb b/jcapiv2/spec/models/ldap_server_output_spec.rb index 719dc59..21b74c4 100644 --- a/jcapiv2/spec/models/ldap_server_output_spec.rb +++ b/jcapiv2/spec/models/ldap_server_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/mfa_spec.rb b/jcapiv2/spec/models/mfa_spec.rb index 6ddff71..059c72b 100644 --- a/jcapiv2/spec/models/mfa_spec.rb +++ b/jcapiv2/spec/models/mfa_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "exclusion"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exclusion_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "configured"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/oauth_code_input_spec.rb b/jcapiv2/spec/models/oauth_code_input_spec.rb index ba58ee0..68196f6 100644 --- a/jcapiv2/spec/models/oauth_code_input_spec.rb +++ b/jcapiv2/spec/models/oauth_code_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/office365_builtin_translation_spec.rb b/jcapiv2/spec/models/office365_builtin_translation_spec.rb index d4faed1..f242a84 100644 --- a/jcapiv2/spec/models/office365_builtin_translation_spec.rb +++ b/jcapiv2/spec/models/office365_builtin_translation_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -33,3 +33,4 @@ end end end + diff --git a/jcapiv2/spec/models/office365_translation_rule_request_spec.rb b/jcapiv2/spec/models/office365_translation_rule_request_spec.rb index 0d9113d..75dad8b 100644 --- a/jcapiv2/spec/models/office365_translation_rule_request_spec.rb +++ b/jcapiv2/spec/models/office365_translation_rule_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/office365_translation_rule_spec.rb b/jcapiv2/spec/models/office365_translation_rule_spec.rb index 0b56a06..3ff4f99 100644 --- a/jcapiv2/spec/models/office365_translation_rule_spec.rb +++ b/jcapiv2/spec/models/office365_translation_rule_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "built_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_request_spec.rb b/jcapiv2/spec/models/policy_request_spec.rb index b9211fb..2e6cd57 100644 --- a/jcapiv2/spec/models/policy_request_spec.rb +++ b/jcapiv2/spec/models/policy_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "values"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_request_template_spec.rb b/jcapiv2/spec/models/policy_request_template_spec.rb index e7b426d..3e90d4a 100644 --- a/jcapiv2/spec/models/policy_request_template_spec.rb +++ b/jcapiv2/spec/models/policy_request_template_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_result_spec.rb b/jcapiv2/spec/models/policy_result_spec.rb index acedf96..c3dd2ce 100644 --- a/jcapiv2/spec/models/policy_result_spec.rb +++ b/jcapiv2/spec/models/policy_result_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,68 +34,69 @@ end describe 'test attribute "policy_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "system_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "started_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ended_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "success"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "exit_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "std_err"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "std_out"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "detail"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_spec.rb b/jcapiv2/spec/models/policy_spec.rb index e8187db..9d259a9 100644 --- a/jcapiv2/spec/models/policy_spec.rb +++ b/jcapiv2/spec/models/policy_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_template_config_field_spec.rb b/jcapiv2/spec/models/policy_template_config_field_spec.rb index 458f0b9..fd8cf12 100644 --- a/jcapiv2/spec/models/policy_template_config_field_spec.rb +++ b/jcapiv2/spec/models/policy_template_config_field_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,54 +34,55 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) - # validator.allowable_values.each do |value| - # expect { @instance.display_type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["checkbox", "date", "email", "number", "select", "text", "textarea"]) + #validator.allowable_values.each do |value| + # expect { @instance.display_type = value }.not_to raise_error + #end end end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "position"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "read_only"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tooltip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb b/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb index 6ef3575..708550d 100644 --- a/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb +++ b/jcapiv2/spec/models/policy_template_config_field_tooltip_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "variables"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb b/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb index dc7bc35..4278de2 100644 --- a/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb +++ b/jcapiv2/spec/models/policy_template_config_field_tooltip_variables_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "icon"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_template_spec.rb b/jcapiv2/spec/models/policy_template_spec.rb index 4dcb0a5..8a0a404 100644 --- a/jcapiv2/spec/models/policy_template_spec.rb +++ b/jcapiv2/spec/models/policy_template_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,54 +34,55 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "os_meta_family"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) - # validator.allowable_values.each do |value| - # expect { @instance.os_meta_family = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + #validator.allowable_values.each do |value| + # expect { @instance.os_meta_family = value }.not_to raise_error + #end end end describe 'test attribute "activation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "behavior"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_template_with_details_spec.rb b/jcapiv2/spec/models/policy_template_with_details_spec.rb index c541ae9..753151a 100644 --- a/jcapiv2/spec/models/policy_template_with_details_spec.rb +++ b/jcapiv2/spec/models/policy_template_with_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,54 +34,55 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "os_meta_family"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) - # validator.allowable_values.each do |value| - # expect { @instance.os_meta_family = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["linux", "darwin", "windows"]) + #validator.allowable_values.each do |value| + # expect { @instance.os_meta_family = value }.not_to raise_error + #end end end describe 'test attribute "config_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "behavior"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_value_spec.rb b/jcapiv2/spec/models/policy_value_spec.rb index ede49e4..ad517b7 100644 --- a/jcapiv2/spec/models/policy_value_spec.rb +++ b/jcapiv2/spec/models/policy_value_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "config_field_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/policy_with_details_spec.rb b/jcapiv2/spec/models/policy_with_details_spec.rb index 310b6bf..758c5cd 100644 --- a/jcapiv2/spec/models/policy_with_details_spec.rb +++ b/jcapiv2/spec/models/policy_with_details_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,32 +34,33 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "template"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "config_fields"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "values"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/samba_domain_input_spec.rb b/jcapiv2/spec/models/samba_domain_input_spec.rb index 5902a09..5d70048 100644 --- a/jcapiv2/spec/models/samba_domain_input_spec.rb +++ b/jcapiv2/spec/models/samba_domain_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/samba_domain_output_spec.rb b/jcapiv2/spec/models/samba_domain_output_spec.rb index 839c406..e987d9e 100644 --- a/jcapiv2/spec/models/samba_domain_output_spec.rb +++ b/jcapiv2/spec/models/samba_domain_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/sshkeylist_spec.rb b/jcapiv2/spec/models/sshkeylist_spec.rb index a02c317..bc02d39 100644 --- a/jcapiv2/spec/models/sshkeylist_spec.rb +++ b/jcapiv2/spec/models/sshkeylist_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,26 +34,27 @@ end describe 'test attribute "create_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb b/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb index 0e6a3a9..a63291c 100644 --- a/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb +++ b/jcapiv2/spec/models/system_graph_management_req_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb b/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb index 8d1635e..756b114 100644 --- a/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb +++ b/jcapiv2/spec/models/system_graph_management_req_attributes_sudo_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "without_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_graph_management_req_spec.rb b/jcapiv2/spec/models/system_graph_management_req_spec.rb index 1290ae4..86a47e1 100644 --- a/jcapiv2/spec/models/system_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/system_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,34 +34,35 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_group_data_spec.rb b/jcapiv2/spec/models/system_group_data_spec.rb index 0ed81a0..c39cde7 100644 --- a/jcapiv2/spec/models/system_group_data_spec.rb +++ b/jcapiv2/spec/models/system_group_data_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_group_graph_management_req_spec.rb b/jcapiv2/spec/models/system_group_graph_management_req_spec.rb index f5564e2..e8aa31e 100644 --- a/jcapiv2/spec/models/system_group_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/system_group_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,28 +34,29 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "user", "user_group"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_group_members_req_spec.rb b/jcapiv2/spec/models/system_group_members_req_spec.rb index 927b80a..39454e1 100644 --- a/jcapiv2/spec/models/system_group_members_req_spec.rb +++ b/jcapiv2/spec/models/system_group_members_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,28 +34,29 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/system_group_spec.rb b/jcapiv2/spec/models/system_group_spec.rb index 4a7fc48..dd1a2f7 100644 --- a/jcapiv2/spec/models/system_group_spec.rb +++ b/jcapiv2/spec/models/system_group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,24 +34,25 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_group"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_group"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/systemfdekey_spec.rb b/jcapiv2/spec/models/systemfdekey_spec.rb index fbcfa1b..934e50f 100644 --- a/jcapiv2/spec/models/systemfdekey_spec.rb +++ b/jcapiv2/spec/models/systemfdekey_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/systemuser_spec.rb b/jcapiv2/spec/models/systemuser_spec.rb index 4bdeb81..fd34a08 100644 --- a/jcapiv2/spec/models/systemuser_spec.rb +++ b/jcapiv2/spec/models/systemuser_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,242 +34,243 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ssh_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expired"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "associated_tag_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_expiration_date"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "created"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb b/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb index 662a6d2..93dd3d0 100644 --- a/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_addresses_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,50 +34,51 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "po_box"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "extended_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "street_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "locality"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "region"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "postal_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb b/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb index e04e6b6..5c569c3 100644 --- a/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_phone_numbers_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/systemuserputpost_spec.rb b/jcapiv2/spec/models/systemuserputpost_spec.rb index a281b8d..706cca3 100644 --- a/jcapiv2/spec/models/systemuserputpost_spec.rb +++ b/jcapiv2/spec/models/systemuserputpost_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,224 +34,225 @@ end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "allow_public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_managed_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_uid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "unix_guid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "activated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "tags"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "account_locked"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "passwordless_sudo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "externally_managed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_dn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "external_source_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "firstname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "lastname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "ldap_binding_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "enable_user_portal_multifactor"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_service_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "job_title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "department"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "phone_numbers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "relationships"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "password_never_expires"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "middlename"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "cost_center"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "company"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "employee_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "mfa"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_graph_management_req_spec.rb b/jcapiv2/spec/models/user_graph_management_req_spec.rb index 15d8939..93e73e1 100644 --- a/jcapiv2/spec/models/user_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/user_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,34 +34,35 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_graph_management_req_spec.rb b/jcapiv2/spec/models/user_group_graph_management_req_spec.rb index 82d8e66..7922a62 100644 --- a/jcapiv2/spec/models/user_group_graph_management_req_spec.rb +++ b/jcapiv2/spec/models/user_group_graph_management_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,28 +34,29 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "update"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active_directory", "application", "command", "g_suite", "ldap_server", "office_365", "policy", "radius_server", "system", "system_group"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_members_req_spec.rb b/jcapiv2/spec/models/user_group_members_req_spec.rb index 614b0f1..8423755 100644 --- a/jcapiv2/spec/models/user_group_members_req_spec.rb +++ b/jcapiv2/spec/models/user_group_members_req_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,28 +34,29 @@ end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) - # validator.allowable_values.each do |value| - # expect { @instance.op = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove"]) + #validator.allowable_values.each do |value| + # expect { @instance.op = value }.not_to raise_error + #end end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb b/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb index ddc93cb..08305da 100644 --- a/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb +++ b/jcapiv2/spec/models/user_group_post_attributes_posix_groups_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_post_attributes_spec.rb b/jcapiv2/spec/models/user_group_post_attributes_spec.rb index 1e74353..225918c 100644 --- a/jcapiv2/spec/models/user_group_post_attributes_spec.rb +++ b/jcapiv2/spec/models/user_group_post_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "posix_groups"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "samba_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_post_spec.rb b/jcapiv2/spec/models/user_group_post_spec.rb index 181d472..b8f1122 100644 --- a/jcapiv2/spec/models/user_group_post_spec.rb +++ b/jcapiv2/spec/models/user_group_post_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_put_attributes_spec.rb b/jcapiv2/spec/models/user_group_put_attributes_spec.rb index 9b65f80..cb179f6 100644 --- a/jcapiv2/spec/models/user_group_put_attributes_spec.rb +++ b/jcapiv2/spec/models/user_group_put_attributes_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,8 +34,9 @@ end describe 'test attribute "samba_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_put_spec.rb b/jcapiv2/spec/models/user_group_put_spec.rb index a7cd4f1..a409804 100644 --- a/jcapiv2/spec/models/user_group_put_spec.rb +++ b/jcapiv2/spec/models/user_group_put_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/user_group_spec.rb b/jcapiv2/spec/models/user_group_spec.rb index 9666339..9afdaa7 100644 --- a/jcapiv2/spec/models/user_group_spec.rb +++ b/jcapiv2/spec/models/user_group_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,24 +34,25 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user_group"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["user_group"]) + #validator.allowable_values.each do |value| + # expect { @instance.type = value }.not_to raise_error + #end end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/workday_fields_spec.rb b/jcapiv2/spec/models/workday_fields_spec.rb index ac7cc4c..a2add16 100644 --- a/jcapiv2/spec/models/workday_fields_spec.rb +++ b/jcapiv2/spec/models/workday_fields_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "report_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/workday_input_spec.rb b/jcapiv2/spec/models/workday_input_spec.rb index 54e7fd3..2702758 100644 --- a/jcapiv2/spec/models/workday_input_spec.rb +++ b/jcapiv2/spec/models/workday_input_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,20 +34,21 @@ end describe 'test attribute "report_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "auth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/workday_output_spec.rb b/jcapiv2/spec/models/workday_output_spec.rb index ba696d2..f8009cd 100644 --- a/jcapiv2/spec/models/workday_output_spec.rb +++ b/jcapiv2/spec/models/workday_output_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,32 +34,33 @@ end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "report_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_import"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "auth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/workday_request_spec.rb b/jcapiv2/spec/models/workday_request_spec.rb index 83be233..9e78bdf 100644 --- a/jcapiv2/spec/models/workday_request_spec.rb +++ b/jcapiv2/spec/models/workday_request_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "object_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/workday_worker_spec.rb b/jcapiv2/spec/models/workday_worker_spec.rb index 7f014c6..0e67cc7 100644 --- a/jcapiv2/spec/models/workday_worker_spec.rb +++ b/jcapiv2/spec/models/workday_worker_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,32 +34,33 @@ end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "first_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "last_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/models/workdayoutput_auth_spec.rb b/jcapiv2/spec/models/workdayoutput_auth_spec.rb index c9d10df..0774e14 100644 --- a/jcapiv2/spec/models/workdayoutput_auth_spec.rb +++ b/jcapiv2/spec/models/workdayoutput_auth_spec.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end @@ -34,14 +34,15 @@ end describe 'test attribute "basic"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end describe 'test attribute "oauth"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end + diff --git a/jcapiv2/spec/spec_helper.rb b/jcapiv2/spec/spec_helper.rb index 3318310..38b718d 100644 --- a/jcapiv2/spec/spec_helper.rb +++ b/jcapiv2/spec/spec_helper.rb @@ -6,7 +6,7 @@ OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.2 +Swagger Codegen version: 2.3.1 =end From 05580869722f3ede95b89a027ebed4d2b2bcd457 Mon Sep 17 00:00:00 2001 From: Jon Casey Date: Fri, 22 Feb 2019 12:48:16 -0700 Subject: [PATCH 5/6] update version number to match tag --- config_v1.json | 2 +- config_v2.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config_v1.json b/config_v1.json index cce6b8a..bfc216f 100644 --- a/config_v1.json +++ b/config_v1.json @@ -1,5 +1,5 @@ { "gemName": "jcapiv1", "moduleName": "JCAPIv1", - "gemVersion": "1.4.0" + "gemVersion": "2.1.0" } diff --git a/config_v2.json b/config_v2.json index 1f4bc87..0994446 100644 --- a/config_v2.json +++ b/config_v2.json @@ -1,5 +1,5 @@ { "gemName": "jcapiv2", "moduleName": "JCAPIv2", - "gemVersion": "1.4.0" + "gemVersion": "2.1.0" } From 3d345c64e00afc19b51f79fced3640a485eb5299 Mon Sep 17 00:00:00 2001 From: Jon Casey Date: Fri, 22 Feb 2019 14:04:37 -0700 Subject: [PATCH 6/6] regenerate with proper version number --- jcapiv1/README.md | 8 ++++---- jcapiv1/lib/jcapiv1/version.rb | 2 +- jcapiv2/README.md | 8 ++++---- jcapiv2/lib/jcapiv2/version.rb | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/jcapiv1/README.md b/jcapiv1/README.md index 6131bb6..24f2a37 100644 --- a/jcapiv1/README.md +++ b/jcapiv1/README.md @@ -7,7 +7,7 @@ JCAPIv1 - the Ruby gem for the JumpCloud APIs This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 1.0 -- Package version: 1.4.0 +- Package version: 2.1.0 - Build package: io.swagger.codegen.languages.RubyClientCodegen ## Installation @@ -23,15 +23,15 @@ gem build jcapiv1.gemspec Then either install the gem locally: ```shell -gem install ./jcapiv1-1.4.0.gem +gem install ./jcapiv1-2.1.0.gem ``` -(for development, run `gem install --dev ./jcapiv1-1.4.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./jcapiv1-2.1.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'jcapiv1', '~> 1.4.0' + gem 'jcapiv1', '~> 2.1.0' ### Install from Git diff --git a/jcapiv1/lib/jcapiv1/version.rb b/jcapiv1/lib/jcapiv1/version.rb index 7987a08..2af2101 100644 --- a/jcapiv1/lib/jcapiv1/version.rb +++ b/jcapiv1/lib/jcapiv1/version.rb @@ -11,5 +11,5 @@ =end module JCAPIv1 - VERSION = "1.4.0" + VERSION = "2.1.0" end diff --git a/jcapiv2/README.md b/jcapiv2/README.md index e14ea9c..676a934 100644 --- a/jcapiv2/README.md +++ b/jcapiv2/README.md @@ -7,7 +7,7 @@ JCAPIv2 - the Ruby gem for the JumpCloud APIs This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 2.0 -- Package version: 1.4.0 +- Package version: 2.1.0 - Build package: io.swagger.codegen.languages.RubyClientCodegen ## Installation @@ -23,15 +23,15 @@ gem build jcapiv2.gemspec Then either install the gem locally: ```shell -gem install ./jcapiv2-1.4.0.gem +gem install ./jcapiv2-2.1.0.gem ``` -(for development, run `gem install --dev ./jcapiv2-1.4.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./jcapiv2-2.1.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'jcapiv2', '~> 1.4.0' + gem 'jcapiv2', '~> 2.1.0' ### Install from Git diff --git a/jcapiv2/lib/jcapiv2/version.rb b/jcapiv2/lib/jcapiv2/version.rb index 5dcafff..e8586e9 100644 --- a/jcapiv2/lib/jcapiv2/version.rb +++ b/jcapiv2/lib/jcapiv2/version.rb @@ -11,5 +11,5 @@ =end module JCAPIv2 - VERSION = "1.4.0" + VERSION = "2.1.0" end