smplkit 2.0.13 → 2.0.14

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 (125) hide show
  1. checksums.yaml +4 -4
  2. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/account_api.rb +11 -11
  3. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/api_keys_api.rb +18 -18
  4. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/billing_api.rb +21 -21
  5. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/context_types_api.rb +18 -18
  6. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/contexts_api.rb +11 -11
  7. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/environments_api.rb +18 -18
  8. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/metrics_api.rb +2 -2
  9. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/services_api.rb +18 -18
  10. data/lib/smplkit/_generated/app/lib/smplkit_app_client/api/users_api.rb +18 -18
  11. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account.rb +14 -31
  12. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_request.rb +165 -0
  13. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_resource.rb +1 -0
  14. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_response.rb +1 -0
  15. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/account_wipe_request.rb +3 -3
  16. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/add_payment_method_attributes.rb +3 -1
  17. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/add_payment_method_body.rb +1 -0
  18. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/add_payment_method_data.rb +1 -0
  19. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key.rb +15 -16
  20. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_list_response.rb +1 -0
  21. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_request.rb +165 -0
  22. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_resource.rb +1 -0
  23. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/api_key_response.rb +1 -0
  24. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/auth_token_response.rb +3 -0
  25. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context.rb +6 -3
  26. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_batch_response.rb +2 -0
  27. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_bulk_item.rb +4 -2
  28. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_bulk_register.rb +2 -0
  29. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_list_response.rb +1 -0
  30. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_request.rb +165 -0
  31. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_resource.rb +1 -0
  32. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_response.rb +1 -0
  33. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type.rb +5 -2
  34. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_list_response.rb +1 -0
  35. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_request.rb +165 -0
  36. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_resource.rb +1 -0
  37. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/context_type_response.rb +1 -0
  38. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_subscription_attributes.rb +4 -0
  39. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_subscription_body.rb +1 -0
  40. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/create_subscription_data.rb +2 -0
  41. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/email.rb +3 -1
  42. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/email_resource.rb +1 -0
  43. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/email_response.rb +1 -0
  44. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment.rb +6 -0
  45. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_list_response.rb +1 -0
  46. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_request.rb +165 -0
  47. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_resource.rb +1 -0
  48. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/environment_response.rb +1 -0
  49. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation.rb +11 -0
  50. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_accept_request.rb +2 -0
  51. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_bulk_create_request.rb +2 -0
  52. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_create_item.rb +3 -0
  53. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_list_response.rb +1 -0
  54. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_resource.rb +1 -0
  55. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invitation_response.rb +1 -0
  56. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice.rb +13 -0
  57. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_list_response.rb +1 -0
  58. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_resource.rb +1 -0
  59. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/invoice_single_response.rb +1 -0
  60. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/limit_definition.rb +5 -0
  61. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/login_request.rb +3 -0
  62. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_attributes.rb +7 -0
  63. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_bulk_request.rb +2 -0
  64. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_list_response.rb +1 -0
  65. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_name_item.rb +3 -0
  66. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_names_response.rb +1 -0
  67. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_resource.rb +1 -0
  68. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_attributes.rb +6 -0
  69. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_list_response.rb +1 -0
  70. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/metric_rollup_resource.rb +1 -0
  71. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/next_tier_meta.rb +4 -0
  72. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/page_meta.rb +5 -4
  73. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method.rb +9 -1
  74. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_list_response.rb +1 -0
  75. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_request.rb +165 -0
  76. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_resource.rb +1 -0
  77. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/payment_method_response.rb +1 -0
  78. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan.rb +4 -0
  79. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_change_request.rb +2 -0
  80. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_definition.rb +3 -0
  81. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_list_response.rb +1 -0
  82. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/plan_resource.rb +1 -0
  83. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product.rb +8 -0
  84. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product_list_response.rb +1 -0
  85. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/product_resource.rb +1 -0
  86. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/register_request.rb +4 -1
  87. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service.rb +4 -0
  88. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_list_response.rb +1 -0
  89. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_request.rb +165 -0
  90. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_resource.rb +1 -0
  91. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/service_response.rb +1 -0
  92. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/setup_intent_attributes.rb +2 -0
  93. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/setup_intent_response.rb +1 -0
  94. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_attributes.rb +8 -0
  95. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_meta.rb +6 -1
  96. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_list_response.rb +1 -0
  97. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_resource.rb +1 -0
  98. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/subscription_response.rb +1 -0
  99. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user.rb +11 -21
  100. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_list_response.rb +1 -0
  101. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_request.rb +165 -0
  102. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_resource.rb +1 -0
  103. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/user_response.rb +1 -0
  104. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/value.rb +1 -0
  105. data/lib/smplkit/_generated/app/lib/smplkit_app_client/models/verify_email_request.rb +2 -0
  106. data/lib/smplkit/_generated/app/lib/smplkit_app_client.rb +8 -0
  107. data/lib/smplkit/_generated/app/spec/api/account_api_spec.rb +2 -2
  108. data/lib/smplkit/_generated/app/spec/api/api_keys_api_spec.rb +2 -2
  109. data/lib/smplkit/_generated/app/spec/api/billing_api_spec.rb +7 -7
  110. data/lib/smplkit/_generated/app/spec/api/context_types_api_spec.rb +2 -2
  111. data/lib/smplkit/_generated/app/spec/api/contexts_api_spec.rb +2 -2
  112. data/lib/smplkit/_generated/app/spec/api/environments_api_spec.rb +2 -2
  113. data/lib/smplkit/_generated/app/spec/api/metrics_api_spec.rb +1 -1
  114. data/lib/smplkit/_generated/app/spec/api/services_api_spec.rb +2 -2
  115. data/lib/smplkit/_generated/app/spec/api/users_api_spec.rb +2 -2
  116. data/lib/smplkit/_generated/app/spec/models/account_request_spec.rb +36 -0
  117. data/lib/smplkit/_generated/app/spec/models/api_key_request_spec.rb +36 -0
  118. data/lib/smplkit/_generated/app/spec/models/api_key_spec.rb +0 -6
  119. data/lib/smplkit/_generated/app/spec/models/context_request_spec.rb +36 -0
  120. data/lib/smplkit/_generated/app/spec/models/context_type_request_spec.rb +36 -0
  121. data/lib/smplkit/_generated/app/spec/models/environment_request_spec.rb +36 -0
  122. data/lib/smplkit/_generated/app/spec/models/payment_method_request_spec.rb +36 -0
  123. data/lib/smplkit/_generated/app/spec/models/service_request_spec.rb +36 -0
  124. data/lib/smplkit/_generated/app/spec/models/user_request_spec.rb +36 -0
  125. metadata +17 -1
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API request envelope for creating a subscription.
17
18
  class CreateSubscriptionBody < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,7 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Resource object for the create-subscription request.
17
18
  class CreateSubscriptionData < ApiModelBase
19
+ # Resource type; must be `subscription`.
18
20
  attr_accessor :type
19
21
 
20
22
  attr_accessor :attributes
@@ -14,12 +14,14 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
- # Contact-us email resource attributes. This resource is a pure action it is not persisted. The id returned in the response is a per-request uuid4 for correlation only.
17
+ # A contact-us submission. Sending the resource delivers a support ticket and an auto-response email; nothing is persisted. The `id` returned on the response is a per-request correlation identifier.
18
18
  class Email < ApiModelBase
19
19
  attr_accessor :topic
20
20
 
21
+ # Free-form text of the message. Trimmed before validation.
21
22
  attr_accessor :body
22
23
 
24
+ # When the message was accepted by the server.
23
25
  attr_accessor :sent_at
24
26
 
25
27
  class EnumAttributeValidator
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API resource envelope for a contact-us submission. `id` must not be specified for create requests (the server assigns it).
17
18
  class EmailResource < ApiModelBase
18
19
  attr_accessor :id
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API single-resource response envelope for a contact-us message.
17
18
  class EmailResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,15 +14,21 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # A named deployment context — for example, `production`, `staging`, or `development`. Resources scoped to an environment (such as config items and feature flags) are evaluated against environment-specific values.
17
18
  class Environment < ApiModelBase
19
+ # Human-readable name for the environment.
18
20
  attr_accessor :name
19
21
 
22
+ # Display color used by the console to badge the environment. Accepts any CSS color string.
20
23
  attr_accessor :color
21
24
 
25
+ # `STANDARD` for environments the customer explicitly manages; `AD_HOC` for environments auto-created from SDK traffic. Case-insensitive on input.
22
26
  attr_accessor :classification
23
27
 
28
+ # When the environment was created.
24
29
  attr_accessor :created_at
25
30
 
31
+ # When the environment was last modified.
26
32
  attr_accessor :updated_at
27
33
 
28
34
  class EnumAttributeValidator
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API collection response for environments.
17
18
  class EnvironmentListResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -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 request envelope for creating or updating an environment.
18
+ class EnvironmentRequest < 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' => :'EnvironmentResource'
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::EnvironmentRequest` 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::EnvironmentRequest`. 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
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API resource envelope for an environment. `id` must not be specified for create requests (the server assigns it).
17
18
  class EnvironmentResource < ApiModelBase
18
19
  attr_accessor :id
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API single-resource response envelope for an environment.
17
18
  class EnvironmentResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,25 +14,36 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # An invitation for a person to join an account. Invitations carry a time-limited token; the recipient redeems the token to become a member of the inviting account at the assigned role.
17
18
  class Invitation < ApiModelBase
19
+ # Email address the invitation was sent to.
18
20
  attr_accessor :email
19
21
 
22
+ # Role to assign on acceptance. One of `ADMIN`, `MEMBER`, or `VIEWER`.
20
23
  attr_accessor :role
21
24
 
25
+ # Lifecycle state of the invitation. One of `PENDING`, `ACCEPTED`, `REVOKED`, or `EXPIRED`.
22
26
  attr_accessor :status
23
27
 
28
+ # UUID of the user who sent the invitation.
24
29
  attr_accessor :invited_by
25
30
 
31
+ # Name of the account the recipient is being invited to join.
26
32
  attr_accessor :account_name
27
33
 
34
+ # Display name of the user who sent the invitation.
28
35
  attr_accessor :inviter_display_name
29
36
 
37
+ # Single-use token that the recipient redeems to accept the invitation. Echoed on responses so the inviting client can construct the acceptance link.
30
38
  attr_accessor :token
31
39
 
40
+ # When the invitation token stops being redeemable.
32
41
  attr_accessor :expires_at
33
42
 
43
+ # When the invitation was issued.
34
44
  attr_accessor :created_at
35
45
 
46
+ # When the invitation record was last modified.
36
47
  attr_accessor :updated_at
37
48
 
38
49
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Body for the invitation-accept endpoint.
17
18
  class InvitationAcceptRequest < ApiModelBase
19
+ # Invitation token from the email link.
18
20
  attr_accessor :token
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Bulk-create request body for the invitations endpoint.
17
18
  class InvitationBulkCreateRequest < ApiModelBase
19
+ # One to fifty invitations to send in a single request.
18
20
  attr_accessor :invitations
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,9 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # One invitation in a bulk-create request.
17
18
  class InvitationCreateItem < ApiModelBase
19
+ # Email address to send the invitation to.
18
20
  attr_accessor :email
19
21
 
22
+ # Role to assign on acceptance. One of `ADMIN`, `MEMBER`, or `VIEWER`. `OWNER` cannot be assigned via invitation. Case-insensitive on input.
20
23
  attr_accessor :role
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API collection response for invitations.
17
18
  class InvitationListResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API resource envelope for an invitation. `id` must not be specified for create requests (the server assigns it).
17
18
  class InvitationResource < ApiModelBase
18
19
  attr_accessor :id
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API single-resource response envelope for an invitation.
17
18
  class InvitationResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,29 +14,42 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # A billing invoice issued for the account.
17
18
  class Invoice < ApiModelBase
19
+ # Invoice number assigned by the billing provider.
18
20
  attr_accessor :number
19
21
 
22
+ # Invoice lifecycle state, e.g. `draft`, `open`, `paid`, `uncollectible`, `void`.
20
23
  attr_accessor :status
21
24
 
25
+ # Amount owed on the invoice in the smallest currency unit (e.g. cents).
22
26
  attr_accessor :amount_due
23
27
 
28
+ # Amount paid against the invoice in the smallest currency unit.
24
29
  attr_accessor :amount_paid
25
30
 
31
+ # ISO 4217 currency code, e.g. `usd`.
26
32
  attr_accessor :currency
27
33
 
34
+ # Human-readable summary of the invoice's line items.
28
35
  attr_accessor :description
29
36
 
37
+ # Start of the service period the invoice covers (ISO 8601).
30
38
  attr_accessor :period_start
31
39
 
40
+ # End of the service period the invoice covers (ISO 8601).
32
41
  attr_accessor :period_end
33
42
 
43
+ # When the invoice was created (ISO 8601).
34
44
  attr_accessor :created_at
35
45
 
46
+ # When the invoice was paid in full (ISO 8601), or `null` if unpaid.
36
47
  attr_accessor :paid_at
37
48
 
49
+ # Link to the hosted invoice page.
38
50
  attr_accessor :hosted_invoice_url
39
51
 
52
+ # Link to the PDF rendering of the invoice.
40
53
  attr_accessor :invoice_pdf
41
54
 
42
55
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API collection response for invoices.
17
18
  class InvoiceListResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API resource envelope for an invoice.
17
18
  class InvoiceResource < ApiModelBase
18
19
  attr_accessor :id
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API single-resource response envelope for an invoice.
17
18
  class InvoiceSingleResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,13 +14,18 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Description of a single metered limit on a product.
17
18
  class LimitDefinition < ApiModelBase
19
+ # Human-readable name for the limit.
18
20
  attr_accessor :display_name
19
21
 
22
+ # Long-form description of what the limit controls.
20
23
  attr_accessor :description
21
24
 
25
+ # Unit the limit is measured in, e.g. `flags`, `events`.
22
26
  attr_accessor :unit
23
27
 
28
+ # Optional formatter hint for rendering the limit value in customer-facing UI.
24
29
  attr_accessor :display_format
25
30
 
26
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,9 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Body for the email + password login endpoint.
17
18
  class LoginRequest < ApiModelBase
19
+ # Email address of the user signing in.
18
20
  attr_accessor :email
19
21
 
22
+ # Password supplied for authentication.
20
23
  attr_accessor :password
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,19 +14,26 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # A pre-aggregated metric data point recorded for the account.
17
18
  class MetricAttributes < ApiModelBase
19
+ # Metric series name, e.g. `flags.evaluations`. Dot-separated.
18
20
  attr_accessor :name
19
21
 
20
22
  attr_accessor :value
21
23
 
24
+ # Unit the value is expressed in, e.g. `evaluations`, `ms`, `bytes`.
22
25
  attr_accessor :unit
23
26
 
27
+ # Length of the aggregation window in seconds (e.g. `60` for a one-minute roll-up).
24
28
  attr_accessor :period_seconds
25
29
 
30
+ # Optional dimension keys that scope the data point, e.g. `environment`, `service`. Used as filter targets on the list endpoint via `filter[dimensions.<key>]=...`.
26
31
  attr_accessor :dimensions
27
32
 
33
+ # Start of the aggregation window this data point covers.
28
34
  attr_accessor :recorded_at
29
35
 
36
+ # When the data point was ingested.
30
37
  attr_accessor :created_at
31
38
 
32
39
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,7 +14,9 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Bulk-ingest request envelope for metric data points.
17
18
  class MetricBulkRequest < ApiModelBase
19
+ # Metric data points to ingest in a single request.
18
20
  attr_accessor :data
19
21
 
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API collection response for metric data points.
17
18
  class MetricListResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,9 +14,12 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # One distinct metric name with a representative unit.
17
18
  class MetricNameItem < ApiModelBase
19
+ # Distinct metric series name.
18
20
  attr_accessor :name
19
21
 
22
+ # Representative unit observed for this series.
20
23
  attr_accessor :unit
21
24
 
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Plain-JSON response listing distinct metric names for the account.
17
18
  class MetricNamesResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API resource envelope for a metric data point. `id` must not be specified for create requests (the server assigns it).
17
18
  class MetricResource < ApiModelBase
18
19
  attr_accessor :id
19
20
 
@@ -14,15 +14,21 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # An aggregated metric value over a fixed-size time bucket.
17
18
  class MetricRollupAttributes < ApiModelBase
19
+ # Metric series name the rollup is computed from.
18
20
  attr_accessor :name
19
21
 
22
+ # Sum of the underlying metric values over the bucket.
20
23
  attr_accessor :value
21
24
 
25
+ # Unit the value is expressed in.
22
26
  attr_accessor :unit
23
27
 
28
+ # Start of the time bucket this rollup covers.
24
29
  attr_accessor :bucket
25
30
 
31
+ # Rollup interval. One of `1m`, `5m`, `15m`, `1h`, `6h`, `1d`.
26
32
  attr_accessor :rollup
27
33
 
28
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API collection response for metric rollups.
17
18
  class MetricRollupListResponse < ApiModelBase
18
19
  attr_accessor :data
19
20
 
@@ -14,6 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # JSON:API resource envelope for a metric rollup.
17
18
  class MetricRollupResource < ApiModelBase
18
19
  attr_accessor :type
19
20
 
@@ -14,11 +14,15 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Information about the next volume-discount tier.
17
18
  class NextTierMeta < ApiModelBase
19
+ # Number of additional subscribed products needed to reach the next tier.
18
20
  attr_accessor :products_needed
19
21
 
22
+ # Discount percentage that would apply at the next tier.
20
23
  attr_accessor :discount_pct
21
24
 
25
+ # Additional monthly savings in cents at the next tier.
22
26
  attr_accessor :additional_savings_cents
23
27
 
24
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,17 +14,18 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module SmplkitGeneratedClient::App
17
+ # Pagination metadata returned with a collection response.
17
18
  class PageMeta < ApiModelBase
18
- # Page size used for this response
19
+ # Page size used for this response.
19
20
  attr_accessor :size
20
21
 
21
- # 1-based page number returned
22
+ # 1-based page number returned.
22
23
  attr_accessor :number
23
24
 
24
- # Total number of matching items across all pages
25
+ # Total number of matching items across all pages.
25
26
  attr_accessor :total_items
26
27
 
27
- # Total number of pages at the current page size
28
+ # Total number of pages at the current page size.
28
29
  attr_accessor :total_pages
29
30
 
30
31
  # Attribute mapping from ruby-style variable name to JSON key.