smplkit 3.0.64 → 3.0.66

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/group_memberships_api.rb +295 -0
  3. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/groups_api.rb +366 -0
  4. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/sso_api.rb +461 -0
  5. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group.rb +247 -0
  6. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_create_request.rb +165 -0
  7. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_create_resource.rb +242 -0
  8. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_list_response.rb +193 -0
  9. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership.rb +215 -0
  10. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_list_response.rb +193 -0
  11. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_request.rb +165 -0
  12. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_resource.rb +225 -0
  13. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_response.rb +165 -0
  14. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_request.rb +165 -0
  15. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_resource.rb +225 -0
  16. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_response.rb +165 -0
  17. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation.rb +14 -1
  18. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_create_item.rb +17 -4
  19. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection.rb +445 -0
  20. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_request.rb +165 -0
  21. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_resource.rb +225 -0
  22. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_response.rb +165 -0
  23. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain.rb +228 -0
  24. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_list_response.rb +193 -0
  25. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_request.rb +165 -0
  26. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_resource.rb +225 -0
  27. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_response.rb +165 -0
  28. data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +24 -0
  29. data/lib/smplkit/_generated/app/spec/api/group_memberships_api_spec.rb +88 -0
  30. data/lib/smplkit/_generated/app/spec/api/groups_api_spec.rb +100 -0
  31. data/lib/smplkit/_generated/app/spec/api/sso_api_spec.rb +117 -0
  32. data/lib/smplkit/_generated/app/spec/models/group_create_request_spec.rb +36 -0
  33. data/lib/smplkit/_generated/app/spec/models/group_create_resource_spec.rb +52 -0
  34. data/lib/smplkit/_generated/app/spec/models/group_list_response_spec.rb +42 -0
  35. data/lib/smplkit/_generated/app/spec/models/group_membership_list_response_spec.rb +42 -0
  36. data/lib/smplkit/_generated/app/spec/models/group_membership_request_spec.rb +36 -0
  37. data/lib/smplkit/_generated/app/spec/models/group_membership_resource_spec.rb +52 -0
  38. data/lib/smplkit/_generated/app/spec/models/group_membership_response_spec.rb +36 -0
  39. data/lib/smplkit/_generated/app/spec/models/group_membership_spec.rb +54 -0
  40. data/lib/smplkit/_generated/app/spec/models/group_request_spec.rb +36 -0
  41. data/lib/smplkit/_generated/app/spec/models/group_resource_spec.rb +52 -0
  42. data/lib/smplkit/_generated/app/spec/models/group_response_spec.rb +36 -0
  43. data/lib/smplkit/_generated/app/spec/models/group_spec.rb +66 -0
  44. data/lib/smplkit/_generated/app/spec/models/invitation_create_item_spec.rb +6 -0
  45. data/lib/smplkit/_generated/app/spec/models/invitation_spec.rb +6 -0
  46. data/lib/smplkit/_generated/app/spec/models/sso_connection_request_spec.rb +36 -0
  47. data/lib/smplkit/_generated/app/spec/models/sso_connection_resource_spec.rb +52 -0
  48. data/lib/smplkit/_generated/app/spec/models/sso_connection_response_spec.rb +36 -0
  49. data/lib/smplkit/_generated/app/spec/models/sso_connection_spec.rb +138 -0
  50. data/lib/smplkit/_generated/app/spec/models/sso_domain_list_response_spec.rb +42 -0
  51. data/lib/smplkit/_generated/app/spec/models/sso_domain_request_spec.rb +36 -0
  52. data/lib/smplkit/_generated/app/spec/models/sso_domain_resource_spec.rb +52 -0
  53. data/lib/smplkit/_generated/app/spec/models/sso_domain_response_spec.rb +36 -0
  54. data/lib/smplkit/_generated/app/spec/models/sso_domain_spec.rb +64 -0
  55. metadata +49 -1
@@ -0,0 +1,165 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module SmplkitGeneratedClient::App
17
+ # JSON:API single-resource response envelope for an SSO domain.
18
+ class SSODomainResponse < ApiModelBase
19
+ attr_accessor :data
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'data' => :'data'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'data' => :'SSODomainResource'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SmplkitGeneratedClient::App::SSODomainResponse` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SmplkitGeneratedClient::App::SSODomainResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'data')
68
+ self.data = attributes[:'data']
69
+ else
70
+ self.data = nil
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ if @data.nil?
80
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @data.nil?
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] data Value to be assigned
96
+ def data=(data)
97
+ if data.nil?
98
+ fail ArgumentError, 'data cannot be nil'
99
+ end
100
+
101
+ @data = data
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ data == o.data
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [data].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
+ end
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
+ end
143
+ end
144
+ new(transformed_hash)
145
+ end
146
+
147
+ # Returns the object in the form of hash
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_hash
150
+ hash = {}
151
+ self.class.attribute_map.each_pair do |attr, param|
152
+ value = self.send(attr)
153
+ if value.nil?
154
+ is_nullable = self.class.openapi_nullable.include?(attr)
155
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
156
+ end
157
+
158
+ hash[param] = _to_hash(value)
159
+ end
160
+ hash
161
+ end
162
+
163
+ end
164
+
165
+ end
@@ -70,6 +70,18 @@ require 'smplkit_app_client/models/environment_usage_resource'
70
70
  require 'smplkit_app_client/models/environment_usage_response'
71
71
  require 'smplkit_app_client/models/error'
72
72
  require 'smplkit_app_client/models/error_response'
73
+ require 'smplkit_app_client/models/group'
74
+ require 'smplkit_app_client/models/group_create_request'
75
+ require 'smplkit_app_client/models/group_create_resource'
76
+ require 'smplkit_app_client/models/group_list_response'
77
+ require 'smplkit_app_client/models/group_membership'
78
+ require 'smplkit_app_client/models/group_membership_list_response'
79
+ require 'smplkit_app_client/models/group_membership_request'
80
+ require 'smplkit_app_client/models/group_membership_resource'
81
+ require 'smplkit_app_client/models/group_membership_response'
82
+ require 'smplkit_app_client/models/group_request'
83
+ require 'smplkit_app_client/models/group_resource'
84
+ require 'smplkit_app_client/models/group_response'
73
85
  require 'smplkit_app_client/models/invitation'
74
86
  require 'smplkit_app_client/models/invitation_accept_request'
75
87
  require 'smplkit_app_client/models/invitation_bulk_create_request'
@@ -109,6 +121,15 @@ require 'smplkit_app_client/models/product'
109
121
  require 'smplkit_app_client/models/product_list_response'
110
122
  require 'smplkit_app_client/models/product_resource'
111
123
  require 'smplkit_app_client/models/register_request'
124
+ require 'smplkit_app_client/models/sso_connection'
125
+ require 'smplkit_app_client/models/sso_connection_request'
126
+ require 'smplkit_app_client/models/sso_connection_resource'
127
+ require 'smplkit_app_client/models/sso_connection_response'
128
+ require 'smplkit_app_client/models/sso_domain'
129
+ require 'smplkit_app_client/models/sso_domain_list_response'
130
+ require 'smplkit_app_client/models/sso_domain_request'
131
+ require 'smplkit_app_client/models/sso_domain_resource'
132
+ require 'smplkit_app_client/models/sso_domain_response'
112
133
  require 'smplkit_app_client/models/service'
113
134
  require 'smplkit_app_client/models/service_create_request'
114
135
  require 'smplkit_app_client/models/service_create_resource'
@@ -151,10 +172,13 @@ require 'smplkit_app_client/api/discount_tiers_api'
151
172
  require 'smplkit_app_client/api/email_registrations_api'
152
173
  require 'smplkit_app_client/api/emails_api'
153
174
  require 'smplkit_app_client/api/environments_api'
175
+ require 'smplkit_app_client/api/group_memberships_api'
176
+ require 'smplkit_app_client/api/groups_api'
154
177
  require 'smplkit_app_client/api/invitations_api'
155
178
  require 'smplkit_app_client/api/metrics_api'
156
179
  require 'smplkit_app_client/api/plans_api'
157
180
  require 'smplkit_app_client/api/products_api'
181
+ require 'smplkit_app_client/api/sso_api'
158
182
  require 'smplkit_app_client/api/services_api'
159
183
  require 'smplkit_app_client/api/subscription_api'
160
184
  require 'smplkit_app_client/api/users_api'
@@ -0,0 +1,88 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SmplkitGeneratedClient::App::GroupMembershipsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'GroupMembershipsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = SmplkitGeneratedClient::App::GroupMembershipsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GroupMembershipsApi' do
30
+ it 'should create an instance of GroupMembershipsApi' do
31
+ expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::App::GroupMembershipsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_group_membership
36
+ # Create Group Membership
37
+ # Add a user to a group. The body references the user (UUID) and the group (key) in the resource attributes. Returns &#x60;409&#x60; if this user is already a member of this group, or &#x60;422&#x60; if either the user is not a member of the account or the group does not exist.
38
+ # @param group_membership_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [GroupMembershipResponse]
41
+ describe 'create_group_membership test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for delete_group_membership
48
+ # Delete Group Membership
49
+ # Remove a user from a group. Returns &#x60;409&#x60; when the membership is the user&#39;s &#x60;default&#x60; membership — every user must remain in the &#x60;default&#x60; group per ADR-055 §4.
50
+ # @param id
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'delete_group_membership test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for get_group_membership
60
+ # Get Group Membership
61
+ # Return a single membership by id.
62
+ # @param id
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [GroupMembershipResponse]
65
+ describe 'get_group_membership test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ # unit tests for list_group_memberships
72
+ # List Group Memberships
73
+ # List group memberships in the authenticated account. Pass &#x60;filter[group]&#x60; (a group key) to list members of a single group, or &#x60;filter[user]&#x60; (a UUID) to list a single user&#39;s memberships. The two filters may be combined to look up a specific (user, group) pair.
74
+ # @param [Hash] opts the optional parameters
75
+ # @option opts [String] :filter_group Group key to narrow the result to memberships in that group.
76
+ # @option opts [String] :filter_user User UUID to narrow the result to memberships for that user.
77
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;created_at&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
78
+ # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to &#x60;1&#x60; when omitted. Must be &#x60;&gt;&#x3D; 1&#x60; — requests with a smaller value are rejected with a 400 error.
79
+ # @option opts [Integer] :page_size Number of items per page. Optional; defaults to &#x60;1000&#x60; when omitted. Must be between &#x60;1&#x60; and &#x60;1000&#x60; inclusive — requests outside that range are rejected with a 400 error.
80
+ # @option opts [Boolean] :meta_total When &#x60;true&#x60;, the response&#39;s &#x60;meta.pagination&#x60; block includes &#x60;total&#x60; (the total number of matching items across all pages) and &#x60;total_pages&#x60;. Computing these requires an extra &#x60;COUNT&#x60; query, so omit (or pass &#x60;false&#x60;) when the totals are not needed. Defaults to &#x60;false&#x60;.
81
+ # @return [GroupMembershipListResponse]
82
+ describe 'list_group_memberships test' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
85
+ end
86
+ end
87
+
88
+ end
@@ -0,0 +1,100 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SmplkitGeneratedClient::App::GroupsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'GroupsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = SmplkitGeneratedClient::App::GroupsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GroupsApi' do
30
+ it 'should create an instance of GroupsApi' do
31
+ expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::App::GroupsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_group
36
+ # Create Group
37
+ # Create an Environment Access Group. The caller provides the group id (a snake-case key, unique within the account) in the request body. The id is immutable thereafter. Returns &#x60;409&#x60; if a group with that id already exists, or &#x60;422&#x60; if &#x60;managed_environments&#x60; is not exactly &#x60;[&#39;*&#39;]&#x60; or a subset of the account&#39;s standard environment keys.
38
+ # @param group_create_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [GroupResponse]
41
+ describe 'create_group test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for delete_group
48
+ # Delete Group
49
+ # Delete a group by id. Returns &#x60;409&#x60; for the reserved &#x60;default&#x60; group, which every account requires. Deleting a group also cascades to its memberships.
50
+ # @param id
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'delete_group test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for get_group
60
+ # Get Group
61
+ # Return a group by id.
62
+ # @param id
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [GroupResponse]
65
+ describe 'get_group test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ # unit tests for list_groups
72
+ # List Groups
73
+ # List Environment Access Groups for the authenticated account. &#x60;filter[search]&#x60; does a case-insensitive substring match against the group &#x60;key&#x60; and &#x60;name&#x60;.
74
+ # @param [Hash] opts the optional parameters
75
+ # @option opts [String] :filter_search Case-insensitive substring match against the group &#x60;key&#x60; and &#x60;name&#x60;. A group is returned if either field contains the search term.
76
+ # @option opts [String] :sort Field to sort by. Prefix with &#x60;-&#x60; for descending order. Default: &#x60;name&#x60;. Allowed values: &#x60;created_at&#x60;, &#x60;-created_at&#x60;, &#x60;key&#x60;, &#x60;-key&#x60;, &#x60;name&#x60;, &#x60;-name&#x60;, &#x60;updated_at&#x60;, &#x60;-updated_at&#x60;.
77
+ # @option opts [Integer] :page_number 1-based page number to return. Optional; defaults to &#x60;1&#x60; when omitted. Must be &#x60;&gt;&#x3D; 1&#x60; — requests with a smaller value are rejected with a 400 error.
78
+ # @option opts [Integer] :page_size Number of items per page. Optional; defaults to &#x60;1000&#x60; when omitted. Must be between &#x60;1&#x60; and &#x60;1000&#x60; inclusive — requests outside that range are rejected with a 400 error.
79
+ # @option opts [Boolean] :meta_total When &#x60;true&#x60;, the response&#39;s &#x60;meta.pagination&#x60; block includes &#x60;total&#x60; (the total number of matching items across all pages) and &#x60;total_pages&#x60;. Computing these requires an extra &#x60;COUNT&#x60; query, so omit (or pass &#x60;false&#x60;) when the totals are not needed. Defaults to &#x60;false&#x60;.
80
+ # @return [GroupListResponse]
81
+ describe 'list_groups test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
84
+ end
85
+ end
86
+
87
+ # unit tests for update_group
88
+ # Update Group
89
+ # Update a group&#39;s name, description, and managed environments. Whole-resource semantics — submit every writable attribute. For the reserved &#x60;default&#x60; group, &#x60;managed_environments&#x60; may be changed (this is the lever that narrows the account-wide baseline), but renaming or other identity changes are rejected with &#x60;409&#x60;. Invalid &#x60;managed_environments&#x60; is &#x60;422&#x60;.
90
+ # @param id
91
+ # @param group_request
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [GroupResponse]
94
+ describe 'update_group test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ end
@@ -0,0 +1,117 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SmplkitGeneratedClient::App::SSOApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SSOApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = SmplkitGeneratedClient::App::SSOApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SSOApi' do
30
+ it 'should create an instance of SSOApi' do
31
+ expect(@api_instance).to be_instance_of(SmplkitGeneratedClient::App::SSOApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for claim_sso_domain
36
+ # Claim SSO Domain
37
+ # Claim a domain for SSO routing. Idempotent — re-claiming a domain already held by the account is a no-op success. The response includes the DNS TXT token to publish.
38
+ # @param domain
39
+ # @param sso_domain_request
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [SSODomainResponse]
42
+ describe 'claim_sso_domain test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for delete_sso_connection
49
+ # Delete SSO Connection
50
+ # Soft-delete the account&#39;s SSO connection. Domains are preserved.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'delete_sso_connection test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for get_sso_connection
60
+ # Get SSO Connection
61
+ # Return the SSO connection for the current account, including computed Service Provider metadata. Returns &#x60;404&#x60; when no connection has been configured.
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [SSOConnectionResponse]
64
+ describe 'get_sso_connection test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ end
68
+ end
69
+
70
+ # unit tests for list_sso_domains
71
+ # List SSO Domains
72
+ # List the domains claimed by the current account, including each row&#39;s verification status.
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [SSODomainListResponse]
75
+ describe 'list_sso_domains test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
78
+ end
79
+ end
80
+
81
+ # unit tests for put_sso_connection
82
+ # Create or Replace SSO Connection
83
+ # Create-or-replace the account&#39;s SSO connection. The OIDC &#x60;client_secret&#x60; is write-only; supply it on first creation, omit on subsequent updates to retain the stored value.
84
+ # @param sso_connection_request
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [SSOConnectionResponse]
87
+ describe 'put_sso_connection test' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
90
+ end
91
+ end
92
+
93
+ # unit tests for release_sso_domain
94
+ # Release SSO Domain
95
+ # Release a previously-claimed SSO domain.
96
+ # @param domain
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [nil]
99
+ describe 'release_sso_domain test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
102
+ end
103
+ end
104
+
105
+ # unit tests for verify_sso_domain
106
+ # Verify SSO Domain
107
+ # Run the DNS TXT check for a claimed domain. Returns the updated resource on success. Returns &#x60;409&#x60; if a different account has already verified this domain. Returns &#x60;422&#x60; when the DNS TXT record has not yet been published or does not match the expected token.
108
+ # @param domain
109
+ # @param [Hash] opts the optional parameters
110
+ # @return [SSODomainResponse]
111
+ describe 'verify_sso_domain test' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
114
+ end
115
+ end
116
+
117
+ end
@@ -0,0 +1,36 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::App::GroupCreateRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::App::GroupCreateRequest do
21
+ #let(:instance) { SmplkitGeneratedClient::App::GroupCreateRequest.new }
22
+
23
+ describe 'test an instance of GroupCreateRequest' do
24
+ it 'should create an instance of GroupCreateRequest' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::GroupCreateRequest)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "data"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ end
@@ -0,0 +1,52 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::App::GroupCreateResource
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::App::GroupCreateResource do
21
+ #let(:instance) { SmplkitGeneratedClient::App::GroupCreateResource.new }
22
+
23
+ describe 'test an instance of GroupCreateResource' do
24
+ it 'should create an instance of GroupCreateResource' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::GroupCreateResource)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "id"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "type"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["group"])
40
+ # validator.allowable_values.each do |value|
41
+ # expect { instance.type = value }.not_to raise_error
42
+ # end
43
+ end
44
+ end
45
+
46
+ describe 'test attribute "attributes"' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
49
+ end
50
+ end
51
+
52
+ end
@@ -0,0 +1,42 @@
1
+ =begin
2
+ #smplkit API
3
+
4
+ #API for the smplkit platform.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SmplkitGeneratedClient::App::GroupListResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe SmplkitGeneratedClient::App::GroupListResponse do
21
+ #let(:instance) { SmplkitGeneratedClient::App::GroupListResponse.new }
22
+
23
+ describe 'test an instance of GroupListResponse' do
24
+ it 'should create an instance of GroupListResponse' do
25
+ # uncomment below to test the instance creation
26
+ #expect(instance).to be_instance_of(SmplkitGeneratedClient::App::GroupListResponse)
27
+ end
28
+ end
29
+
30
+ describe 'test attribute "data"' do
31
+ it 'should work' do
32
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
+ end
34
+ end
35
+
36
+ describe 'test attribute "meta"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
42
+ end