authress-sdk 0.1.20.0 → 1.0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +36 -32
  3. data/lib/authress_sdk.rb +18 -0
  4. data/lib/{swagger_client → authress_sdk}/api/access_records_api.rb +73 -80
  5. data/lib/{swagger_client → authress_sdk}/api/accounts_api.rb +31 -38
  6. data/lib/{swagger_client → authress_sdk}/api/metadata_api.rb +23 -30
  7. data/lib/{swagger_client → authress_sdk}/api/resource_permissions_api.rb +33 -40
  8. data/lib/{swagger_client → authress_sdk}/api/roles_api.rb +36 -43
  9. data/lib/{swagger_client → authress_sdk}/api/service_clients_api.rb +56 -63
  10. data/lib/{swagger_client → authress_sdk}/api/user_permissions_api.rb +44 -51
  11. data/lib/authress_sdk/api_error.rb +50 -0
  12. data/lib/{swagger_client/api_client.rb → authress_sdk/authress_client.rb} +36 -110
  13. data/lib/authress_sdk/constant_token_provider.rb +19 -0
  14. data/lib/{swagger_client → authress_sdk}/models/access_record.rb +4 -11
  15. data/lib/{swagger_client → authress_sdk}/models/access_record_collection.rb +4 -11
  16. data/lib/{swagger_client → authress_sdk}/models/access_record_collection_records.rb +4 -11
  17. data/lib/{swagger_client → authress_sdk}/models/account.rb +4 -11
  18. data/lib/{swagger_client/models/inline_response_200_11.rb → authress_sdk/models/account_collection.rb} +5 -12
  19. data/lib/{swagger_client → authress_sdk}/models/account_collection_accounts.rb +4 -11
  20. data/lib/{swagger_client → authress_sdk}/models/body.rb +4 -11
  21. data/lib/{swagger_client → authress_sdk}/models/body_1.rb +4 -11
  22. data/lib/{swagger_client → authress_sdk}/models/body_10.rb +4 -11
  23. data/lib/{swagger_client → authress_sdk}/models/body_11.rb +4 -11
  24. data/lib/{swagger_client → authress_sdk}/models/body_2.rb +4 -11
  25. data/lib/{swagger_client → authress_sdk}/models/body_3.rb +4 -11
  26. data/lib/{swagger_client → authress_sdk}/models/body_4.rb +4 -11
  27. data/lib/{swagger_client → authress_sdk}/models/body_5.rb +4 -11
  28. data/lib/{swagger_client → authress_sdk}/models/body_6.rb +4 -11
  29. data/lib/{swagger_client → authress_sdk}/models/body_7.rb +4 -11
  30. data/lib/{swagger_client → authress_sdk}/models/body_8.rb +4 -11
  31. data/lib/{swagger_client → authress_sdk}/models/body_9.rb +4 -11
  32. data/lib/{swagger_client → authress_sdk}/models/claim_request.rb +4 -11
  33. data/lib/{swagger_client → authress_sdk}/models/claim_response.rb +4 -11
  34. data/lib/{swagger_client → authress_sdk}/models/client.rb +4 -11
  35. data/lib/{swagger_client → authress_sdk}/models/client_access_key.rb +4 -11
  36. data/lib/{swagger_client → authress_sdk}/models/client_collection.rb +4 -11
  37. data/lib/{swagger_client → authress_sdk}/models/client_collection_clients.rb +4 -11
  38. data/lib/{swagger_client → authress_sdk}/models/identity.rb +4 -11
  39. data/lib/{swagger_client → authress_sdk}/models/identity_collection.rb +4 -11
  40. data/lib/{swagger_client → authress_sdk}/models/identity_collection_identities.rb +4 -11
  41. data/lib/{swagger_client → authress_sdk}/models/identity_request.rb +4 -11
  42. data/lib/{swagger_client → authress_sdk}/models/inline_response_200.rb +4 -11
  43. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_1.rb +4 -11
  44. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_10.rb +4 -11
  45. data/lib/{swagger_client/models/account_collection.rb → authress_sdk/models/inline_response_200_11.rb} +5 -12
  46. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_12.rb +4 -11
  47. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_13.rb +4 -11
  48. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_14.rb +4 -11
  49. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_15.rb +4 -11
  50. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_2.rb +4 -11
  51. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_3.rb +4 -11
  52. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_4.rb +4 -11
  53. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_5.rb +4 -11
  54. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_6.rb +4 -11
  55. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_7.rb +4 -11
  56. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_8.rb +4 -11
  57. data/lib/{swagger_client → authress_sdk}/models/inline_response_200_9.rb +4 -11
  58. data/lib/{swagger_client → authress_sdk}/models/invite.rb +4 -11
  59. data/lib/{swagger_client → authress_sdk}/models/link.rb +4 -11
  60. data/lib/{swagger_client → authress_sdk}/models/metadata_object.rb +4 -11
  61. data/lib/{swagger_client/models/v1roles_permissions.rb → authress_sdk/models/permission_object.rb} +5 -12
  62. data/lib/{swagger_client → authress_sdk}/models/permission_response.rb +4 -11
  63. data/lib/{swagger_client → authress_sdk}/models/resource_permission.rb +4 -11
  64. data/lib/{swagger_client → authress_sdk}/models/resource_permission_collection.rb +4 -11
  65. data/lib/{swagger_client → authress_sdk}/models/resource_permission_collection_links.rb +4 -11
  66. data/lib/{swagger_client → authress_sdk}/models/resource_permission_collection_links_next.rb +4 -11
  67. data/lib/{swagger_client → authress_sdk}/models/resource_permission_collection_resources.rb +4 -11
  68. data/lib/{swagger_client → authress_sdk}/models/resource_users_collection.rb +4 -11
  69. data/lib/{swagger_client → authress_sdk}/models/role.rb +4 -11
  70. data/lib/{swagger_client → authress_sdk}/models/statement.rb +4 -11
  71. data/lib/{swagger_client → authress_sdk}/models/token_request.rb +4 -11
  72. data/lib/{swagger_client → authress_sdk}/models/user.rb +4 -11
  73. data/lib/{swagger_client → authress_sdk}/models/user_resources.rb +4 -11
  74. data/lib/{swagger_client → authress_sdk}/models/user_resources_resources.rb +4 -11
  75. data/lib/{swagger_client → authress_sdk}/models/user_token.rb +4 -11
  76. data/lib/{swagger_client → authress_sdk}/models/user_token_links.rb +4 -11
  77. data/lib/{swagger_client → authress_sdk}/models/user_token_links_self.rb +4 -11
  78. data/lib/{swagger_client → authress_sdk}/models/v1clients_options.rb +4 -11
  79. data/lib/{swagger_client → authress_sdk}/models/v1records_account.rb +4 -11
  80. data/lib/{swagger_client → authress_sdk}/models/v1records_links.rb +4 -11
  81. data/lib/{swagger_client → authress_sdk}/models/v1records_links_self.rb +4 -11
  82. data/lib/{swagger_client → authress_sdk}/models/v1records_users.rb +4 -11
  83. data/lib/{swagger_client → authress_sdk}/models/v1resourcesresource_uri_permissions.rb +4 -11
  84. data/lib/{swagger_client/models/permission_object.rb → authress_sdk/models/v1roles_permissions.rb} +5 -12
  85. data/lib/{swagger_client → authress_sdk}/models/v1usersuser_idresourcesresource_urimetadata_account.rb +4 -11
  86. data/lib/{swagger_client → authress_sdk}/models/v1usersuser_idtokens_resources.rb +4 -11
  87. data/lib/{swagger_client → authress_sdk}/models/v1usersuser_idtokens_statements.rb +4 -11
  88. data/lib/authress_sdk/service_client_token_provider.rb +18 -0
  89. metadata +87 -87
  90. data/lib/swagger_client.rb +0 -30
  91. data/lib/swagger_client/api_error.rb +0 -57
  92. data/lib/swagger_client/configuration.rb +0 -205
  93. data/lib/swagger_client/version.rb +0 -14
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # A collection of users with explicit permission to a resource.
16
9
  class ResourceUsersCollection
17
10
  # A list of users
@@ -45,13 +38,13 @@ module SwaggerClient
45
38
  # @param [Hash] attributes Model attributes in the form of hash
46
39
  def initialize(attributes = {})
47
40
  if (!attributes.is_a?(Hash))
48
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::ResourceUsersCollection` initialize method"
41
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::ResourceUsersCollection` initialize method"
49
42
  end
50
43
 
51
44
  # check to see if the attribute exists and convert string to symbol for hash key
52
45
  attributes = attributes.each_with_object({}) { |(k, v), h|
53
46
  if (!self.class.attribute_map.key?(k.to_sym))
54
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::ResourceUsersCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
47
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::ResourceUsersCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
48
  end
56
49
  h[k.to_sym] = v
57
50
  }
@@ -177,7 +170,7 @@ module SwaggerClient
177
170
  end
178
171
  end
179
172
  else # model
180
- SwaggerClient.const_get(type).build_from_hash(value)
173
+ AuthressSdk.const_get(type).build_from_hash(value)
181
174
  end
182
175
  end
183
176
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # The role which contains a list of permissions.
16
9
  class Role
17
10
  # Unique identifier for the role, can be specified on creation, and used by records to map to permissions.
@@ -56,13 +49,13 @@ module SwaggerClient
56
49
  # @param [Hash] attributes Model attributes in the form of hash
57
50
  def initialize(attributes = {})
58
51
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::Role` initialize method"
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::Role` initialize method"
60
53
  end
61
54
 
62
55
  # check to see if the attribute exists and convert string to symbol for hash key
63
56
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
57
  if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::Role`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::Role`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
59
  end
67
60
  h[k.to_sym] = v
68
61
  }
@@ -203,7 +196,7 @@ module SwaggerClient
203
196
  end
204
197
  end
205
198
  else # model
206
- SwaggerClient.const_get(type).build_from_hash(value)
199
+ AuthressSdk.const_get(type).build_from_hash(value)
207
200
  end
208
201
  end
209
202
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  class Statement
16
9
  attr_accessor :roles
17
10
 
@@ -43,13 +36,13 @@ module SwaggerClient
43
36
  # @param [Hash] attributes Model attributes in the form of hash
44
37
  def initialize(attributes = {})
45
38
  if (!attributes.is_a?(Hash))
46
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::Statement` initialize method"
39
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::Statement` initialize method"
47
40
  end
48
41
 
49
42
  # check to see if the attribute exists and convert string to symbol for hash key
50
43
  attributes = attributes.each_with_object({}) { |(k, v), h|
51
44
  if (!self.class.attribute_map.key?(k.to_sym))
52
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::Statement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
45
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::Statement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
53
46
  end
54
47
  h[k.to_sym] = v
55
48
  }
@@ -177,7 +170,7 @@ module SwaggerClient
177
170
  end
178
171
  end
179
172
  else # model
180
- SwaggerClient.const_get(type).build_from_hash(value)
173
+ AuthressSdk.const_get(type).build_from_hash(value)
181
174
  end
182
175
  end
183
176
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  class TokenRequest
16
9
  # A list of statements which match roles to resources. The token will have all statements apply to it.
17
10
  attr_accessor :statements
@@ -45,13 +38,13 @@ module SwaggerClient
45
38
  # @param [Hash] attributes Model attributes in the form of hash
46
39
  def initialize(attributes = {})
47
40
  if (!attributes.is_a?(Hash))
48
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::TokenRequest` initialize method"
41
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::TokenRequest` initialize method"
49
42
  end
50
43
 
51
44
  # check to see if the attribute exists and convert string to symbol for hash key
52
45
  attributes = attributes.each_with_object({}) { |(k, v), h|
53
46
  if (!self.class.attribute_map.key?(k.to_sym))
54
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::TokenRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
47
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::TokenRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
48
  end
56
49
  h[k.to_sym] = v
57
50
  }
@@ -177,7 +170,7 @@ module SwaggerClient
177
170
  end
178
171
  end
179
172
  else # model
180
- SwaggerClient.const_get(type).build_from_hash(value)
173
+ AuthressSdk.const_get(type).build_from_hash(value)
181
174
  end
182
175
  end
183
176
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # A user object that identifies a user.
16
9
  class User
17
10
  attr_accessor :user_id
@@ -40,13 +33,13 @@ module SwaggerClient
40
33
  # @param [Hash] attributes Model attributes in the form of hash
41
34
  def initialize(attributes = {})
42
35
  if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::User` initialize method"
36
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::User` initialize method"
44
37
  end
45
38
 
46
39
  # check to see if the attribute exists and convert string to symbol for hash key
47
40
  attributes = attributes.each_with_object({}) { |(k, v), h|
48
41
  if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
42
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::User`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
43
  end
51
44
  h[k.to_sym] = v
52
45
  }
@@ -160,7 +153,7 @@ module SwaggerClient
160
153
  end
161
154
  end
162
155
  else # model
163
- SwaggerClient.const_get(type).build_from_hash(value)
156
+ AuthressSdk.const_get(type).build_from_hash(value)
164
157
  end
165
158
  end
166
159
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # A collect of permissions that the user has to a resource.
16
9
  class UserResources
17
10
  attr_accessor :account
@@ -53,13 +46,13 @@ module SwaggerClient
53
46
  # @param [Hash] attributes Model attributes in the form of hash
54
47
  def initialize(attributes = {})
55
48
  if (!attributes.is_a?(Hash))
56
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::UserResources` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::UserResources` initialize method"
57
50
  end
58
51
 
59
52
  # check to see if the attribute exists and convert string to symbol for hash key
60
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
54
  if (!self.class.attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::UserResources`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::UserResources`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
56
  end
64
57
  h[k.to_sym] = v
65
58
  }
@@ -195,7 +188,7 @@ module SwaggerClient
195
188
  end
196
189
  end
197
190
  else # model
198
- SwaggerClient.const_get(type).build_from_hash(value)
191
+ AuthressSdk.const_get(type).build_from_hash(value)
199
192
  end
200
193
  end
201
194
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  class UserResourcesResources
16
9
  # The resourceUri that matches the requested resourceUri that the user has access to.
17
10
  attr_accessor :resource_uri
@@ -40,13 +33,13 @@ module SwaggerClient
40
33
  # @param [Hash] attributes Model attributes in the form of hash
41
34
  def initialize(attributes = {})
42
35
  if (!attributes.is_a?(Hash))
43
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::UserResourcesResources` initialize method"
36
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::UserResourcesResources` initialize method"
44
37
  end
45
38
 
46
39
  # check to see if the attribute exists and convert string to symbol for hash key
47
40
  attributes = attributes.each_with_object({}) { |(k, v), h|
48
41
  if (!self.class.attribute_map.key?(k.to_sym))
49
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::UserResourcesResources`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
42
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::UserResourcesResources`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
43
  end
51
44
  h[k.to_sym] = v
52
45
  }
@@ -155,7 +148,7 @@ module SwaggerClient
155
148
  end
156
149
  end
157
150
  else # model
158
- SwaggerClient.const_get(type).build_from_hash(value)
151
+ AuthressSdk.const_get(type).build_from_hash(value)
159
152
  end
160
153
  end
161
154
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # A JWT token with represents the user.
16
9
  class UserToken
17
10
  attr_accessor :account
@@ -58,13 +51,13 @@ module SwaggerClient
58
51
  # @param [Hash] attributes Model attributes in the form of hash
59
52
  def initialize(attributes = {})
60
53
  if (!attributes.is_a?(Hash))
61
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::UserToken` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::UserToken` initialize method"
62
55
  end
63
56
 
64
57
  # check to see if the attribute exists and convert string to symbol for hash key
65
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
59
  if (!self.class.attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::UserToken`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::UserToken`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
68
61
  end
69
62
  h[k.to_sym] = v
70
63
  }
@@ -208,7 +201,7 @@ module SwaggerClient
208
201
  end
209
202
  end
210
203
  else # model
211
- SwaggerClient.const_get(type).build_from_hash(value)
204
+ AuthressSdk.const_get(type).build_from_hash(value)
212
205
  end
213
206
  end
214
207
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  class UserTokenLinks
16
9
  attr_accessor :_self
17
10
 
@@ -39,13 +32,13 @@ module SwaggerClient
39
32
  # @param [Hash] attributes Model attributes in the form of hash
40
33
  def initialize(attributes = {})
41
34
  if (!attributes.is_a?(Hash))
42
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::UserTokenLinks` initialize method"
35
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::UserTokenLinks` initialize method"
43
36
  end
44
37
 
45
38
  # check to see if the attribute exists and convert string to symbol for hash key
46
39
  attributes = attributes.each_with_object({}) { |(k, v), h|
47
40
  if (!self.class.attribute_map.key?(k.to_sym))
48
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::UserTokenLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
41
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::UserTokenLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
49
42
  end
50
43
  h[k.to_sym] = v
51
44
  }
@@ -159,7 +152,7 @@ module SwaggerClient
159
152
  end
160
153
  end
161
154
  else # model
162
- SwaggerClient.const_get(type).build_from_hash(value)
155
+ AuthressSdk.const_get(type).build_from_hash(value)
163
156
  end
164
157
  end
165
158
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # A self link pointing to this token to be able to disable it or get its current configuration.
16
9
  class UserTokenLinksSelf
17
10
  # The absolute url pointing to the reference resource.
@@ -46,13 +39,13 @@ module SwaggerClient
46
39
  # @param [Hash] attributes Model attributes in the form of hash
47
40
  def initialize(attributes = {})
48
41
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::UserTokenLinksSelf` initialize method"
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::UserTokenLinksSelf` initialize method"
50
43
  end
51
44
 
52
45
  # check to see if the attribute exists and convert string to symbol for hash key
53
46
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
47
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::UserTokenLinksSelf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::UserTokenLinksSelf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
49
  end
57
50
  h[k.to_sym] = v
58
51
  }
@@ -171,7 +164,7 @@ module SwaggerClient
171
164
  end
172
165
  end
173
166
  else # model
174
- SwaggerClient.const_get(type).build_from_hash(value)
167
+ AuthressSdk.const_get(type).build_from_hash(value)
175
168
  end
176
169
  end
177
170
 
@@ -1,17 +1,10 @@
1
1
  =begin
2
- #Authress
3
2
 
4
- #<p> <h2>Authorization</h2> <p>Authorization for Authress is handled one of two different ways. Both mechanisms use oauth2 <i>Bearer</i> tokens.</p> <br> <h4>Identity Provider JWT</h4> <p>Hook up your preferred identity provider directly to Authress. Authress will verify JWTs sourced from that identify provider and allow direct integration with these APIs. Any OIDC JWT provider works, Google, Auth0, Okta, etc... With this mechanism your web app can make direct calls to the permissions API on behalf of your users. <br> <a href=\"https://authress.io/app/#/manage?focus=identity\">Link identity provider</a> </p> <br> <h4>Authress Clients</h4> <p>Regardless of using direct identity provider integration, with the API you can create Authress clients which can call any of the methods on the API. Your users won't be able to directly make API calls, all web app integrations must go through a service which stores the Authress private key. <br> <a href=\"https://authress.io/app/#/manage?focus=clients\">Create Authress service client</a> </p> <br> <h2>Usage</h2> <h4>Billable APIs</h4> <p>Most of the api available is completely free. Use it to populate your roles and configure your account. You'll only be charged for the ones marked as Billable.</p> <p><ul> <li><i class=\"far fa-fw fa-money-bill-alt text-primary\"></i> <span class=\"text-primary\">Billable</span> - <small>These APIs count as calls for your account and will be charged.</small></li> <li><i class=\"fas fa-fw fa-angle-double-right text-secondary\"></i> <span class=\"text-secondary\">Free</span> - <small>These are totally free.</small></li> <li><i class=\"fas fa-fw fa-balance-scale text-secondary\"></i> <span class=\"text-secondary\">Condition</span> - <small>Are conditionally free, see api methods for details.</small></li> </ul></p> <br> <h4>API Access</h4> <p>Access to the following APIs is based on Authress permissions, not the application permissions assigned in Authress to the application services. Each resource is tagged with the required permission <span class=\"badge badge-outline-secondary\">Action: Resource</span> </p>
5
-
6
- OpenAPI spec version: v1
7
- Contact: support@authress.io
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.23
10
3
  =end
11
4
 
12
5
  require 'date'
13
6
 
14
- module SwaggerClient
7
+ module AuthressSdk
15
8
  # A map of client specific options
16
9
  class V1clientsOptions
17
10
  # Grant the client access to verify authorization on behalf of any user.
@@ -46,13 +39,13 @@ module SwaggerClient
46
39
  # @param [Hash] attributes Model attributes in the form of hash
47
40
  def initialize(attributes = {})
48
41
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `SwaggerClient::V1clientsOptions` initialize method"
42
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AuthressSdk::V1clientsOptions` initialize method"
50
43
  end
51
44
 
52
45
  # check to see if the attribute exists and convert string to symbol for hash key
53
46
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
47
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `SwaggerClient::V1clientsOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
48
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AuthressSdk::V1clientsOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
49
  end
57
50
  h[k.to_sym] = v
58
51
  }
@@ -166,7 +159,7 @@ module SwaggerClient
166
159
  end
167
160
  end
168
161
  else # model
169
- SwaggerClient.const_get(type).build_from_hash(value)
162
+ AuthressSdk.const_get(type).build_from_hash(value)
170
163
  end
171
164
  end
172
165