authress-sdk 2.0.36.0 → 2.0.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/authress-sdk/api/access_records_api.rb +6 -6
- data/lib/authress-sdk/api/accounts_api.rb +9 -9
- data/lib/authress-sdk/api/metadata_api.rb +6 -6
- data/lib/authress-sdk/api/resource_permissions_api.rb +9 -9
- data/lib/authress-sdk/api/roles_api.rb +9 -9
- data/lib/authress-sdk/api/service_clients_api.rb +15 -15
- data/lib/authress-sdk/api/user_permissions_api.rb +9 -9
- data/lib/authress-sdk/api/users_api.rb +134 -0
- data/lib/authress-sdk/models/{permission_response.rb → permission_collection.rb} +3 -3
- data/lib/authress-sdk/models/{v1resourcesresource_uri_permissions.rb → user_identity.rb} +40 -38
- data/lib/authress-sdk/models/{inline_response_200_6.rb → user_identity_collection.rb} +5 -5
- metadata +6 -28
- data/lib/authress-sdk/models/inline_response_200.rb +0 -240
- data/lib/authress-sdk/models/inline_response_200_1.rb +0 -229
- data/lib/authress-sdk/models/inline_response_200_10.rb +0 -248
- data/lib/authress-sdk/models/inline_response_200_11.rb +0 -204
- data/lib/authress-sdk/models/inline_response_200_12.rb +0 -206
- data/lib/authress-sdk/models/inline_response_200_13.rb +0 -222
- data/lib/authress-sdk/models/inline_response_200_14.rb +0 -239
- data/lib/authress-sdk/models/inline_response_200_15.rb +0 -235
- data/lib/authress-sdk/models/inline_response_200_2.rb +0 -231
- data/lib/authress-sdk/models/inline_response_200_3.rb +0 -253
- data/lib/authress-sdk/models/inline_response_200_4.rb +0 -221
- data/lib/authress-sdk/models/inline_response_200_5.rb +0 -206
- data/lib/authress-sdk/models/inline_response_200_7.rb +0 -222
- data/lib/authress-sdk/models/inline_response_200_9.rb +0 -261
- data/lib/authress-sdk/models/v1clients_options.rb +0 -211
- data/lib/authress-sdk/models/v1records_account.rb +0 -204
- data/lib/authress-sdk/models/v1records_links.rb +0 -204
- data/lib/authress-sdk/models/v1records_links_self.rb +0 -216
- data/lib/authress-sdk/models/v1records_users.rb +0 -205
- data/lib/authress-sdk/models/v1roles_permissions.rb +0 -251
- data/lib/authress-sdk/models/v1usersuser_idresourcesresource_urimetadata_account.rb +0 -199
- data/lib/authress-sdk/models/v1usersuser_idtokens_resources.rb +0 -205
- data/lib/authress-sdk/models/v1usersuser_idtokens_statements.rb +0 -222
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af749c52bd76e5debb79a90f0d47ac20aca712b715262db6afd3db62dbe83444
|
4
|
+
data.tar.gz: b85b441f41685942439e5adcc8ec3359c2513c70671c8fb2d366c4c37b75d4a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ea56948469b0b98397c05ff8819b2aa342717194b08dcaef61172259bb4e41494445d055e90eec07191eb55d71c6b3759c9fb9b913fa1504452fa1432b0d52d
|
7
|
+
data.tar.gz: ceda5efaf09b495db2fd8247d214040880f1de279c1c32b46427e46777a9f6b63fd4461ec989e0873e861bef807cb73dd767112955d30f5bd9407b67d6402869
|
@@ -352,7 +352,7 @@ module AuthressSdk
|
|
352
352
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
353
353
|
# @option opts [String] :filter Filter to search records by. This is a case insensitive search through every text field.
|
354
354
|
# @option opts [String] :status Filter records by their current status.
|
355
|
-
# @return [
|
355
|
+
# @return [AccessRecordCollection]
|
356
356
|
def get_records(opts = {})
|
357
357
|
data, _status_code, _headers = get_records_with_http_info(opts)
|
358
358
|
data
|
@@ -365,7 +365,7 @@ module AuthressSdk
|
|
365
365
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
366
366
|
# @option opts [String] :filter Filter to search records by. This is a case insensitive search through every text field.
|
367
367
|
# @option opts [String] :status Filter records by their current status.
|
368
|
-
# @return [Array<(
|
368
|
+
# @return [Array<(AccessRecordCollection, Integer, Hash)>] AccessRecordCollection data, response status code and response headers
|
369
369
|
def get_records_with_http_info(opts = {})
|
370
370
|
if @authress_client.config[:debugging]
|
371
371
|
@authress_client.config[:logger].debug 'Calling API: AccessRecordsApi.get_records ...'
|
@@ -394,7 +394,7 @@ module AuthressSdk
|
|
394
394
|
# http body (model)
|
395
395
|
post_body = opts[:body]
|
396
396
|
|
397
|
-
return_type = opts[:return_type] || '
|
397
|
+
return_type = opts[:return_type] || 'AccessRecordCollection'
|
398
398
|
|
399
399
|
auth_names = opts[:auth_names] || ['oauth2']
|
400
400
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -414,7 +414,7 @@ module AuthressSdk
|
|
414
414
|
# Accepts an invite by claiming this invite by this user. The user token used for this request will gain the permissions associated with the invite.
|
415
415
|
# @param invite_id The identifier of the invite.
|
416
416
|
# @param [Hash] opts the optional parameters
|
417
|
-
# @return [
|
417
|
+
# @return [Account]
|
418
418
|
def respond_to_invite(invite_id, opts = {})
|
419
419
|
data, _status_code, _headers = respond_to_invite_with_http_info(invite_id, opts)
|
420
420
|
data
|
@@ -424,7 +424,7 @@ module AuthressSdk
|
|
424
424
|
# Accepts an invite by claiming this invite by this user. The user token used for this request will gain the permissions associated with the invite.
|
425
425
|
# @param invite_id The identifier of the invite.
|
426
426
|
# @param [Hash] opts the optional parameters
|
427
|
-
# @return [Array<(
|
427
|
+
# @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
|
428
428
|
def respond_to_invite_with_http_info(invite_id, opts = {})
|
429
429
|
if @authress_client.config[:debugging]
|
430
430
|
@authress_client.config[:logger].debug 'Calling API: AccessRecordsApi.respond_to_invite ...'
|
@@ -450,7 +450,7 @@ module AuthressSdk
|
|
450
450
|
# http body (model)
|
451
451
|
post_body = opts[:body]
|
452
452
|
|
453
|
-
return_type = opts[:return_type] || '
|
453
|
+
return_type = opts[:return_type] || 'Account'
|
454
454
|
|
455
455
|
auth_names = opts[:auth_names] || ['oauth2']
|
456
456
|
data, status_code, headers = @authress_client.call_api(:PATCH, local_var_path,
|
@@ -13,7 +13,7 @@ module AuthressSdk
|
|
13
13
|
# Includes the original configuration information. <br><span class=\"badge badge-outline-secondary\">READ: Authress:Configuration</span>
|
14
14
|
# @param account_id The unique identifier for the account
|
15
15
|
# @param [Hash] opts the optional parameters
|
16
|
-
# @return [
|
16
|
+
# @return [Account]
|
17
17
|
def get_account(account_id, opts = {})
|
18
18
|
data, _status_code, _headers = get_account_with_http_info(account_id, opts)
|
19
19
|
data
|
@@ -23,7 +23,7 @@ module AuthressSdk
|
|
23
23
|
# Includes the original configuration information. <br><span class=\"badge badge-outline-secondary\">READ: Authress:Configuration</span>
|
24
24
|
# @param account_id The unique identifier for the account
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Array<(
|
26
|
+
# @return [Array<(Account, Integer, Hash)>] Account data, response status code and response headers
|
27
27
|
def get_account_with_http_info(account_id, opts = {})
|
28
28
|
if @authress_client.config[:debugging]
|
29
29
|
@authress_client.config[:logger].debug 'Calling API: AccountsApi.get_account ...'
|
@@ -49,7 +49,7 @@ module AuthressSdk
|
|
49
49
|
# http body (model)
|
50
50
|
post_body = opts[:body]
|
51
51
|
|
52
|
-
return_type = opts[:return_type] || '
|
52
|
+
return_type = opts[:return_type] || 'Account'
|
53
53
|
|
54
54
|
auth_names = opts[:auth_names] || ['oauth2']
|
55
55
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -68,7 +68,7 @@ module AuthressSdk
|
|
68
68
|
# Get all linked identities for this account.
|
69
69
|
# Returns a list of identities linked for this account. <br><span class=\"badge badge-outline-secondary\">READ: Authress:Configuration</span>
|
70
70
|
# @param [Hash] opts the optional parameters
|
71
|
-
# @return [
|
71
|
+
# @return [IdentityCollection]
|
72
72
|
def get_account_identities(opts = {})
|
73
73
|
data, _status_code, _headers = get_account_identities_with_http_info(opts)
|
74
74
|
data
|
@@ -77,7 +77,7 @@ module AuthressSdk
|
|
77
77
|
# Get all linked identities for this account.
|
78
78
|
# Returns a list of identities linked for this account. <br><span class=\"badge badge-outline-secondary\">READ: Authress:Configuration</span>
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
|
-
# @return [Array<(
|
80
|
+
# @return [Array<(IdentityCollection, Integer, Hash)>] IdentityCollection data, response status code and response headers
|
81
81
|
def get_account_identities_with_http_info(opts = {})
|
82
82
|
if @authress_client.config[:debugging]
|
83
83
|
@authress_client.config[:logger].debug 'Calling API: AccountsApi.get_account_identities ...'
|
@@ -99,7 +99,7 @@ module AuthressSdk
|
|
99
99
|
# http body (model)
|
100
100
|
post_body = opts[:body]
|
101
101
|
|
102
|
-
return_type = opts[:return_type] || '
|
102
|
+
return_type = opts[:return_type] || 'IdentityCollection'
|
103
103
|
|
104
104
|
auth_names = opts[:auth_names] || ['oauth2']
|
105
105
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -118,7 +118,7 @@ module AuthressSdk
|
|
118
118
|
# Get all accounts user has access to
|
119
119
|
# Returns a list of accounts that the user has access to. <br><span class=\"badge badge-outline-secondary\">READ: Authress:Configuration</span>
|
120
120
|
# @param [Hash] opts the optional parameters
|
121
|
-
# @return [
|
121
|
+
# @return [AccountCollection]
|
122
122
|
def get_accounts(opts = {})
|
123
123
|
data, _status_code, _headers = get_accounts_with_http_info(opts)
|
124
124
|
data
|
@@ -127,7 +127,7 @@ module AuthressSdk
|
|
127
127
|
# Get all accounts user has access to
|
128
128
|
# Returns a list of accounts that the user has access to. <br><span class=\"badge badge-outline-secondary\">READ: Authress:Configuration</span>
|
129
129
|
# @param [Hash] opts the optional parameters
|
130
|
-
# @return [Array<(
|
130
|
+
# @return [Array<(AccountCollection, Integer, Hash)>] AccountCollection data, response status code and response headers
|
131
131
|
def get_accounts_with_http_info(opts = {})
|
132
132
|
if @authress_client.config[:debugging]
|
133
133
|
@authress_client.config[:logger].debug 'Calling API: AccountsApi.get_accounts ...'
|
@@ -149,7 +149,7 @@ module AuthressSdk
|
|
149
149
|
# http body (model)
|
150
150
|
post_body = opts[:body]
|
151
151
|
|
152
|
-
return_type = opts[:return_type] || '
|
152
|
+
return_type = opts[:return_type] || 'AccountCollection'
|
153
153
|
|
154
154
|
auth_names = opts[:auth_names] || ['oauth2']
|
155
155
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -14,7 +14,7 @@ module AuthressSdk
|
|
14
14
|
# @param user_id The owner of the data.
|
15
15
|
# @param resource_uri The resource the data is attached to.
|
16
16
|
# @param [Hash] opts the optional parameters
|
17
|
-
# @return [
|
17
|
+
# @return [MetadataObject]
|
18
18
|
def get_user_metadata(user_id, resource_uri, opts = {})
|
19
19
|
data, _status_code, _headers = get_user_metadata_with_http_info(user_id, resource_uri, opts)
|
20
20
|
data
|
@@ -25,7 +25,7 @@ module AuthressSdk
|
|
25
25
|
# @param user_id The owner of the data.
|
26
26
|
# @param resource_uri The resource the data is attached to.
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
|
-
# @return [Array<(
|
28
|
+
# @return [Array<(MetadataObject, Integer, Hash)>] MetadataObject data, response status code and response headers
|
29
29
|
def get_user_metadata_with_http_info(user_id, resource_uri, opts = {})
|
30
30
|
if @authress_client.config[:debugging]
|
31
31
|
@authress_client.config[:logger].debug 'Calling API: MetadataApi.get_user_metadata ...'
|
@@ -55,7 +55,7 @@ module AuthressSdk
|
|
55
55
|
# http body (model)
|
56
56
|
post_body = opts[:body]
|
57
57
|
|
58
|
-
return_type = opts[:return_type] || '
|
58
|
+
return_type = opts[:return_type] || 'MetadataObject'
|
59
59
|
|
60
60
|
auth_names = opts[:auth_names] || ['oauth2']
|
61
61
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -77,7 +77,7 @@ module AuthressSdk
|
|
77
77
|
# @param user_id The owner of the data.
|
78
78
|
# @param resource_uri The resource the data is attached to.
|
79
79
|
# @param [Hash] opts the optional parameters
|
80
|
-
# @return [
|
80
|
+
# @return [MetadataObject]
|
81
81
|
def update_user_metadata(body, user_id, resource_uri, opts = {})
|
82
82
|
data, _status_code, _headers = update_user_metadata_with_http_info(body, user_id, resource_uri, opts)
|
83
83
|
data
|
@@ -89,7 +89,7 @@ module AuthressSdk
|
|
89
89
|
# @param user_id The owner of the data.
|
90
90
|
# @param resource_uri The resource the data is attached to.
|
91
91
|
# @param [Hash] opts the optional parameters
|
92
|
-
# @return [Array<(
|
92
|
+
# @return [Array<(MetadataObject, Integer, Hash)>] MetadataObject data, response status code and response headers
|
93
93
|
def update_user_metadata_with_http_info(body, user_id, resource_uri, opts = {})
|
94
94
|
if @authress_client.config[:debugging]
|
95
95
|
@authress_client.config[:logger].debug 'Calling API: MetadataApi.update_user_metadata ...'
|
@@ -125,7 +125,7 @@ module AuthressSdk
|
|
125
125
|
# http body (model)
|
126
126
|
post_body = opts[:body] || @authress_client.object_to_http_body(body)
|
127
127
|
|
128
|
-
return_type = opts[:return_type] || '
|
128
|
+
return_type = opts[:return_type] || 'MetadataObject'
|
129
129
|
|
130
130
|
auth_names = opts[:auth_names] || ['oauth2']
|
131
131
|
data, status_code, headers = @authress_client.call_api(:PUT, local_var_path,
|
@@ -13,7 +13,7 @@ module AuthressSdk
|
|
13
13
|
# Permissions can be set globally at a resource level. This will apply to all users in an account. <br><span class=\"badge badge-outline-secondary\">GRANT *: Authress:ResourcePermissions/{resourceUri}</span>
|
14
14
|
# @param resource_uri The uri path of a resource to validate, must be URL encoded, uri segments are allowed.
|
15
15
|
# @param [Hash] opts the optional parameters
|
16
|
-
# @return [
|
16
|
+
# @return [ResourcePermission]
|
17
17
|
def get_resource_permissions(resource_uri, opts = {})
|
18
18
|
data, _status_code, _headers = get_resource_permissions_with_http_info(resource_uri, opts)
|
19
19
|
data
|
@@ -23,7 +23,7 @@ module AuthressSdk
|
|
23
23
|
# Permissions can be set globally at a resource level. This will apply to all users in an account. <br><span class=\"badge badge-outline-secondary\">GRANT *: Authress:ResourcePermissions/{resourceUri}</span>
|
24
24
|
# @param resource_uri The uri path of a resource to validate, must be URL encoded, uri segments are allowed.
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Array<(
|
26
|
+
# @return [Array<(ResourcePermission, Integer, Hash)>] ResourcePermission data, response status code and response headers
|
27
27
|
def get_resource_permissions_with_http_info(resource_uri, opts = {})
|
28
28
|
if @authress_client.config[:debugging]
|
29
29
|
@authress_client.config[:logger].debug 'Calling API: ResourcePermissionsApi.get_resource_permissions ...'
|
@@ -49,7 +49,7 @@ module AuthressSdk
|
|
49
49
|
# http body (model)
|
50
50
|
post_body = opts[:body]
|
51
51
|
|
52
|
-
return_type = opts[:return_type] || '
|
52
|
+
return_type = opts[:return_type] || 'ResourcePermission'
|
53
53
|
|
54
54
|
auth_names = opts[:auth_names] || ['oauth2']
|
55
55
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -71,7 +71,7 @@ module AuthressSdk
|
|
71
71
|
# @param [Hash] opts the optional parameters
|
72
72
|
# @option opts [Integer] :limit Max number of results to return (default to 20)
|
73
73
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
74
|
-
# @return [
|
74
|
+
# @return [ResourceUsersCollection]
|
75
75
|
def get_resource_users(resource_uri, opts = {})
|
76
76
|
data, _status_code, _headers = get_resource_users_with_http_info(resource_uri, opts)
|
77
77
|
data
|
@@ -83,7 +83,7 @@ module AuthressSdk
|
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @option opts [Integer] :limit Max number of results to return
|
85
85
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
86
|
-
# @return [Array<(
|
86
|
+
# @return [Array<(ResourceUsersCollection, Integer, Hash)>] ResourceUsersCollection data, response status code and response headers
|
87
87
|
def get_resource_users_with_http_info(resource_uri, opts = {})
|
88
88
|
if @authress_client.config[:debugging]
|
89
89
|
@authress_client.config[:logger].debug 'Calling API: ResourcePermissionsApi.get_resource_users ...'
|
@@ -111,7 +111,7 @@ module AuthressSdk
|
|
111
111
|
# http body (model)
|
112
112
|
post_body = opts[:body]
|
113
113
|
|
114
|
-
return_type = opts[:return_type] || '
|
114
|
+
return_type = opts[:return_type] || 'ResourceUsersCollection'
|
115
115
|
|
116
116
|
auth_names = opts[:auth_names] || ['oauth2']
|
117
117
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -130,7 +130,7 @@ module AuthressSdk
|
|
130
130
|
# List resource configurations.
|
131
131
|
# Permissions can be set globally at a resource level. Lists any resources with a globally set resource policy. <br><span class=\"badge badge-outline-secondary\">READ: Authress:ResourcePermissions</span>
|
132
132
|
# @param [Hash] opts the optional parameters
|
133
|
-
# @return [
|
133
|
+
# @return [ResourcePermissionCollection]
|
134
134
|
def get_resources(opts = {})
|
135
135
|
data, _status_code, _headers = get_resources_with_http_info(opts)
|
136
136
|
data
|
@@ -139,7 +139,7 @@ module AuthressSdk
|
|
139
139
|
# List resource configurations.
|
140
140
|
# Permissions can be set globally at a resource level. Lists any resources with a globally set resource policy. <br><span class=\"badge badge-outline-secondary\">READ: Authress:ResourcePermissions</span>
|
141
141
|
# @param [Hash] opts the optional parameters
|
142
|
-
# @return [Array<(
|
142
|
+
# @return [Array<(ResourcePermissionCollection, Integer, Hash)>] ResourcePermissionCollection data, response status code and response headers
|
143
143
|
def get_resources_with_http_info(opts = {})
|
144
144
|
if @authress_client.config[:debugging]
|
145
145
|
@authress_client.config[:logger].debug 'Calling API: ResourcePermissionsApi.get_resources ...'
|
@@ -161,7 +161,7 @@ module AuthressSdk
|
|
161
161
|
# http body (model)
|
162
162
|
post_body = opts[:body]
|
163
163
|
|
164
|
-
return_type = opts[:return_type] || '
|
164
|
+
return_type = opts[:return_type] || 'ResourcePermissionCollection'
|
165
165
|
|
166
166
|
auth_names = opts[:auth_names] || ['oauth2']
|
167
167
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -13,7 +13,7 @@ module AuthressSdk
|
|
13
13
|
# Creates a role with permissions. <br><span class=\"badge badge-outline-secondary\">CREATE: Authress:Roles</span>
|
14
14
|
# @param body
|
15
15
|
# @param [Hash] opts the optional parameters
|
16
|
-
# @return [
|
16
|
+
# @return [Role]
|
17
17
|
def create_role(body, opts = {})
|
18
18
|
data, _status_code, _headers = create_role_with_http_info(body, opts)
|
19
19
|
data
|
@@ -23,7 +23,7 @@ module AuthressSdk
|
|
23
23
|
# Creates a role with permissions. <br><span class=\"badge badge-outline-secondary\">CREATE: Authress:Roles</span>
|
24
24
|
# @param body
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Array<(
|
26
|
+
# @return [Array<(Role, Integer, Hash)>] Role data, response status code and response headers
|
27
27
|
def create_role_with_http_info(body, opts = {})
|
28
28
|
if @authress_client.config[:debugging]
|
29
29
|
@authress_client.config[:logger].debug 'Calling API: RolesApi.create_role ...'
|
@@ -51,7 +51,7 @@ module AuthressSdk
|
|
51
51
|
# http body (model)
|
52
52
|
post_body = opts[:body] || @authress_client.object_to_http_body(body)
|
53
53
|
|
54
|
-
return_type = opts[:return_type] || '
|
54
|
+
return_type = opts[:return_type] || 'Role'
|
55
55
|
|
56
56
|
auth_names = opts[:auth_names] || ['oauth2']
|
57
57
|
data, status_code, headers = @authress_client.call_api(:POST, local_var_path,
|
@@ -125,7 +125,7 @@ module AuthressSdk
|
|
125
125
|
# Roles contain a list of permissions that will be applied to any user or resource <br><span class=\"badge badge-outline-secondary\">READ: Authress:Roles/{roleId}</span>
|
126
126
|
# @param role_id The identifier of the role.
|
127
127
|
# @param [Hash] opts the optional parameters
|
128
|
-
# @return [
|
128
|
+
# @return [Role]
|
129
129
|
def get_role(role_id, opts = {})
|
130
130
|
data, _status_code, _headers = get_role_with_http_info(role_id, opts)
|
131
131
|
data
|
@@ -135,7 +135,7 @@ module AuthressSdk
|
|
135
135
|
# Roles contain a list of permissions that will be applied to any user or resource <br><span class=\"badge badge-outline-secondary\">READ: Authress:Roles/{roleId}</span>
|
136
136
|
# @param role_id The identifier of the role.
|
137
137
|
# @param [Hash] opts the optional parameters
|
138
|
-
# @return [Array<(
|
138
|
+
# @return [Array<(Role, Integer, Hash)>] Role data, response status code and response headers
|
139
139
|
def get_role_with_http_info(role_id, opts = {})
|
140
140
|
if @authress_client.config[:debugging]
|
141
141
|
@authress_client.config[:logger].debug 'Calling API: RolesApi.get_role ...'
|
@@ -161,7 +161,7 @@ module AuthressSdk
|
|
161
161
|
# http body (model)
|
162
162
|
post_body = opts[:body]
|
163
163
|
|
164
|
-
return_type = opts[:return_type] || '
|
164
|
+
return_type = opts[:return_type] || 'Role'
|
165
165
|
|
166
166
|
auth_names = opts[:auth_names] || ['oauth2']
|
167
167
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -182,7 +182,7 @@ module AuthressSdk
|
|
182
182
|
# @param body
|
183
183
|
# @param role_id The identifier of the role.
|
184
184
|
# @param [Hash] opts the optional parameters
|
185
|
-
# @return [
|
185
|
+
# @return [Role]
|
186
186
|
def update_role(body, role_id, opts = {})
|
187
187
|
data, _status_code, _headers = update_role_with_http_info(body, role_id, opts)
|
188
188
|
data
|
@@ -193,7 +193,7 @@ module AuthressSdk
|
|
193
193
|
# @param body
|
194
194
|
# @param role_id The identifier of the role.
|
195
195
|
# @param [Hash] opts the optional parameters
|
196
|
-
# @return [Array<(
|
196
|
+
# @return [Array<(Role, Integer, Hash)>] Role data, response status code and response headers
|
197
197
|
def update_role_with_http_info(body, role_id, opts = {})
|
198
198
|
if @authress_client.config[:debugging]
|
199
199
|
@authress_client.config[:logger].debug 'Calling API: RolesApi.update_role ...'
|
@@ -225,7 +225,7 @@ module AuthressSdk
|
|
225
225
|
# http body (model)
|
226
226
|
post_body = opts[:body] || @authress_client.object_to_http_body(body)
|
227
227
|
|
228
|
-
return_type = opts[:return_type] || '
|
228
|
+
return_type = opts[:return_type] || 'Role'
|
229
229
|
|
230
230
|
auth_names = opts[:auth_names] || ['oauth2']
|
231
231
|
data, status_code, headers = @authress_client.call_api(:PUT, local_var_path,
|
@@ -13,7 +13,7 @@ module AuthressSdk
|
|
13
13
|
# Creates a service client to interact with Authress or any other service on behalf of users. Each client has secret private keys used to authenticate with Authress. To use service clients created through other mechanisms, skip creating a client and create access records with the client identifier. <br><span class=\"badge badge-outline-secondary\">CREATE: Authress:ServiceClients</span> or <span class=\"badge badge-outline-secondary\">RESOURCE CLAIM: Authress:ServiceClients</span>
|
14
14
|
# @param body
|
15
15
|
# @param [Hash] opts the optional parameters
|
16
|
-
# @return [
|
16
|
+
# @return [Client]
|
17
17
|
def create_client(body, opts = {})
|
18
18
|
data, _status_code, _headers = create_client_with_http_info(body, opts)
|
19
19
|
data
|
@@ -23,7 +23,7 @@ module AuthressSdk
|
|
23
23
|
# Creates a service client to interact with Authress or any other service on behalf of users. Each client has secret private keys used to authenticate with Authress. To use service clients created through other mechanisms, skip creating a client and create access records with the client identifier. <br><span class=\"badge badge-outline-secondary\">CREATE: Authress:ServiceClients</span> or <span class=\"badge badge-outline-secondary\">RESOURCE CLAIM: Authress:ServiceClients</span>
|
24
24
|
# @param body
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [Array<(
|
26
|
+
# @return [Array<(Client, Integer, Hash)>] Client data, response status code and response headers
|
27
27
|
def create_client_with_http_info(body, opts = {})
|
28
28
|
if @authress_client.config[:debugging]
|
29
29
|
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.create_client ...'
|
@@ -51,7 +51,7 @@ module AuthressSdk
|
|
51
51
|
# http body (model)
|
52
52
|
post_body = opts[:body] || @authress_client.object_to_http_body(body)
|
53
53
|
|
54
|
-
return_type = opts[:return_type] || '
|
54
|
+
return_type = opts[:return_type] || 'Client'
|
55
55
|
|
56
56
|
auth_names = opts[:auth_names] || ['oauth2']
|
57
57
|
data, status_code, headers = @authress_client.call_api(:POST, local_var_path,
|
@@ -185,7 +185,7 @@ module AuthressSdk
|
|
185
185
|
# Returns all information related to client except for the private access keys. <br><span class=\"badge badge-outline-secondary\">READ: Authress:ServiceClients/{clientId}</span>
|
186
186
|
# @param client_id The unique identifier for the client.
|
187
187
|
# @param [Hash] opts the optional parameters
|
188
|
-
# @return [
|
188
|
+
# @return [Client]
|
189
189
|
def get_client(client_id, opts = {})
|
190
190
|
data, _status_code, _headers = get_client_with_http_info(client_id, opts)
|
191
191
|
data
|
@@ -195,7 +195,7 @@ module AuthressSdk
|
|
195
195
|
# Returns all information related to client except for the private access keys. <br><span class=\"badge badge-outline-secondary\">READ: Authress:ServiceClients/{clientId}</span>
|
196
196
|
# @param client_id The unique identifier for the client.
|
197
197
|
# @param [Hash] opts the optional parameters
|
198
|
-
# @return [Array<(
|
198
|
+
# @return [Array<(Client, Integer, Hash)>] Client data, response status code and response headers
|
199
199
|
def get_client_with_http_info(client_id, opts = {})
|
200
200
|
if @authress_client.config[:debugging]
|
201
201
|
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.get_client ...'
|
@@ -221,7 +221,7 @@ module AuthressSdk
|
|
221
221
|
# http body (model)
|
222
222
|
post_body = opts[:body]
|
223
223
|
|
224
|
-
return_type = opts[:return_type] || '
|
224
|
+
return_type = opts[:return_type] || 'Client'
|
225
225
|
|
226
226
|
auth_names = opts[:auth_names] || ['oauth2']
|
227
227
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -240,7 +240,7 @@ module AuthressSdk
|
|
240
240
|
# Get clients collection.
|
241
241
|
# Returns all clients that the user has access to in the account. <br><span class=\"badge badge-outline-secondary\">READ: Authress:ServiceClients/{clientId}</span>
|
242
242
|
# @param [Hash] opts the optional parameters
|
243
|
-
# @return [
|
243
|
+
# @return [ClientCollection]
|
244
244
|
def get_clients(opts = {})
|
245
245
|
data, _status_code, _headers = get_clients_with_http_info(opts)
|
246
246
|
data
|
@@ -249,7 +249,7 @@ module AuthressSdk
|
|
249
249
|
# Get clients collection.
|
250
250
|
# Returns all clients that the user has access to in the account. <br><span class=\"badge badge-outline-secondary\">READ: Authress:ServiceClients/{clientId}</span>
|
251
251
|
# @param [Hash] opts the optional parameters
|
252
|
-
# @return [Array<(
|
252
|
+
# @return [Array<(ClientCollection, Integer, Hash)>] ClientCollection data, response status code and response headers
|
253
253
|
def get_clients_with_http_info(opts = {})
|
254
254
|
if @authress_client.config[:debugging]
|
255
255
|
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.get_clients ...'
|
@@ -271,7 +271,7 @@ module AuthressSdk
|
|
271
271
|
# http body (model)
|
272
272
|
post_body = opts[:body]
|
273
273
|
|
274
|
-
return_type = opts[:return_type] || '
|
274
|
+
return_type = opts[:return_type] || 'ClientCollection'
|
275
275
|
|
276
276
|
auth_names = opts[:auth_names] || ['oauth2']
|
277
277
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -291,7 +291,7 @@ module AuthressSdk
|
|
291
291
|
# Create a new access key for the client so that a service can authenticate with Authress as that client. Using the client will allow delegation of permission checking of users. <br><span class=\"badge badge-outline-secondary\">UPDATE: Authress:ServiceClients/{clientId}/access-keys</span>
|
292
292
|
# @param client_id The unique identifier of the client.
|
293
293
|
# @param [Hash] opts the optional parameters
|
294
|
-
# @return [
|
294
|
+
# @return [ClientAccessKey]
|
295
295
|
def request_access_key(client_id, opts = {})
|
296
296
|
data, _status_code, _headers = request_access_key_with_http_info(client_id, opts)
|
297
297
|
data
|
@@ -301,7 +301,7 @@ module AuthressSdk
|
|
301
301
|
# Create a new access key for the client so that a service can authenticate with Authress as that client. Using the client will allow delegation of permission checking of users. <br><span class=\"badge badge-outline-secondary\">UPDATE: Authress:ServiceClients/{clientId}/access-keys</span>
|
302
302
|
# @param client_id The unique identifier of the client.
|
303
303
|
# @param [Hash] opts the optional parameters
|
304
|
-
# @return [Array<(
|
304
|
+
# @return [Array<(ClientAccessKey, Integer, Hash)>] ClientAccessKey data, response status code and response headers
|
305
305
|
def request_access_key_with_http_info(client_id, opts = {})
|
306
306
|
if @authress_client.config[:debugging]
|
307
307
|
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.request_access_key ...'
|
@@ -327,7 +327,7 @@ module AuthressSdk
|
|
327
327
|
# http body (model)
|
328
328
|
post_body = opts[:body]
|
329
329
|
|
330
|
-
return_type = opts[:return_type] || '
|
330
|
+
return_type = opts[:return_type] || 'ClientAccessKey'
|
331
331
|
|
332
332
|
auth_names = opts[:auth_names] || ['oauth2']
|
333
333
|
data, status_code, headers = @authress_client.call_api(:POST, local_var_path,
|
@@ -348,7 +348,7 @@ module AuthressSdk
|
|
348
348
|
# @param body
|
349
349
|
# @param client_id The unique identifier for the client.
|
350
350
|
# @param [Hash] opts the optional parameters
|
351
|
-
# @return [
|
351
|
+
# @return [Client]
|
352
352
|
def update_client(body, client_id, opts = {})
|
353
353
|
data, _status_code, _headers = update_client_with_http_info(body, client_id, opts)
|
354
354
|
data
|
@@ -359,7 +359,7 @@ module AuthressSdk
|
|
359
359
|
# @param body
|
360
360
|
# @param client_id The unique identifier for the client.
|
361
361
|
# @param [Hash] opts the optional parameters
|
362
|
-
# @return [Array<(
|
362
|
+
# @return [Array<(Client, Integer, Hash)>] Client data, response status code and response headers
|
363
363
|
def update_client_with_http_info(body, client_id, opts = {})
|
364
364
|
if @authress_client.config[:debugging]
|
365
365
|
@authress_client.config[:logger].debug 'Calling API: ServiceClientsApi.update_client ...'
|
@@ -391,7 +391,7 @@ module AuthressSdk
|
|
391
391
|
# http body (model)
|
392
392
|
post_body = opts[:body] || @authress_client.object_to_http_body(body)
|
393
393
|
|
394
|
-
return_type = opts[:return_type] || '
|
394
|
+
return_type = opts[:return_type] || 'Client'
|
395
395
|
|
396
396
|
auth_names = opts[:auth_names] || ['oauth2']
|
397
397
|
data, status_code, headers = @authress_client.call_api(:PUT, local_var_path,
|
@@ -140,7 +140,7 @@ module AuthressSdk
|
|
140
140
|
# @param user_id The user to check permissions on
|
141
141
|
# @param resource_uri The uri path of a resource to validate, must be URL encoded, uri segments are allowed.
|
142
142
|
# @param [Hash] opts the optional parameters
|
143
|
-
# @return [
|
143
|
+
# @return [PermissionCollection]
|
144
144
|
def get_user_permissions_for_resource(user_id, resource_uri, opts = {})
|
145
145
|
data, _status_code, _headers = get_user_permissions_for_resource_with_http_info(user_id, resource_uri, opts)
|
146
146
|
data
|
@@ -151,7 +151,7 @@ module AuthressSdk
|
|
151
151
|
# @param user_id The user to check permissions on
|
152
152
|
# @param resource_uri The uri path of a resource to validate, must be URL encoded, uri segments are allowed.
|
153
153
|
# @param [Hash] opts the optional parameters
|
154
|
-
# @return [Array<(
|
154
|
+
# @return [Array<(PermissionCollection, Integer, Hash)>] PermissionCollection data, response status code and response headers
|
155
155
|
def get_user_permissions_for_resource_with_http_info(user_id, resource_uri, opts = {})
|
156
156
|
if @authress_client.config[:debugging]
|
157
157
|
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.get_user_permissions_for_resource ...'
|
@@ -181,7 +181,7 @@ module AuthressSdk
|
|
181
181
|
# http body (model)
|
182
182
|
post_body = opts[:body]
|
183
183
|
|
184
|
-
return_type = opts[:return_type] || '
|
184
|
+
return_type = opts[:return_type] || 'PermissionCollection'
|
185
185
|
|
186
186
|
auth_names = opts[:auth_names] || ['oauth2']
|
187
187
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -205,7 +205,7 @@ module AuthressSdk
|
|
205
205
|
# @option opts [String] :permissions Permission to check, '*' and scoped permissions can also be checked here. By default if the user has any permission explicitly to a resource, it will be included in the list.
|
206
206
|
# @option opts [Integer] :limit Max number of results to return (default to 20)
|
207
207
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
208
|
-
# @return [
|
208
|
+
# @return [UserResources]
|
209
209
|
def get_user_resources(user_id, opts = {})
|
210
210
|
data, _status_code, _headers = get_user_resources_with_http_info(user_id, opts)
|
211
211
|
data
|
@@ -219,7 +219,7 @@ module AuthressSdk
|
|
219
219
|
# @option opts [String] :permissions Permission to check, '*' and scoped permissions can also be checked here. By default if the user has any permission explicitly to a resource, it will be included in the list.
|
220
220
|
# @option opts [Integer] :limit Max number of results to return
|
221
221
|
# @option opts [String] :cursor Continuation cursor for paging (will automatically be set)
|
222
|
-
# @return [Array<(
|
222
|
+
# @return [Array<(UserResources, Integer, Hash)>] UserResources data, response status code and response headers
|
223
223
|
def get_user_resources_with_http_info(user_id, opts = {})
|
224
224
|
if @authress_client.config[:debugging]
|
225
225
|
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.get_user_resources ...'
|
@@ -249,7 +249,7 @@ module AuthressSdk
|
|
249
249
|
# http body (model)
|
250
250
|
post_body = opts[:body]
|
251
251
|
|
252
|
-
return_type = opts[:return_type] || '
|
252
|
+
return_type = opts[:return_type] || 'UserResources'
|
253
253
|
|
254
254
|
auth_names = opts[:auth_names] || ['oauth2']
|
255
255
|
data, status_code, headers = @authress_client.call_api(:GET, local_var_path,
|
@@ -270,7 +270,7 @@ module AuthressSdk
|
|
270
270
|
# @param body The contents of the permission to set on the token. Will be used instead of the users or clients full permissions. Cannot include permissions that the user or client do not have.
|
271
271
|
# @param user_id The user to create an impersonation token for.
|
272
272
|
# @param [Hash] opts the optional parameters
|
273
|
-
# @return [
|
273
|
+
# @return [UserToken]
|
274
274
|
def request_user_token(body, user_id, opts = {})
|
275
275
|
data, _status_code, _headers = request_user_token_with_http_info(body, user_id, opts)
|
276
276
|
data
|
@@ -281,7 +281,7 @@ module AuthressSdk
|
|
281
281
|
# @param body The contents of the permission to set on the token. Will be used instead of the users or clients full permissions. Cannot include permissions that the user or client do not have.
|
282
282
|
# @param user_id The user to create an impersonation token for.
|
283
283
|
# @param [Hash] opts the optional parameters
|
284
|
-
# @return [Array<(
|
284
|
+
# @return [Array<(UserToken, Integer, Hash)>] UserToken data, response status code and response headers
|
285
285
|
def request_user_token_with_http_info(body, user_id, opts = {})
|
286
286
|
if @authress_client.config[:debugging]
|
287
287
|
@authress_client.config[:logger].debug 'Calling API: UserPermissionsApi.request_user_token ...'
|
@@ -313,7 +313,7 @@ module AuthressSdk
|
|
313
313
|
# http body (model)
|
314
314
|
post_body = opts[:body] || @authress_client.object_to_http_body(body)
|
315
315
|
|
316
|
-
return_type = opts[:return_type] || '
|
316
|
+
return_type = opts[:return_type] || 'UserToken'
|
317
317
|
|
318
318
|
auth_names = opts[:auth_names] || ['oauth2']
|
319
319
|
data, status_code, headers = @authress_client.call_api(:POST, local_var_path,
|