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.
- checksums.yaml +4 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/group_memberships_api.rb +295 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/groups_api.rb +366 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/sso_api.rb +461 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group.rb +247 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_create_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_create_resource.rb +242 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_list_response.rb +193 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership.rb +215 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_list_response.rb +193 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_membership_response.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/group_response.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation.rb +14 -1
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_create_item.rb +17 -4
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection.rb +445 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_connection_response.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain.rb +228 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_list_response.rb +193 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_request.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_resource.rb +225 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/sso_domain_response.rb +165 -0
- data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +24 -0
- data/lib/smplkit/_generated/app/spec/api/group_memberships_api_spec.rb +88 -0
- data/lib/smplkit/_generated/app/spec/api/groups_api_spec.rb +100 -0
- data/lib/smplkit/_generated/app/spec/api/sso_api_spec.rb +117 -0
- data/lib/smplkit/_generated/app/spec/models/group_create_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/group_create_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/group_list_response_spec.rb +42 -0
- data/lib/smplkit/_generated/app/spec/models/group_membership_list_response_spec.rb +42 -0
- data/lib/smplkit/_generated/app/spec/models/group_membership_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/group_membership_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/group_membership_response_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/group_membership_spec.rb +54 -0
- data/lib/smplkit/_generated/app/spec/models/group_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/group_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/group_response_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/group_spec.rb +66 -0
- data/lib/smplkit/_generated/app/spec/models/invitation_create_item_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/invitation_spec.rb +6 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_response_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_connection_spec.rb +138 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_list_response_spec.rb +42 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_request_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_resource_spec.rb +52 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_response_spec.rb +36 -0
- data/lib/smplkit/_generated/app/spec/models/sso_domain_spec.rb +64 -0
- 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 `409` if this user is already a member of this group, or `422` 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 `409` when the membership is the user's `default` membership — every user must remain in the `default` 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 `filter[group]` (a group key) to list members of a single group, or `filter[user]` (a UUID) to list a single user'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 `-` for descending order. Default: `created_at`. Allowed values: `created_at`, `-created_at`, `updated_at`, `-updated_at`.
|
|
78
|
+
# @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.
|
|
79
|
+
# @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.
|
|
80
|
+
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
|
|
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 `409` if a group with that id already exists, or `422` if `managed_environments` is not exactly `['*']` or a subset of the account'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 `409` for the reserved `default` 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. `filter[search]` does a case-insensitive substring match against the group `key` and `name`.
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @option opts [String] :filter_search Case-insensitive substring match against the group `key` and `name`. A group is returned if either field contains the search term.
|
|
76
|
+
# @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`.
|
|
77
|
+
# @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.
|
|
78
|
+
# @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.
|
|
79
|
+
# @option opts [Boolean] :meta_total When `true`, the response's `meta.pagination` block includes `total` (the total number of matching items across all pages) and `total_pages`. Computing these requires an extra `COUNT` query, so omit (or pass `false`) when the totals are not needed. Defaults to `false`.
|
|
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's name, description, and managed environments. Whole-resource semantics — submit every writable attribute. For the reserved `default` group, `managed_environments` may be changed (this is the lever that narrows the account-wide baseline), but renaming or other identity changes are rejected with `409`. Invalid `managed_environments` is `422`.
|
|
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'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 `404` 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'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's SSO connection. The OIDC `client_secret` 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 `409` if a different account has already verified this domain. Returns `422` 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
|