smplkit 3.0.47 → 3.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45143f97a9697f58ffc237a49e1c56c530d969a08f758acb969ed0d6ecd4c8fa
4
- data.tar.gz: 2d678b90f48d3db9db2b8179af51e47357f96dc7d03d14eb4931e5f74543a7ca
3
+ metadata.gz: 4cb1e0f4a608cd5ade8c399fccc96b62f7d087b51038aa1a36ec74eb22a434bc
4
+ data.tar.gz: b024471ba9cf393fd36d123add01277c8baabb4cd44640905a669c4bc42d68b3
5
5
  SHA512:
6
- metadata.gz: 8be90684fe43d7ac3f61111c64ed98ad686e38028fdccdc28048418c7eda0e26378447417b28d5f6b3e5c4ab1af6c323b98a969244511361a41b4f8834b86a20
7
- data.tar.gz: 4b8e13b2b1a7646910c19cce3542695bdd1fcfd76e5598c27b25b77c166b89f31239af2c2234ce1b57b2f3b6f78a3a4cf7ccf91a5c0845614d8b5a9fb29f7d30
6
+ metadata.gz: 86ab6f3765a4f091dc200ae01f8d902158c88c2f1107ba92d55656c67ec95149507b07885143b381bcdb7ca73ac5ed1f7d4dccc6c7b0798ce5b115db5b4d67c7
7
+ data.tar.gz: 6ba7af7b036be3d9dc15f04e564690aec69e179795d485e4514f6c57aa203bab11255522ea30693aa612e74099fc4d6d490bf7da88985701f1d5a95c0a50af19
@@ -280,10 +280,11 @@ module SmplkitGeneratedClient::App
280
280
  end
281
281
 
282
282
  # List Environments
283
- # List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`).
283
+ # List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`). `filter[managed]` narrows by managed state (`true` or `false`).
284
284
  # @param [Hash] opts the optional parameters
285
285
  # @option opts [String] :filter_search Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
286
286
  # @option opts [String] :filter_classification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
287
+ # @option opts [Boolean] :filter_managed Narrow the result to managed (`true`) or unmanaged (`false`) environments. Omit to return both.
287
288
  # @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'name')
288
289
  # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
289
290
  # @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
@@ -295,10 +296,11 @@ module SmplkitGeneratedClient::App
295
296
  end
296
297
 
297
298
  # List Environments
298
- # List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`).
299
+ # List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`). `filter[managed]` narrows by managed state (`true` or `false`).
299
300
  # @param [Hash] opts the optional parameters
300
301
  # @option opts [String] :filter_search Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
301
302
  # @option opts [String] :filter_classification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
303
+ # @option opts [Boolean] :filter_managed Narrow the result to managed (`true`) or unmanaged (`false`) environments. Omit to return both.
302
304
  # @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`. (default to 'name')
303
305
  # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error. (default to 1)
304
306
  # @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error. (default to 1000)
@@ -319,6 +321,7 @@ module SmplkitGeneratedClient::App
319
321
  query_params = opts[:query_params] || {}
320
322
  query_params[:'filter[search]'] = opts[:'filter_search'] if !opts[:'filter_search'].nil?
321
323
  query_params[:'filter[classification]'] = opts[:'filter_classification'] if !opts[:'filter_classification'].nil?
324
+ query_params[:'filter[managed]'] = opts[:'filter_managed'] if !opts[:'filter_managed'].nil?
322
325
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
323
326
  query_params[:'page[number]'] = opts[:'page_number'] if !opts[:'page_number'].nil?
324
327
  query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
@@ -22,9 +22,12 @@ module SmplkitGeneratedClient::App
22
22
  # Display color used by the console to badge the environment. Accepts any CSS color string.
23
23
  attr_accessor :color
24
24
 
25
- # `STANDARD` for environments the customer explicitly manages; `AD_HOC` for environments auto-created from SDK traffic. Case-insensitive on input.
25
+ # `STANDARD` for environments deliberately created (and shown by default in the environment grid); `AD_HOC` for auto-discovered environments seen in SDK traffic (hidden from the default view). Case-insensitive on input. Independent of the `managed` flag.
26
26
  attr_accessor :classification
27
27
 
28
+ # When `true`, per-environment resource values can be set against this environment and it counts toward the account's managed-environments quota. When `false`, the environment is view-only: existing values are displayed for comparison but no new values can be written. Promotion and demotion flip this boolean via `PUT /api/v1/environments/{id}`; promotion is subject to the quota.
29
+ attr_accessor :managed
30
+
28
31
  # When the environment was created.
29
32
  attr_accessor :created_at
30
33
 
@@ -59,6 +62,7 @@ module SmplkitGeneratedClient::App
59
62
  :'name' => :'name',
60
63
  :'color' => :'color',
61
64
  :'classification' => :'classification',
65
+ :'managed' => :'managed',
62
66
  :'created_at' => :'created_at',
63
67
  :'updated_at' => :'updated_at'
64
68
  }
@@ -80,6 +84,7 @@ module SmplkitGeneratedClient::App
80
84
  :'name' => :'String',
81
85
  :'color' => :'String',
82
86
  :'classification' => :'String',
87
+ :'managed' => :'Boolean',
83
88
  :'created_at' => :'Time',
84
89
  :'updated_at' => :'Time'
85
90
  }
@@ -123,7 +128,13 @@ module SmplkitGeneratedClient::App
123
128
  if attributes.key?(:'classification')
124
129
  self.classification = attributes[:'classification']
125
130
  else
126
- self.classification = 'AD_HOC'
131
+ self.classification = 'STANDARD'
132
+ end
133
+
134
+ if attributes.key?(:'managed')
135
+ self.managed = attributes[:'managed']
136
+ else
137
+ self.managed = false
127
138
  end
128
139
 
129
140
  if attributes.key?(:'created_at')
@@ -209,6 +220,7 @@ module SmplkitGeneratedClient::App
209
220
  name == o.name &&
210
221
  color == o.color &&
211
222
  classification == o.classification &&
223
+ managed == o.managed &&
212
224
  created_at == o.created_at &&
213
225
  updated_at == o.updated_at
214
226
  end
@@ -222,7 +234,7 @@ module SmplkitGeneratedClient::App
222
234
  # Calculates hash code according to all attributes.
223
235
  # @return [Integer] Hash code
224
236
  def hash
225
- [name, color, classification, created_at, updated_at].hash
237
+ [name, color, classification, managed, created_at, updated_at].hash
226
238
  end
227
239
 
228
240
  # Builds the object from hash
@@ -83,10 +83,11 @@ describe 'EnvironmentsApi' do
83
83
 
84
84
  # unit tests for list_environments
85
85
  # List Environments
86
- # List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`).
86
+ # List all environments for the authenticated account. `filter[search]` does a case-insensitive substring match against the environment `key` and `name`. `filter[classification]` narrows the result to one classification (`STANDARD` or `AD_HOC`). `filter[managed]` narrows by managed state (`true` or `false`).
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @option opts [String] :filter_search Case-insensitive substring match against the environment `key` and `name`. An environment is returned if either field contains the search term.
89
89
  # @option opts [String] :filter_classification Narrow the result to environments with the given classification. One of `STANDARD` or `AD_HOC`.
90
+ # @option opts [Boolean] :filter_managed Narrow the result to managed (`true`) or unmanaged (`false`) environments. Omit to return both.
90
91
  # @option opts [String] :sort Field to sort by. Prefix with `-` for descending order. Default: `name`. Allowed values: `created_at`, `-created_at`, `key`, `-key`, `name`, `-name`, `updated_at`, `-updated_at`.
91
92
  # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to `1` when omitted. Must be `>= 1` — requests with a smaller value are rejected with a 400 error.
92
93
  # @option opts [Integer] :page_size Number of items per page. Optional; defaults to `1000` when omitted. Must be between `1` and `1000` inclusive — requests outside that range are rejected with a 400 error.
@@ -49,6 +49,12 @@ describe SmplkitGeneratedClient::App::Environment do
49
49
  end
50
50
  end
51
51
 
52
+ describe 'test attribute "managed"' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
55
+ end
56
+ end
57
+
52
58
  describe 'test attribute "created_at"' do
53
59
  it 'should work' do
54
60
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.47
4
+ version: 3.0.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC