stigg 0.1.0.pre.beta.8 → 0.1.0.pre.beta.9
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/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1_beta/customers/assignment_list_params.rb +65 -0
- data/lib/stigg/models/v1_beta/customers/assignment_list_response.rb +85 -0
- data/lib/stigg/models/v1_beta/customers/assignment_upsert_params.rb +86 -0
- data/lib/stigg/models/v1_beta/customers/assignment_upsert_response.rb +98 -0
- data/lib/stigg/models/v1_beta/customers/entity_archive_params.rb +33 -0
- data/lib/stigg/models/v1_beta/customers/entity_archive_response.rb +37 -0
- data/lib/stigg/models/v1_beta/customers/entity_list_params.rb +76 -0
- data/lib/stigg/models/v1_beta/{entity_upsert_response.rb → customers/entity_list_response.rb} +3 -13
- data/lib/stigg/models/v1_beta/customers/entity_retrieve_params.rb +30 -0
- data/lib/stigg/models/v1_beta/customers/entity_retrieve_response.rb +77 -0
- data/lib/stigg/models/v1_beta/customers/entity_unarchive_params.rb +33 -0
- data/lib/stigg/models/v1_beta/customers/entity_unarchive_response.rb +37 -0
- data/lib/stigg/models/v1_beta/customers/entity_upsert_params.rb +69 -0
- data/lib/stigg/models/v1_beta/customers/entity_upsert_response.rb +76 -0
- data/lib/stigg/resources/v1_beta/customers/assignments.rb +81 -0
- data/lib/stigg/resources/v1_beta/customers/entities.rb +152 -0
- data/lib/stigg/resources/v1_beta/customers.rb +8 -0
- data/lib/stigg/resources/v1_beta.rb +0 -4
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +16 -11
- data/rbi/stigg/models/v1_beta/customers/assignment_list_params.rbi +103 -0
- data/rbi/stigg/models/v1_beta/customers/assignment_list_response.rbi +131 -0
- data/rbi/stigg/models/v1_beta/customers/assignment_upsert_params.rbi +180 -0
- data/rbi/stigg/models/v1_beta/customers/assignment_upsert_response.rbi +175 -0
- data/rbi/stigg/models/v1_beta/customers/entity_archive_params.rbi +56 -0
- data/rbi/stigg/models/v1_beta/customers/entity_archive_response.rbi +85 -0
- data/rbi/stigg/models/v1_beta/customers/entity_list_params.rbi +151 -0
- data/rbi/stigg/models/v1_beta/{entity_upsert_response.rbi → customers/entity_list_response.rbi} +3 -38
- data/rbi/stigg/models/v1_beta/customers/entity_retrieve_params.rbi +50 -0
- data/rbi/stigg/models/v1_beta/customers/entity_retrieve_response.rbi +135 -0
- data/rbi/stigg/models/v1_beta/customers/entity_unarchive_params.rbi +56 -0
- data/rbi/stigg/models/v1_beta/customers/entity_unarchive_response.rbi +85 -0
- data/rbi/stigg/models/v1_beta/customers/entity_upsert_params.rbi +130 -0
- data/rbi/stigg/models/v1_beta/customers/entity_upsert_response.rbi +129 -0
- data/rbi/stigg/resources/v1_beta/customers/assignments.rbi +76 -0
- data/rbi/stigg/resources/v1_beta/customers/entities.rbi +122 -0
- data/rbi/stigg/resources/v1_beta/customers.rbi +6 -0
- data/rbi/stigg/resources/v1_beta.rbi +0 -3
- data/sig/stigg/models/v1_beta/customers/assignment_list_params.rbs +65 -0
- data/sig/stigg/models/v1_beta/customers/assignment_list_response.rbs +64 -0
- data/sig/stigg/models/v1_beta/customers/assignment_upsert_params.rbs +83 -0
- data/sig/stigg/models/v1_beta/customers/assignment_upsert_response.rbs +81 -0
- data/sig/stigg/models/v1_beta/customers/entity_archive_params.rbs +32 -0
- data/sig/stigg/models/v1_beta/customers/entity_archive_response.rbs +34 -0
- data/sig/stigg/models/v1_beta/customers/entity_list_params.rbs +78 -0
- data/sig/stigg/models/v1_beta/{entity_retrieve_response.rbs → customers/entity_list_response.rbs} +3 -16
- data/sig/stigg/models/v1_beta/customers/entity_retrieve_params.rbs +32 -0
- data/sig/stigg/models/v1_beta/customers/entity_retrieve_response.rbs +66 -0
- data/sig/stigg/models/v1_beta/customers/entity_unarchive_params.rbs +32 -0
- data/sig/stigg/models/v1_beta/customers/entity_unarchive_response.rbs +34 -0
- data/sig/stigg/models/v1_beta/customers/entity_upsert_params.rbs +66 -0
- data/sig/stigg/models/v1_beta/customers/entity_upsert_response.rbs +66 -0
- data/sig/stigg/resources/v1_beta/customers/assignments.rbs +27 -0
- data/sig/stigg/resources/v1_beta/customers/entities.rbs +45 -0
- data/sig/stigg/resources/v1_beta/customers.rbs +4 -0
- data/sig/stigg/resources/v1_beta.rbs +0 -2
- metadata +50 -35
- data/lib/stigg/models/v1_beta/entity_archive_params.rb +0 -31
- data/lib/stigg/models/v1_beta/entity_archive_response.rb +0 -35
- data/lib/stigg/models/v1_beta/entity_list_params.rb +0 -74
- data/lib/stigg/models/v1_beta/entity_list_response.rb +0 -61
- data/lib/stigg/models/v1_beta/entity_retrieve_params.rb +0 -28
- data/lib/stigg/models/v1_beta/entity_retrieve_response.rb +0 -75
- data/lib/stigg/models/v1_beta/entity_unarchive_params.rb +0 -31
- data/lib/stigg/models/v1_beta/entity_unarchive_response.rb +0 -35
- data/lib/stigg/models/v1_beta/entity_upsert_params.rb +0 -66
- data/lib/stigg/resources/v1_beta/entities.rb +0 -150
- data/rbi/stigg/models/v1_beta/entity_archive_params.rbi +0 -51
- data/rbi/stigg/models/v1_beta/entity_archive_response.rbi +0 -74
- data/rbi/stigg/models/v1_beta/entity_list_params.rbi +0 -143
- data/rbi/stigg/models/v1_beta/entity_list_response.rbi +0 -83
- data/rbi/stigg/models/v1_beta/entity_retrieve_params.rbi +0 -45
- data/rbi/stigg/models/v1_beta/entity_retrieve_response.rbi +0 -124
- data/rbi/stigg/models/v1_beta/entity_unarchive_params.rbi +0 -54
- data/rbi/stigg/models/v1_beta/entity_unarchive_response.rbi +0 -74
- data/rbi/stigg/models/v1_beta/entity_upsert_params.rbi +0 -116
- data/rbi/stigg/resources/v1_beta/entities.rbi +0 -118
- data/sig/stigg/models/v1_beta/entity_archive_params.rbs +0 -30
- data/sig/stigg/models/v1_beta/entity_archive_response.rbs +0 -30
- data/sig/stigg/models/v1_beta/entity_list_params.rbs +0 -76
- data/sig/stigg/models/v1_beta/entity_list_response.rbs +0 -47
- data/sig/stigg/models/v1_beta/entity_retrieve_params.rbs +0 -30
- data/sig/stigg/models/v1_beta/entity_unarchive_params.rbs +0 -30
- data/sig/stigg/models/v1_beta/entity_unarchive_response.rbs +0 -30
- data/sig/stigg/models/v1_beta/entity_upsert_params.rbs +0 -60
- data/sig/stigg/models/v1_beta/entity_upsert_response.rbs +0 -62
- data/sig/stigg/resources/v1_beta/entities.rbs +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 26fcda5730e1ef5bfc5958ff90b06f997ee25f364d113fd3bd55f5fc1998d85c
|
|
4
|
+
data.tar.gz: a2f5dab86195094b5064023c0f1d63532ecf4014d3c9819457837c6e82702305
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5dce1107e9251dceb565ef8c0db1ae55e28e6a80763deb277e05f26a3d6024a1d63d4fb408754039b4839b166598cf5bfa7a37d0caa9f68c734cbe546b3511d5
|
|
7
|
+
data.tar.gz: '01439f4805672604ffc2bae18208bbd6629b986ccaf1c7118eb295acd06aa0cade3b3e415b288c11ddd0f8b4c35e1d88d577498ad000caab3dee8d7d06cc29d1'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.9 (2026-05-26)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.1.0-beta.8...v0.1.0-beta.9](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.8...v0.1.0-beta.9)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** add customer assignments list/upsert to events beta ([0fb3a5c](https://github.com/stiggio/stigg-ruby/commit/0fb3a5cdb62465d80fbdeb1bc4919f6b73835ed5))
|
|
10
|
+
|
|
3
11
|
## 0.1.0-beta.8 (2026-05-25)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0-beta.7...v0.1.0-beta.8](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-beta.7...v0.1.0-beta.8)
|
data/README.md
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Assignments#list
|
|
8
|
+
class AssignmentListParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute after
|
|
18
|
+
# Return items that come after this cursor
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :after, String
|
|
22
|
+
|
|
23
|
+
# @!attribute before
|
|
24
|
+
# Return items that come before this cursor
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :before, String
|
|
28
|
+
|
|
29
|
+
# @!attribute capability_id
|
|
30
|
+
# Filter assignments to a specific capability refId
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :capability_id, String
|
|
34
|
+
|
|
35
|
+
# @!attribute entity_id
|
|
36
|
+
# Filter assignments to a specific entity refId
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :entity_id, String
|
|
40
|
+
|
|
41
|
+
# @!attribute limit
|
|
42
|
+
# Maximum number of items to return
|
|
43
|
+
#
|
|
44
|
+
# @return [Integer, nil]
|
|
45
|
+
optional :limit, Integer
|
|
46
|
+
|
|
47
|
+
# @!method initialize(id:, after: nil, before: nil, capability_id: nil, entity_id: nil, limit: nil, request_options: {})
|
|
48
|
+
# @param id [String]
|
|
49
|
+
#
|
|
50
|
+
# @param after [String] Return items that come after this cursor
|
|
51
|
+
#
|
|
52
|
+
# @param before [String] Return items that come before this cursor
|
|
53
|
+
#
|
|
54
|
+
# @param capability_id [String] Filter assignments to a specific capability refId
|
|
55
|
+
#
|
|
56
|
+
# @param entity_id [String] Filter assignments to a specific entity refId
|
|
57
|
+
#
|
|
58
|
+
# @param limit [Integer] Maximum number of items to return
|
|
59
|
+
#
|
|
60
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Assignments#list
|
|
8
|
+
class AssignmentListResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute id
|
|
10
|
+
# Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute cadence
|
|
16
|
+
# Usage-reset cadence. Currently only `MONTH` is supported
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, Stigg::Models::V1Beta::Customers::AssignmentListResponse::Cadence]
|
|
19
|
+
required :cadence, enum: -> { Stigg::Models::V1Beta::Customers::AssignmentListResponse::Cadence }
|
|
20
|
+
|
|
21
|
+
# @!attribute capability_id
|
|
22
|
+
# The capability refId this assignment grants
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :capability_id, String, api_name: :capabilityId
|
|
26
|
+
|
|
27
|
+
# @!attribute created_at
|
|
28
|
+
# Timestamp of when the record was created
|
|
29
|
+
#
|
|
30
|
+
# @return [Time]
|
|
31
|
+
required :created_at, Time, api_name: :createdAt
|
|
32
|
+
|
|
33
|
+
# @!attribute entity_id
|
|
34
|
+
# The entity refId this assignment is attached to
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :entity_id, String, api_name: :entityId
|
|
38
|
+
|
|
39
|
+
# @!attribute updated_at
|
|
40
|
+
# Timestamp of when the record was last updated
|
|
41
|
+
#
|
|
42
|
+
# @return [Time]
|
|
43
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
44
|
+
|
|
45
|
+
# @!attribute usage_limit
|
|
46
|
+
# Maximum usage allowed within one cadence window
|
|
47
|
+
#
|
|
48
|
+
# @return [Float]
|
|
49
|
+
required :usage_limit, Float, api_name: :usageLimit
|
|
50
|
+
|
|
51
|
+
# @!method initialize(id:, cadence:, capability_id:, created_at:, entity_id:, updated_at:, usage_limit:)
|
|
52
|
+
# A capability assignment for an entity belonging to a customer. Defines how much
|
|
53
|
+
# of the capability the entity may consume (`usageLimit`) and how often the
|
|
54
|
+
# counter resets (`cadence`).
|
|
55
|
+
#
|
|
56
|
+
# @param id [String] Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
57
|
+
#
|
|
58
|
+
# @param cadence [Symbol, Stigg::Models::V1Beta::Customers::AssignmentListResponse::Cadence] Usage-reset cadence. Currently only `MONTH` is supported
|
|
59
|
+
#
|
|
60
|
+
# @param capability_id [String] The capability refId this assignment grants
|
|
61
|
+
#
|
|
62
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
63
|
+
#
|
|
64
|
+
# @param entity_id [String] The entity refId this assignment is attached to
|
|
65
|
+
#
|
|
66
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
67
|
+
#
|
|
68
|
+
# @param usage_limit [Float] Maximum usage allowed within one cadence window
|
|
69
|
+
|
|
70
|
+
# Usage-reset cadence. Currently only `MONTH` is supported
|
|
71
|
+
#
|
|
72
|
+
# @see Stigg::Models::V1Beta::Customers::AssignmentListResponse#cadence
|
|
73
|
+
module Cadence
|
|
74
|
+
extend Stigg::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
MONTH = :MONTH
|
|
77
|
+
|
|
78
|
+
# @!method self.values
|
|
79
|
+
# @return [Array<Symbol>]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Assignments#upsert
|
|
8
|
+
class AssignmentUpsertParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute assignments
|
|
18
|
+
# Assignments to upsert (1–100 per request)
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment>]
|
|
21
|
+
required :assignments,
|
|
22
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::V1Beta::Customers::AssignmentUpsertParams::Assignment] }
|
|
23
|
+
|
|
24
|
+
# @!method initialize(id:, assignments:, request_options: {})
|
|
25
|
+
# @param id [String]
|
|
26
|
+
#
|
|
27
|
+
# @param assignments [Array<Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment>] Assignments to upsert (1–100 per request)
|
|
28
|
+
#
|
|
29
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
30
|
+
|
|
31
|
+
class Assignment < Stigg::Internal::Type::BaseModel
|
|
32
|
+
# @!attribute capability_id
|
|
33
|
+
# The capability refId this assignment grants
|
|
34
|
+
#
|
|
35
|
+
# @return [String]
|
|
36
|
+
required :capability_id, String, api_name: :capabilityId
|
|
37
|
+
|
|
38
|
+
# @!attribute entity_id
|
|
39
|
+
# The entity refId this assignment is attached to
|
|
40
|
+
#
|
|
41
|
+
# @return [String]
|
|
42
|
+
required :entity_id, String, api_name: :entityId
|
|
43
|
+
|
|
44
|
+
# @!attribute cadence
|
|
45
|
+
# Usage-reset cadence (required on create). Currently only `MONTH` is supported
|
|
46
|
+
#
|
|
47
|
+
# @return [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment::Cadence, nil]
|
|
48
|
+
optional :cadence, enum: -> { Stigg::V1Beta::Customers::AssignmentUpsertParams::Assignment::Cadence }
|
|
49
|
+
|
|
50
|
+
# @!attribute usage_limit
|
|
51
|
+
# Maximum usage allowed within one cadence window (required on create)
|
|
52
|
+
#
|
|
53
|
+
# @return [Float, nil]
|
|
54
|
+
optional :usage_limit, Float, api_name: :usageLimit
|
|
55
|
+
|
|
56
|
+
# @!method initialize(capability_id:, entity_id:, cadence: nil, usage_limit: nil)
|
|
57
|
+
# A single assignment to create or update. The natural key is the
|
|
58
|
+
# `(entityId, capabilityId)` pair. On create both `usageLimit` and `cadence` are
|
|
59
|
+
# required; on update they may be omitted individually to preserve the existing
|
|
60
|
+
# value.
|
|
61
|
+
#
|
|
62
|
+
# @param capability_id [String] The capability refId this assignment grants
|
|
63
|
+
#
|
|
64
|
+
# @param entity_id [String] The entity refId this assignment is attached to
|
|
65
|
+
#
|
|
66
|
+
# @param cadence [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment::Cadence] Usage-reset cadence (required on create). Currently only `MONTH` is supported
|
|
67
|
+
#
|
|
68
|
+
# @param usage_limit [Float] Maximum usage allowed within one cadence window (required on create)
|
|
69
|
+
|
|
70
|
+
# Usage-reset cadence (required on create). Currently only `MONTH` is supported
|
|
71
|
+
#
|
|
72
|
+
# @see Stigg::Models::V1Beta::Customers::AssignmentUpsertParams::Assignment#cadence
|
|
73
|
+
module Cadence
|
|
74
|
+
extend Stigg::Internal::Type::Enum
|
|
75
|
+
|
|
76
|
+
MONTH = :MONTH
|
|
77
|
+
|
|
78
|
+
# @!method self.values
|
|
79
|
+
# @return [Array<Symbol>]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Assignments#upsert
|
|
8
|
+
class AssignmentUpsertResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data>]
|
|
12
|
+
required :data,
|
|
13
|
+
-> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data] }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data:)
|
|
16
|
+
# Assignments after upsert.
|
|
17
|
+
#
|
|
18
|
+
# @param data [Array<Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data>]
|
|
19
|
+
|
|
20
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
21
|
+
# @!attribute id
|
|
22
|
+
# Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
23
|
+
#
|
|
24
|
+
# @return [String]
|
|
25
|
+
required :id, String
|
|
26
|
+
|
|
27
|
+
# @!attribute cadence
|
|
28
|
+
# Usage-reset cadence. Currently only `MONTH` is supported
|
|
29
|
+
#
|
|
30
|
+
# @return [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data::Cadence]
|
|
31
|
+
required :cadence, enum: -> { Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data::Cadence }
|
|
32
|
+
|
|
33
|
+
# @!attribute capability_id
|
|
34
|
+
# The capability refId this assignment grants
|
|
35
|
+
#
|
|
36
|
+
# @return [String]
|
|
37
|
+
required :capability_id, String, api_name: :capabilityId
|
|
38
|
+
|
|
39
|
+
# @!attribute created_at
|
|
40
|
+
# Timestamp of when the record was created
|
|
41
|
+
#
|
|
42
|
+
# @return [Time]
|
|
43
|
+
required :created_at, Time, api_name: :createdAt
|
|
44
|
+
|
|
45
|
+
# @!attribute entity_id
|
|
46
|
+
# The entity refId this assignment is attached to
|
|
47
|
+
#
|
|
48
|
+
# @return [String]
|
|
49
|
+
required :entity_id, String, api_name: :entityId
|
|
50
|
+
|
|
51
|
+
# @!attribute updated_at
|
|
52
|
+
# Timestamp of when the record was last updated
|
|
53
|
+
#
|
|
54
|
+
# @return [Time]
|
|
55
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
56
|
+
|
|
57
|
+
# @!attribute usage_limit
|
|
58
|
+
# Maximum usage allowed within one cadence window
|
|
59
|
+
#
|
|
60
|
+
# @return [Float]
|
|
61
|
+
required :usage_limit, Float, api_name: :usageLimit
|
|
62
|
+
|
|
63
|
+
# @!method initialize(id:, cadence:, capability_id:, created_at:, entity_id:, updated_at:, usage_limit:)
|
|
64
|
+
# A capability assignment for an entity belonging to a customer. Defines how much
|
|
65
|
+
# of the capability the entity may consume (`usageLimit`) and how often the
|
|
66
|
+
# counter resets (`cadence`).
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] Synthetic UUID identifier — also the cursor anchor for paginated lists
|
|
69
|
+
#
|
|
70
|
+
# @param cadence [Symbol, Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data::Cadence] Usage-reset cadence. Currently only `MONTH` is supported
|
|
71
|
+
#
|
|
72
|
+
# @param capability_id [String] The capability refId this assignment grants
|
|
73
|
+
#
|
|
74
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
75
|
+
#
|
|
76
|
+
# @param entity_id [String] The entity refId this assignment is attached to
|
|
77
|
+
#
|
|
78
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
79
|
+
#
|
|
80
|
+
# @param usage_limit [Float] Maximum usage allowed within one cadence window
|
|
81
|
+
|
|
82
|
+
# Usage-reset cadence. Currently only `MONTH` is supported
|
|
83
|
+
#
|
|
84
|
+
# @see Stigg::Models::V1Beta::Customers::AssignmentUpsertResponse::Data#cadence
|
|
85
|
+
module Cadence
|
|
86
|
+
extend Stigg::Internal::Type::Enum
|
|
87
|
+
|
|
88
|
+
MONTH = :MONTH
|
|
89
|
+
|
|
90
|
+
# @!method self.values
|
|
91
|
+
# @return [Array<Symbol>]
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Entities#archive
|
|
8
|
+
class EntityArchiveParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute ids
|
|
18
|
+
# Entity identifiers to act on
|
|
19
|
+
#
|
|
20
|
+
# @return [Array<String>]
|
|
21
|
+
required :ids, Stigg::Internal::Type::ArrayOf[String]
|
|
22
|
+
|
|
23
|
+
# @!method initialize(id:, ids:, request_options: {})
|
|
24
|
+
# @param id [String]
|
|
25
|
+
#
|
|
26
|
+
# @param ids [Array<String>] Entity identifiers to act on
|
|
27
|
+
#
|
|
28
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Entities#archive
|
|
8
|
+
class EntityArchiveResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
# List of entity identifiers that were acted on
|
|
11
|
+
#
|
|
12
|
+
# @return [Stigg::Models::V1Beta::Customers::EntityArchiveResponse::Data]
|
|
13
|
+
required :data, -> { Stigg::Models::V1Beta::Customers::EntityArchiveResponse::Data }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data:)
|
|
16
|
+
# Wrapped response echoing the ids that were acted on by an archive/unarchive call
|
|
17
|
+
#
|
|
18
|
+
# @param data [Stigg::Models::V1Beta::Customers::EntityArchiveResponse::Data] List of entity identifiers that were acted on
|
|
19
|
+
|
|
20
|
+
# @see Stigg::Models::V1Beta::Customers::EntityArchiveResponse#data
|
|
21
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
22
|
+
# @!attribute ids
|
|
23
|
+
# Entity identifiers to act on
|
|
24
|
+
#
|
|
25
|
+
# @return [Array<String>]
|
|
26
|
+
required :ids, Stigg::Internal::Type::ArrayOf[String]
|
|
27
|
+
|
|
28
|
+
# @!method initialize(ids:)
|
|
29
|
+
# List of entity identifiers that were acted on
|
|
30
|
+
#
|
|
31
|
+
# @param ids [Array<String>] Entity identifiers to act on
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Entities#list
|
|
8
|
+
class EntityListParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute after
|
|
18
|
+
# Return items that come after this cursor
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :after, String
|
|
22
|
+
|
|
23
|
+
# @!attribute before
|
|
24
|
+
# Return items that come before this cursor
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :before, String
|
|
28
|
+
|
|
29
|
+
# @!attribute include_archived
|
|
30
|
+
# Whether to include archived entities. One of: true, false
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, Stigg::Models::V1Beta::Customers::EntityListParams::IncludeArchived, nil]
|
|
33
|
+
optional :include_archived, enum: -> { Stigg::V1Beta::Customers::EntityListParams::IncludeArchived }
|
|
34
|
+
|
|
35
|
+
# @!attribute limit
|
|
36
|
+
# Maximum number of items to return
|
|
37
|
+
#
|
|
38
|
+
# @return [Integer, nil]
|
|
39
|
+
optional :limit, Integer
|
|
40
|
+
|
|
41
|
+
# @!attribute type_ref_id
|
|
42
|
+
# Filter results to entities of a specific entity type, by the type's refId
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :type_ref_id, String
|
|
46
|
+
|
|
47
|
+
# @!method initialize(id:, after: nil, before: nil, include_archived: nil, limit: nil, type_ref_id: nil, request_options: {})
|
|
48
|
+
# @param id [String]
|
|
49
|
+
#
|
|
50
|
+
# @param after [String] Return items that come after this cursor
|
|
51
|
+
#
|
|
52
|
+
# @param before [String] Return items that come before this cursor
|
|
53
|
+
#
|
|
54
|
+
# @param include_archived [Symbol, Stigg::Models::V1Beta::Customers::EntityListParams::IncludeArchived] Whether to include archived entities. One of: true, false
|
|
55
|
+
#
|
|
56
|
+
# @param limit [Integer] Maximum number of items to return
|
|
57
|
+
#
|
|
58
|
+
# @param type_ref_id [String] Filter results to entities of a specific entity type, by the type's refId
|
|
59
|
+
#
|
|
60
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
61
|
+
|
|
62
|
+
# Whether to include archived entities. One of: true, false
|
|
63
|
+
module IncludeArchived
|
|
64
|
+
extend Stigg::Internal::Type::Enum
|
|
65
|
+
|
|
66
|
+
TRUE = :true
|
|
67
|
+
FALSE = :false
|
|
68
|
+
|
|
69
|
+
# @!method self.values
|
|
70
|
+
# @return [Array<Symbol>]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
data/lib/stigg/models/v1_beta/{entity_upsert_response.rb → customers/entity_list_response.rb}
RENAMED
|
@@ -3,19 +3,9 @@
|
|
|
3
3
|
module Stigg
|
|
4
4
|
module Models
|
|
5
5
|
module V1Beta
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
#
|
|
10
|
-
# @return [Array<Stigg::Models::V1Beta::EntityUpsertResponse::Data>]
|
|
11
|
-
required :data, -> { Stigg::Internal::Type::ArrayOf[Stigg::Models::V1Beta::EntityUpsertResponse::Data] }
|
|
12
|
-
|
|
13
|
-
# @!method initialize(data:)
|
|
14
|
-
# List of entities created or updated by an upsert request
|
|
15
|
-
#
|
|
16
|
-
# @param data [Array<Stigg::Models::V1Beta::EntityUpsertResponse::Data>]
|
|
17
|
-
|
|
18
|
-
class Data < Stigg::Internal::Type::BaseModel
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Entities#list
|
|
8
|
+
class EntityListResponse < Stigg::Internal::Type::BaseModel
|
|
19
9
|
# @!attribute id
|
|
20
10
|
# The unique identifier for the entity
|
|
21
11
|
#
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Entities#retrieve
|
|
8
|
+
class EntityRetrieveParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!attribute id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :id, String
|
|
16
|
+
|
|
17
|
+
# @!attribute entity_id
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :entity_id, String
|
|
21
|
+
|
|
22
|
+
# @!method initialize(id:, entity_id:, request_options: {})
|
|
23
|
+
# @param id [String]
|
|
24
|
+
# @param entity_id [String]
|
|
25
|
+
# @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1Beta
|
|
6
|
+
module Customers
|
|
7
|
+
# @see Stigg::Resources::V1Beta::Customers::Entities#retrieve
|
|
8
|
+
class EntityRetrieveResponse < Stigg::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
# A stored entity instance tracked by the governance service for a given customer
|
|
11
|
+
#
|
|
12
|
+
# @return [Stigg::Models::V1Beta::Customers::EntityRetrieveResponse::Data]
|
|
13
|
+
required :data, -> { Stigg::Models::V1Beta::Customers::EntityRetrieveResponse::Data }
|
|
14
|
+
|
|
15
|
+
# @!method initialize(data:)
|
|
16
|
+
# Response object
|
|
17
|
+
#
|
|
18
|
+
# @param data [Stigg::Models::V1Beta::Customers::EntityRetrieveResponse::Data] A stored entity instance tracked by the governance service for a given customer
|
|
19
|
+
|
|
20
|
+
# @see Stigg::Models::V1Beta::Customers::EntityRetrieveResponse#data
|
|
21
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
22
|
+
# @!attribute id
|
|
23
|
+
# The unique identifier for the entity
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :id, String
|
|
27
|
+
|
|
28
|
+
# @!attribute archived_at
|
|
29
|
+
# Timestamp of when the record was deleted
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
required :archived_at, Time, api_name: :archivedAt, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_at
|
|
35
|
+
# Timestamp of when the record was created
|
|
36
|
+
#
|
|
37
|
+
# @return [Time]
|
|
38
|
+
required :created_at, Time, api_name: :createdAt
|
|
39
|
+
|
|
40
|
+
# @!attribute metadata
|
|
41
|
+
# Free-form key/value metadata attached to the entity
|
|
42
|
+
#
|
|
43
|
+
# @return [Hash{Symbol=>String}]
|
|
44
|
+
required :metadata, Stigg::Internal::Type::HashOf[String]
|
|
45
|
+
|
|
46
|
+
# @!attribute type_id
|
|
47
|
+
# The entity type identifier this entity instantiates
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
required :type_id, String, api_name: :typeId
|
|
51
|
+
|
|
52
|
+
# @!attribute updated_at
|
|
53
|
+
# Timestamp of when the record was last updated
|
|
54
|
+
#
|
|
55
|
+
# @return [Time]
|
|
56
|
+
required :updated_at, Time, api_name: :updatedAt
|
|
57
|
+
|
|
58
|
+
# @!method initialize(id:, archived_at:, created_at:, metadata:, type_id:, updated_at:)
|
|
59
|
+
# A stored entity instance tracked by the governance service for a given customer
|
|
60
|
+
#
|
|
61
|
+
# @param id [String] The unique identifier for the entity
|
|
62
|
+
#
|
|
63
|
+
# @param archived_at [Time, nil] Timestamp of when the record was deleted
|
|
64
|
+
#
|
|
65
|
+
# @param created_at [Time] Timestamp of when the record was created
|
|
66
|
+
#
|
|
67
|
+
# @param metadata [Hash{Symbol=>String}] Free-form key/value metadata attached to the entity
|
|
68
|
+
#
|
|
69
|
+
# @param type_id [String] The entity type identifier this entity instantiates
|
|
70
|
+
#
|
|
71
|
+
# @param updated_at [Time] Timestamp of when the record was last updated
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|