cdk8s 2.3.84 → 2.4.2

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.
package/.jsii CHANGED
@@ -1302,6 +1302,133 @@
1302
1302
  ],
1303
1303
  "symbolId": "src/chart:ChartProps"
1304
1304
  },
1305
+ "cdk8s.CronOptions": {
1306
+ "assembly": "cdk8s",
1307
+ "datatype": true,
1308
+ "docs": {
1309
+ "remarks": "All fields are strings so you can use complex expressions. Absence of\na field implies '*' or '?', whichever one is appropriate.",
1310
+ "stability": "stable",
1311
+ "summary": "Options to configure a cron expression."
1312
+ },
1313
+ "fqn": "cdk8s.CronOptions",
1314
+ "kind": "interface",
1315
+ "locationInModule": {
1316
+ "filename": "src/schedule.ts",
1317
+ "line": 79
1318
+ },
1319
+ "name": "CronOptions",
1320
+ "properties": [
1321
+ {
1322
+ "abstract": true,
1323
+ "docs": {
1324
+ "default": "- Every day of the month",
1325
+ "stability": "stable",
1326
+ "summary": "The day of the month to run this rule at."
1327
+ },
1328
+ "immutable": true,
1329
+ "locationInModule": {
1330
+ "filename": "src/schedule.ts",
1331
+ "line": 99
1332
+ },
1333
+ "name": "day",
1334
+ "optional": true,
1335
+ "type": {
1336
+ "primitive": "string"
1337
+ }
1338
+ },
1339
+ {
1340
+ "abstract": true,
1341
+ "docs": {
1342
+ "default": "- Every hour",
1343
+ "stability": "stable",
1344
+ "summary": "The hour to run this rule at."
1345
+ },
1346
+ "immutable": true,
1347
+ "locationInModule": {
1348
+ "filename": "src/schedule.ts",
1349
+ "line": 92
1350
+ },
1351
+ "name": "hour",
1352
+ "optional": true,
1353
+ "type": {
1354
+ "primitive": "string"
1355
+ }
1356
+ },
1357
+ {
1358
+ "abstract": true,
1359
+ "docs": {
1360
+ "default": "- Every minute",
1361
+ "stability": "stable",
1362
+ "summary": "The minute to run this rule at."
1363
+ },
1364
+ "immutable": true,
1365
+ "locationInModule": {
1366
+ "filename": "src/schedule.ts",
1367
+ "line": 85
1368
+ },
1369
+ "name": "minute",
1370
+ "optional": true,
1371
+ "type": {
1372
+ "primitive": "string"
1373
+ }
1374
+ },
1375
+ {
1376
+ "abstract": true,
1377
+ "docs": {
1378
+ "default": "- Every month",
1379
+ "stability": "stable",
1380
+ "summary": "The month to run this rule at."
1381
+ },
1382
+ "immutable": true,
1383
+ "locationInModule": {
1384
+ "filename": "src/schedule.ts",
1385
+ "line": 106
1386
+ },
1387
+ "name": "month",
1388
+ "optional": true,
1389
+ "type": {
1390
+ "primitive": "string"
1391
+ }
1392
+ },
1393
+ {
1394
+ "abstract": true,
1395
+ "docs": {
1396
+ "default": "- Any day of the week",
1397
+ "stability": "stable",
1398
+ "summary": "The day of the week to run this rule at."
1399
+ },
1400
+ "immutable": true,
1401
+ "locationInModule": {
1402
+ "filename": "src/schedule.ts",
1403
+ "line": 120
1404
+ },
1405
+ "name": "weekDay",
1406
+ "optional": true,
1407
+ "type": {
1408
+ "primitive": "string"
1409
+ }
1410
+ },
1411
+ {
1412
+ "abstract": true,
1413
+ "docs": {
1414
+ "default": "- Every year",
1415
+ "stability": "stable",
1416
+ "summary": "The year to run this rule at."
1417
+ },
1418
+ "immutable": true,
1419
+ "locationInModule": {
1420
+ "filename": "src/schedule.ts",
1421
+ "line": 113
1422
+ },
1423
+ "name": "year",
1424
+ "optional": true,
1425
+ "type": {
1426
+ "primitive": "string"
1427
+ }
1428
+ }
1429
+ ],
1430
+ "symbolId": "src/schedule:CronOptions"
1431
+ },
1305
1432
  "cdk8s.DependencyGraph": {
1306
1433
  "assembly": "cdk8s",
1307
1434
  "docs": {
@@ -1867,6 +1994,22 @@
1867
1994
  "primitive": "number"
1868
1995
  }
1869
1996
  }
1997
+ },
1998
+ {
1999
+ "docs": {
2000
+ "stability": "stable",
2001
+ "summary": "Return unit of Duration."
2002
+ },
2003
+ "locationInModule": {
2004
+ "filename": "src/duration.ts",
2005
+ "line": 200
2006
+ },
2007
+ "name": "unitLabel",
2008
+ "returns": {
2009
+ "type": {
2010
+ "primitive": "string"
2011
+ }
2012
+ }
1870
2013
  }
1871
2014
  ],
1872
2015
  "name": "Duration",
@@ -2862,6 +3005,132 @@
2862
3005
  ],
2863
3006
  "symbolId": "src/metadata:OwnerReference"
2864
3007
  },
3008
+ "cdk8s.Schedule": {
3009
+ "abstract": true,
3010
+ "assembly": "cdk8s",
3011
+ "docs": {
3012
+ "remarks": "Note that rates cannot be defined in fractions of minutes.",
3013
+ "stability": "stable",
3014
+ "summary": "Represents a schedule."
3015
+ },
3016
+ "fqn": "cdk8s.Schedule",
3017
+ "initializer": {
3018
+ "docs": {
3019
+ "stability": "stable"
3020
+ },
3021
+ "locationInModule": {
3022
+ "filename": "src/schedule.ts",
3023
+ "line": 64
3024
+ }
3025
+ },
3026
+ "kind": "class",
3027
+ "locationInModule": {
3028
+ "filename": "src/schedule.ts",
3029
+ "line": 8
3030
+ },
3031
+ "methods": [
3032
+ {
3033
+ "docs": {
3034
+ "stability": "stable",
3035
+ "summary": "Create a schedule from a set of cron fields."
3036
+ },
3037
+ "locationInModule": {
3038
+ "filename": "src/schedule.ts",
3039
+ "line": 37
3040
+ },
3041
+ "name": "cron",
3042
+ "parameters": [
3043
+ {
3044
+ "name": "options",
3045
+ "type": {
3046
+ "fqn": "cdk8s.CronOptions"
3047
+ }
3048
+ }
3049
+ ],
3050
+ "returns": {
3051
+ "type": {
3052
+ "fqn": "cdk8s.Schedule"
3053
+ }
3054
+ },
3055
+ "static": true
3056
+ },
3057
+ {
3058
+ "docs": {
3059
+ "stability": "stable",
3060
+ "summary": "Construct a schedule from a literal schedule expression."
3061
+ },
3062
+ "locationInModule": {
3063
+ "filename": "src/schedule.ts",
3064
+ "line": 14
3065
+ },
3066
+ "name": "expression",
3067
+ "parameters": [
3068
+ {
3069
+ "docs": {
3070
+ "remarks": "Must be in a format of 'value unit'",
3071
+ "summary": "The expression to use."
3072
+ },
3073
+ "name": "expression",
3074
+ "type": {
3075
+ "primitive": "string"
3076
+ }
3077
+ }
3078
+ ],
3079
+ "returns": {
3080
+ "type": {
3081
+ "fqn": "cdk8s.Schedule"
3082
+ }
3083
+ },
3084
+ "static": true
3085
+ },
3086
+ {
3087
+ "docs": {
3088
+ "remarks": "Rates may be defined with any unit of time, but when converted into minutes, the duration must be a positive whole number of minutes.",
3089
+ "stability": "stable",
3090
+ "summary": "Construct a schedule from an interval and a time unit."
3091
+ },
3092
+ "locationInModule": {
3093
+ "filename": "src/schedule.ts",
3094
+ "line": 23
3095
+ },
3096
+ "name": "rate",
3097
+ "parameters": [
3098
+ {
3099
+ "name": "duration",
3100
+ "type": {
3101
+ "fqn": "cdk8s.Duration"
3102
+ }
3103
+ }
3104
+ ],
3105
+ "returns": {
3106
+ "type": {
3107
+ "fqn": "cdk8s.Schedule"
3108
+ }
3109
+ },
3110
+ "static": true
3111
+ }
3112
+ ],
3113
+ "name": "Schedule",
3114
+ "properties": [
3115
+ {
3116
+ "abstract": true,
3117
+ "docs": {
3118
+ "stability": "stable",
3119
+ "summary": "Retrieve the expression for this schedule."
3120
+ },
3121
+ "immutable": true,
3122
+ "locationInModule": {
3123
+ "filename": "src/schedule.ts",
3124
+ "line": 62
3125
+ },
3126
+ "name": "expressionString",
3127
+ "type": {
3128
+ "primitive": "string"
3129
+ }
3130
+ }
3131
+ ],
3132
+ "symbolId": "src/schedule:Schedule"
3133
+ },
2865
3134
  "cdk8s.Size": {
2866
3135
  "assembly": "cdk8s",
2867
3136
  "docs": {
@@ -3311,7 +3580,7 @@
3311
3580
  "kind": "interface",
3312
3581
  "locationInModule": {
3313
3582
  "filename": "src/duration.ts",
3314
- "line": 212
3583
+ "line": 219
3315
3584
  },
3316
3585
  "name": "TimeConversionOptions",
3317
3586
  "properties": [
@@ -3325,7 +3594,7 @@
3325
3594
  "immutable": true,
3326
3595
  "locationInModule": {
3327
3596
  "filename": "src/duration.ts",
3328
- "line": 219
3597
+ "line": 226
3329
3598
  },
3330
3599
  "name": "integral",
3331
3600
  "optional": true,
@@ -3567,6 +3836,6 @@
3567
3836
  "symbolId": "src/app:YamlOutputType"
3568
3837
  }
3569
3838
  },
3570
- "version": "2.3.84",
3571
- "fingerprint": "C/9GlS9OFx0yA9EDf8GCuKbF9leqAlGgAK5VpEgSxDs="
3839
+ "version": "2.4.2",
3840
+ "fingerprint": "v8EI4N5VWL4s3zBAHatxM+lKQfjONJSEB/rCm+XrWwM="
3572
3841
  }
package/docs/java.md CHANGED
@@ -903,6 +903,106 @@ This namespace will only apply to objects that don't have a
903
903
 
904
904
  ---
905
905
 
906
+ ### CronOptions <a name="org.cdk8s.CronOptions"></a>
907
+
908
+ Options to configure a cron expression.
909
+
910
+ All fields are strings so you can use complex expressions. Absence of
911
+ a field implies '*' or '?', whichever one is appropriate.
912
+
913
+ #### Initializer <a name="[object Object].Initializer"></a>
914
+
915
+ ```java
916
+ import org.cdk8s.CronOptions;
917
+
918
+ CronOptions.builder()
919
+ // .day(java.lang.String)
920
+ // .hour(java.lang.String)
921
+ // .minute(java.lang.String)
922
+ // .month(java.lang.String)
923
+ // .weekDay(java.lang.String)
924
+ // .year(java.lang.String)
925
+ .build();
926
+ ```
927
+
928
+ ##### `day`<sup>Optional</sup> <a name="org.cdk8s.CronOptions.property.day"></a>
929
+
930
+ ```java
931
+ public java.lang.String getDay();
932
+ ```
933
+
934
+ - *Type:* `java.lang.String`
935
+ - *Default:* Every day of the month
936
+
937
+ The day of the month to run this rule at.
938
+
939
+ ---
940
+
941
+ ##### `hour`<sup>Optional</sup> <a name="org.cdk8s.CronOptions.property.hour"></a>
942
+
943
+ ```java
944
+ public java.lang.String getHour();
945
+ ```
946
+
947
+ - *Type:* `java.lang.String`
948
+ - *Default:* Every hour
949
+
950
+ The hour to run this rule at.
951
+
952
+ ---
953
+
954
+ ##### `minute`<sup>Optional</sup> <a name="org.cdk8s.CronOptions.property.minute"></a>
955
+
956
+ ```java
957
+ public java.lang.String getMinute();
958
+ ```
959
+
960
+ - *Type:* `java.lang.String`
961
+ - *Default:* Every minute
962
+
963
+ The minute to run this rule at.
964
+
965
+ ---
966
+
967
+ ##### `month`<sup>Optional</sup> <a name="org.cdk8s.CronOptions.property.month"></a>
968
+
969
+ ```java
970
+ public java.lang.String getMonth();
971
+ ```
972
+
973
+ - *Type:* `java.lang.String`
974
+ - *Default:* Every month
975
+
976
+ The month to run this rule at.
977
+
978
+ ---
979
+
980
+ ##### `weekDay`<sup>Optional</sup> <a name="org.cdk8s.CronOptions.property.weekDay"></a>
981
+
982
+ ```java
983
+ public java.lang.String getWeekDay();
984
+ ```
985
+
986
+ - *Type:* `java.lang.String`
987
+ - *Default:* Any day of the week
988
+
989
+ The day of the week to run this rule at.
990
+
991
+ ---
992
+
993
+ ##### `year`<sup>Optional</sup> <a name="org.cdk8s.CronOptions.property.year"></a>
994
+
995
+ ```java
996
+ public java.lang.String getYear();
997
+ ```
998
+
999
+ - *Type:* `java.lang.String`
1000
+ - *Default:* Every year
1001
+
1002
+ The year to run this rule at.
1003
+
1004
+ ---
1005
+
906
1006
  ### GroupVersionKind <a name="org.cdk8s.GroupVersionKind"></a>
907
1007
 
908
1008
  #### Initializer <a name="[object Object].Initializer"></a>
@@ -1784,6 +1884,12 @@ public toSeconds(TimeConversionOptions opts)
1784
1884
 
1785
1885
  ---
1786
1886
 
1887
+ ##### `unitLabel` <a name="org.cdk8s.Duration.unitLabel"></a>
1888
+
1889
+ ```java
1890
+ public unitLabel()
1891
+ ```
1892
+
1787
1893
  #### Static Functions <a name="Static Functions"></a>
1788
1894
 
1789
1895
  ##### `days` <a name="org.cdk8s.Duration.days"></a>
@@ -2124,6 +2230,84 @@ Name options.
2124
2230
 
2125
2231
 
2126
2232
 
2233
+ ### Schedule <a name="org.cdk8s.Schedule"></a>
2234
+
2235
+ Represents a schedule.
2236
+
2237
+ Note that rates cannot be defined in fractions of minutes.
2238
+
2239
+ #### Initializers <a name="org.cdk8s.Schedule.Initializer"></a>
2240
+
2241
+ ```java
2242
+ import org.cdk8s.Schedule;
2243
+
2244
+ new Schedule();
2245
+ ```
2246
+
2247
+
2248
+ #### Static Functions <a name="Static Functions"></a>
2249
+
2250
+ ##### `cron` <a name="org.cdk8s.Schedule.cron"></a>
2251
+
2252
+ ```java
2253
+ import org.cdk8s.Schedule;
2254
+
2255
+ Schedule.cron(CronOptions options)
2256
+ ```
2257
+
2258
+ ###### `options`<sup>Required</sup> <a name="org.cdk8s.Schedule.parameter.options"></a>
2259
+
2260
+ - *Type:* [`org.cdk8s.CronOptions`](#org.cdk8s.CronOptions)
2261
+
2262
+ ---
2263
+
2264
+ ##### `expression` <a name="org.cdk8s.Schedule.expression"></a>
2265
+
2266
+ ```java
2267
+ import org.cdk8s.Schedule;
2268
+
2269
+ Schedule.expression(java.lang.String expression)
2270
+ ```
2271
+
2272
+ ###### `expression`<sup>Required</sup> <a name="org.cdk8s.Schedule.parameter.expression"></a>
2273
+
2274
+ - *Type:* `java.lang.String`
2275
+
2276
+ The expression to use.
2277
+
2278
+ Must be in a format of 'value unit'
2279
+
2280
+ ---
2281
+
2282
+ ##### `rate` <a name="org.cdk8s.Schedule.rate"></a>
2283
+
2284
+ ```java
2285
+ import org.cdk8s.Schedule;
2286
+
2287
+ Schedule.rate(Duration duration)
2288
+ ```
2289
+
2290
+ ###### `duration`<sup>Required</sup> <a name="org.cdk8s.Schedule.parameter.duration"></a>
2291
+
2292
+ - *Type:* [`org.cdk8s.Duration`](#org.cdk8s.Duration)
2293
+
2294
+ ---
2295
+
2296
+ #### Properties <a name="Properties"></a>
2297
+
2298
+ ##### `expressionString`<sup>Required</sup> <a name="org.cdk8s.Schedule.property.expressionString"></a>
2299
+
2300
+ ```java
2301
+ public java.lang.String getExpressionString();
2302
+ ```
2303
+
2304
+ - *Type:* `java.lang.String`
2305
+
2306
+ Retrieve the expression for this schedule.
2307
+
2308
+ ---
2309
+
2310
+
2127
2311
  ### Size <a name="org.cdk8s.Size"></a>
2128
2312
 
2129
2313
  Represents the amount of digital storage.