stage-ruby 0.0.04 → 0.0.05

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 560a6c5af4474f961980b195795265a741824d6a517ca12b4a27a8de015dd512
4
- data.tar.gz: 4c04f092e12f39d8a00e8df00f95d281feabf7e0f74ad4426ecd8d7e36778bf5
3
+ metadata.gz: 8696610434e5ed41407d311b22d95116bdb456d3ae1d7209fa85e9be2f9dc018
4
+ data.tar.gz: 66b05c08547611bffa009dd052d966848e657d84afe1ac7f2cf626fc449984d7
5
5
  SHA512:
6
- metadata.gz: b7b28a3f9e959634955a23c41fc4ef366ac2927d9ac1be2763fc4b8ce8d6e105d4fe9040c6da15001841e4a66ea2f39d3cc83ced2fdd18b12d55cdd067b1999f
7
- data.tar.gz: ab1c989921d086981538f857a237dd9800ba3eff86d8f3d07b6cde9729439135e4bcdc3abd7f3aa872d4379ab1490a69fb1d086777e1af424d513fd89b4a08c2
6
+ metadata.gz: a698a429708f768e06b4fac865f0ac62108f6efd70b0fe2eb032f7a82775424cad8d7ad52677f496da1b9b248e343d6501eeeda595a5a0a9a13bf0facc1c0ae1
7
+ data.tar.gz: b585a11bdfd0412d4123efeea78922a7db86d0cd4e4a6a384dee3304a8afd1dfe1e29b90cb84df28dd39be378aefb7f9b7c0661d29aa1cf031a477418c351145
data/README.md CHANGED
@@ -151,7 +151,7 @@ end
151
151
  | *Stage::StageApi* | [**get_plans**](docs/StageApi.md#get_plans) | **GET** /sdk-api/v1/plans | Gets all plans. |
152
152
  | *Stage::StageApi* | [**has_access**](docs/StageApi.md#has_access) | **GET** /sdk-api/v1/users/{userIdentifier}/features | Checks if a user has access to the identified features. |
153
153
  | *Stage::StageApi* | [**access**](docs/StageApi.md#access) | **POST** /sdk-api/v1/users/{userIdentifier}/features | If the user has access to the features, this marks those features as accessed. |
154
- | *Stage::StageApi* | [**un_access**](docs/StageApi.md#un_access) | **DELETE** /sdk-api/v1/users/{userIdentifier}/features | If the user has access to the features, this un-accesses those features. |
154
+ | *Stage::StageApi* | [**decrement_access_count_or_credit_usage**](docs/StageApi.md#decrement_access_count_or_credit_usage) | **DELETE** /sdk-api/v1/users/{userIdentifier}/features | Either decrements the access count or credits the one usage for each of the accessible features. |
155
155
  | *Stage::StageApi* | [**update_user_plan**](docs/StageApi.md#update_user_plan) | **PUT** /sdk-api/v1/users/{userIdentifier}/plans | Updates a user's plan. |
156
156
 
157
157
  ## 5. Documentation for Models
data/docs/StageApi.md CHANGED
@@ -8,7 +8,7 @@ Method | HTTP request | Description
8
8
  [**create_user**](StageApi.md#create_user) | **POST** /sdk-api/v1/users | Creates a user and assigning it to a pre-defined role.
9
9
  [**get_plans**](StageApi.md#get_plans) | **GET** /sdk-api/v1/plans | Gets all plans.
10
10
  [**has_access**](StageApi.md#has_access) | **GET** /sdk-api/v1/users/{userIdentifier}/features | Checks if a user has access to the identified features.
11
- [**un_access**](StageApi.md#un_access) | **DELETE** /sdk-api/v1/users/{userIdentifier}/features | If the user has access to the features, this un-accesses those features.
11
+ [**decrement_access_count_or_credit_usage**](StageApi.md#decrement_access_count_or_credit_usage) | **DELETE** /sdk-api/v1/users/{userIdentifier}/features | If the user has access to the features, this un-accesses those features.
12
12
  [**update_user_plan**](StageApi.md#update_user_plan) | **PUT** /sdk-api/v1/users/{userIdentifier}/plans | Updates a user's plan.
13
13
 
14
14
  # **access**
@@ -234,8 +234,8 @@ Name | Type | Description | Notes
234
234
 
235
235
 
236
236
 
237
- # **un_access**
238
- > AccessForm un_access(as_credit, identifiers, user_identifier)
237
+ # **decrement_access_count_or_credit_usage**
238
+ > AccessForm decrement_access_count_or_credit_usage(as_credit, identifiers, user_identifier)
239
239
 
240
240
  If the user has access to the features, this un-accesses those features.
241
241
 
@@ -264,10 +264,10 @@ user_identifier = 'user_identifier_example' # String | The identifier of the use
264
264
 
265
265
  begin
266
266
  #If the user has access to the features, this un-accesses those features.
267
- result = api_instance.un_access(as_credit, identifiers, user_identifier)
267
+ result = api_instance.decrement_access_count_or_credit_usage(as_credit, identifiers, user_identifier)
268
268
  p result
269
269
  rescue Stage::ApiError => e
270
- puts "Exception when calling StageApi->un_access: #{e}"
270
+ puts "Exception when calling StageApi->decrement_access_count_or_credit_usage: #{e}"
271
271
  end
272
272
  ```
273
273
 
@@ -279,35 +279,53 @@ module Stage
279
279
  return data, status_code, headers
280
280
  end
281
281
 
282
- # If the user has access to the feature, this un-accesses that features.
282
+ # If the user has access to a feature, this decrements the access count of that feature.
283
283
  # @param user_identifier The identifier of the user who is accessing the feature.
284
284
  # @param feature_identifier The identifier of the feature being accessed.
285
- # @param as_credit When set to true, this un-accessing of a feature is treated as a credit instead of decrementing the access count.
286
285
  # @param [Hash] opts the optional parameters
287
286
  # @return [AccessForm]
288
- def un_access(user_identifier, feature_identifier, as_credit, opts = {})
289
- data, _status_code, _headers = un_access_with_http_info(as_credit, [feature_identifier], user_identifier, opts)
287
+ def decrement_access_count(user_identifier, feature_identifier, opts = {})
288
+ data, _status_code, _headers = un_access_with_http_info(user_identifier, [feature_identifier], false, opts)
290
289
  data
291
290
  end
292
291
 
293
- # If the user has access to the features, this un-accesses those features.
292
+ # If the user has access to the features, this decrements the access counts of those features.
293
+ # @param user_identifier The identifier of the user who is accessing the feature.
294
+ # @param feature_identifiers The identifiers of the features being accessed.
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [AccessForm]
297
+ def decrement_access_count_all(user_identifier, feature_identifiers, as_credit, opts = {})
298
+ data, _status_code, _headers = un_access_with_http_info(user_identifier, feature_identifiers, false, opts)
299
+ data
300
+ end
301
+
302
+ # If the user has access to a feature, this decrements the access count of that feature.
303
+ # @param user_identifier The identifier of the user who is accessing the feature.
304
+ # @param feature_identifier The identifier of the feature being accessed.
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [AccessForm]
307
+ def credit(user_identifier, feature_identifier, as_credit, opts = {})
308
+ data, _status_code, _headers = un_access_with_http_info(user_identifier, [feature_identifier], true, opts)
309
+ data
310
+ end
311
+
312
+ # If the user has access to the features, this decrements the access counts of those features.
294
313
  # @param user_identifier The identifier of the user who is accessing the feature.
295
314
  # @param feature_identifiers The identifiers of the features being accessed.
296
- # @param as_credit When set to true, this un-accessing of a feature is treated as a credit instead of decrementing the access count.
297
315
  # @param [Hash] opts the optional parameters
298
316
  # @return [AccessForm]
299
- def un_access_all(user_identifier, feature_identifiers, as_credit, opts = {})
300
- data, _status_code, _headers = un_access_with_http_info(as_credit, feature_identifiers, user_identifier, opts)
317
+ def credit_all(user_identifier, feature_identifiers, as_credit, opts = {})
318
+ data, _status_code, _headers = un_access_with_http_info(user_identifier, feature_identifiers, true, opts)
301
319
  data
302
320
  end
303
321
 
304
- # If the user has access to the features, this un-accesses those features.
322
+ # Either decrements the access count or credits the one usage for each of the accessible features.
305
323
  # @param as_credit When set to true, this un-accessing of a feature is treated as a credit instead of decrementing the access count.
306
324
  # @param feature_identifiers The identifiers of the features being accessed.
307
325
  # @param user_identifier The identifier of the user who is accessing the feature.
308
326
  # @param [Hash] opts the optional parameters
309
327
  # @return [Array<(AccessForm, Integer, Hash)>] AccessForm data, response status code and response headers
310
- def un_access_with_http_info(user_identifier, feature_identifiers, as_credit, opts = {})
328
+ def decrement_access_count_or_credit_usage_with_http_info(user_identifier, feature_identifiers, as_credit, opts = {})
311
329
  if @api_client.config.debugging
312
330
  @api_client.config.logger.debug 'Calling API: StageApi.un_access ...'
313
331
  end
@@ -10,5 +10,5 @@ Swagger Codegen version: 3.0.33
10
10
  =end
11
11
 
12
12
  module Stage
13
- VERSION = '0.0.04'
13
+ VERSION = '0.0.05'
14
14
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stage-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.04
4
+ version: 0.0.05
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stage Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-21 00:00:00.000000000 Z
11
+ date: 2022-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -128,6 +128,7 @@ files:
128
128
  - spec/spec_helper.rb
129
129
  - stage-ruby-0.0.02.gem
130
130
  - stage-ruby-0.0.03.gem
131
+ - stage-ruby-0.0.04.gem
131
132
  - stage-ruby.gemspec
132
133
  homepage: https://github.com/swagger-api/swagger-codegen
133
134
  licenses: