smplkit 3.0.114 → 3.0.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac8fe2c97dbe9e809353ffa9240572f0b8121322dce79d599308dba14bf89654
4
- data.tar.gz: '04689fee543ee875c6d8b0ba68ed3cbd67242a490bee6ed3dafd5b33e030348e'
3
+ metadata.gz: d8888472ad2b1c73c05d0b83ab61f4baada0cf9092a6992bca748995db90eb20
4
+ data.tar.gz: a3590a7f5a3651b65c3620b6bf71f5f2271566398d59f83f6df577a31d86627c
5
5
  SHA512:
6
- metadata.gz: 1f26e6bec44ef6259a7d384ce5cd80c99eba77116a73bd22c3be814fcf683712a6a8b2fd1774e3a0e76cfe58bf28fc0184edcd91266ce3b453db60dd1a6e7fea
7
- data.tar.gz: bee0e18d7f5d8f4b9bbe64085da2782888ecd82fff072c92d4f81c4379c27f21dfc82643d26261d7a7c0af809b58d112239ae12e840c11b989331dd22317fd29
6
+ metadata.gz: b44a039e00ab2bc2456a027d56e386fcb8c0053c549dc60425b78b0f319ff0c387fd710ccdd2e45d033681956bb800ec20c6a1d80fc5ed15650cf96de32bf5dc
7
+ data.tar.gz: c7f261894e9d31762af261a3413acd9d88396da7051a4dbd5c0feb8989146f3288d8b62c6bfcfa0942c02786c2c1b0efa7f74b0bb8837c57dedfed0bc4439ad9
@@ -25,13 +25,16 @@ module SmplkitGeneratedClient::Jobs
25
25
  # Job type. Only `http` is supported today.
26
26
  attr_accessor :type
27
27
 
28
- # The base schedule every environment inherits unless it overrides it, and the field that determines the job's `kind`. Omit it (or send `null`) to create a permanent **manual** job that never auto-fires and runs only when triggered. Provide a 5-field cron expression evaluated in **UTC** for a **recurring** job, an ISO-8601 datetime for a **one-off** run at that instant, or the literal `now` for a one-off run as soon as possible. A datetime or `now` job disables itself after it fires.
28
+ # The base schedule every environment inherits unless it overrides it, and the field that determines the job's `kind`. Omit it (or send `null`) to create a permanent **manual** job that never auto-fires and runs only when triggered. Provide a 5-field cron expression evaluated in the job's `timezone` (UTC by default) for a **recurring** job, an ISO-8601 datetime for a **one-off** run at that instant, or the literal `now` for a one-off run as soon as possible. A datetime or `now` job disables itself after it fires.
29
29
  attr_accessor :schedule
30
30
 
31
+ # IANA timezone the cron `schedule` is evaluated in (e.g. `America/New_York`); null or omitted means UTC. The base every environment inherits unless it sets its own `timezone`. The cron fires on this zone's wall clock (DST-aware) while `next_run_at` is still reported as a UTC instant. Only valid on a recurring (cron) job — it cannot be set on a manual or one-off job.
32
+ attr_accessor :timezone
33
+
31
34
  # The HTTP request to perform, including method, url, headers, body, and timeout.
32
35
  attr_accessor :configuration
33
36
 
34
- # Per-environment overrides keyed by environment key (e.g. `production`, `staging`). Each entry sets `enabled` (whether the job is enabled — scheduled, for a recurring job, or triggerable, for a manual job — in that environment), an optional `schedule` override (a cron expression for recurring jobs; omit to inherit the base `schedule`), and an optional `configuration` override (omit to inherit the base `configuration`); it also reports the read-only `next_run_at` for that environment. A job with no entry for an environment is disabled there. For a recurring or manual job, supply this map to choose where it runs. For a one-off job, the environment it is created in is recorded here automatically — name it with the `X-Smplkit-Environment` header. Every referenced environment must exist for the account.
37
+ # Per-environment overrides keyed by environment key (e.g. `production`, `staging`). Each entry sets `enabled` (whether the job is enabled — scheduled, for a recurring job, or triggerable, for a manual job — in that environment), an optional `schedule` override (a cron expression for recurring jobs; omit to inherit the base `schedule`), an optional `timezone` override (an IANA zone for recurring jobs; omit to inherit the base `timezone`, else UTC), and an optional `configuration` override (omit to inherit the base `configuration`); it also reports the read-only `next_run_at` for that environment. A job with no entry for an environment is disabled there. For a recurring or manual job, supply this map to choose where it runs. For a one-off job, the environment it is created in is recorded here automatically — name it with the `X-Smplkit-Environment` header. Every referenced environment must exist for the account.
35
38
  attr_accessor :environments
36
39
 
37
40
  # How overlapping runs are handled. `ALLOW` (the only value today) permits them.
@@ -81,6 +84,7 @@ module SmplkitGeneratedClient::Jobs
81
84
  :'description' => :'description',
82
85
  :'type' => :'type',
83
86
  :'schedule' => :'schedule',
87
+ :'timezone' => :'timezone',
84
88
  :'configuration' => :'configuration',
85
89
  :'environments' => :'environments',
86
90
  :'concurrency_policy' => :'concurrency_policy',
@@ -109,6 +113,7 @@ module SmplkitGeneratedClient::Jobs
109
113
  :'description' => :'String',
110
114
  :'type' => :'String',
111
115
  :'schedule' => :'String',
116
+ :'timezone' => :'String',
112
117
  :'configuration' => :'JobHttpConfiguration',
113
118
  :'environments' => :'Hash<String, JobEnvironment>',
114
119
  :'concurrency_policy' => :'String',
@@ -125,6 +130,7 @@ module SmplkitGeneratedClient::Jobs
125
130
  Set.new([
126
131
  :'description',
127
132
  :'schedule',
133
+ :'timezone',
128
134
  :'kind',
129
135
  :'created_at',
130
136
  :'updated_at',
@@ -169,6 +175,10 @@ module SmplkitGeneratedClient::Jobs
169
175
  self.schedule = attributes[:'schedule']
170
176
  end
171
177
 
178
+ if attributes.key?(:'timezone')
179
+ self.timezone = attributes[:'timezone']
180
+ end
181
+
172
182
  if attributes.key?(:'configuration')
173
183
  self.configuration = attributes[:'configuration']
174
184
  else
@@ -331,6 +341,7 @@ module SmplkitGeneratedClient::Jobs
331
341
  description == o.description &&
332
342
  type == o.type &&
333
343
  schedule == o.schedule &&
344
+ timezone == o.timezone &&
334
345
  configuration == o.configuration &&
335
346
  environments == o.environments &&
336
347
  concurrency_policy == o.concurrency_policy &&
@@ -350,7 +361,7 @@ module SmplkitGeneratedClient::Jobs
350
361
  # Calculates hash code according to all attributes.
351
362
  # @return [Integer] Hash code
352
363
  def hash
353
- [name, description, type, schedule, configuration, environments, concurrency_policy, kind, created_at, updated_at, deleted_at, version].hash
364
+ [name, description, type, schedule, timezone, configuration, environments, concurrency_policy, kind, created_at, updated_at, deleted_at, version].hash
354
365
  end
355
366
 
356
367
  # Builds the object from hash
@@ -19,9 +19,12 @@ module SmplkitGeneratedClient::Jobs
19
19
  # Whether the job schedules runs in this environment. A job runs in an environment only via this field; it is disabled in every environment by default.
20
20
  attr_accessor :enabled
21
21
 
22
- # Per-environment schedule override. Omit to inherit the job's base `schedule`. When present, it must be a 5-field cron expression evaluated in **UTC** (e.g. `0 3 * * *`), and is only allowed on a recurring (cron) job — it varies the cadence within that environment. It cannot appear on a manual or one-off job, and cannot change a job's kind.
22
+ # Per-environment schedule override. Omit to inherit the job's base `schedule`. When present, it must be a 5-field cron expression (e.g. `0 3 * * *`), evaluated in this environment's effective `timezone` (the per-environment override, else the base, else UTC), and is only allowed on a recurring (cron) job — it varies the cadence within that environment. It cannot appear on a manual or one-off job, and cannot change a job's kind.
23
23
  attr_accessor :schedule
24
24
 
25
+ # Per-environment timezone override for evaluating this environment's cron `schedule`. Omit to inherit the base `timezone` (else UTC). When present, it must be a valid IANA timezone key (e.g. `America/New_York`). Only valid on a recurring (cron) job; it may be set on an environment that inherits the base schedule (it need not also override `schedule`).
26
+ attr_accessor :timezone
27
+
25
28
  # Per-environment HTTP request override. Omit to inherit the job's base `configuration`. When present, it fully replaces the base configuration for runs in this environment.
26
29
  attr_accessor :configuration
27
30
 
@@ -33,6 +36,7 @@ module SmplkitGeneratedClient::Jobs
33
36
  {
34
37
  :'enabled' => :'enabled',
35
38
  :'schedule' => :'schedule',
39
+ :'timezone' => :'timezone',
36
40
  :'configuration' => :'configuration',
37
41
  :'next_run_at' => :'next_run_at'
38
42
  }
@@ -53,6 +57,7 @@ module SmplkitGeneratedClient::Jobs
53
57
  {
54
58
  :'enabled' => :'Boolean',
55
59
  :'schedule' => :'String',
60
+ :'timezone' => :'String',
56
61
  :'configuration' => :'JobHttpConfiguration',
57
62
  :'next_run_at' => :'Time'
58
63
  }
@@ -62,6 +67,7 @@ module SmplkitGeneratedClient::Jobs
62
67
  def self.openapi_nullable
63
68
  Set.new([
64
69
  :'schedule',
70
+ :'timezone',
65
71
  :'configuration',
66
72
  :'next_run_at'
67
73
  ])
@@ -93,6 +99,10 @@ module SmplkitGeneratedClient::Jobs
93
99
  self.schedule = attributes[:'schedule']
94
100
  end
95
101
 
102
+ if attributes.key?(:'timezone')
103
+ self.timezone = attributes[:'timezone']
104
+ end
105
+
96
106
  if attributes.key?(:'configuration')
97
107
  self.configuration = attributes[:'configuration']
98
108
  end
@@ -124,6 +134,7 @@ module SmplkitGeneratedClient::Jobs
124
134
  self.class == o.class &&
125
135
  enabled == o.enabled &&
126
136
  schedule == o.schedule &&
137
+ timezone == o.timezone &&
127
138
  configuration == o.configuration &&
128
139
  next_run_at == o.next_run_at
129
140
  end
@@ -137,7 +148,7 @@ module SmplkitGeneratedClient::Jobs
137
148
  # Calculates hash code according to all attributes.
138
149
  # @return [Integer] Hash code
139
150
  def hash
140
- [enabled, schedule, configuration, next_run_at].hash
151
+ [enabled, schedule, timezone, configuration, next_run_at].hash
141
152
  end
142
153
 
143
154
  # Builds the object from hash
@@ -39,6 +39,12 @@ describe SmplkitGeneratedClient::Jobs::JobEnvironment do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "timezone"' 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
+
42
48
  describe 'test attribute "configuration"' do
43
49
  it 'should work' do
44
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -55,6 +55,12 @@ describe SmplkitGeneratedClient::Jobs::Job do
55
55
  end
56
56
  end
57
57
 
58
+ describe 'test attribute "timezone"' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
61
+ end
62
+ end
63
+
58
64
  describe 'test attribute "configuration"' do
59
65
  it 'should work' do
60
66
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smplkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.114
4
+ version: 3.0.115
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smpl Solutions LLC