Skip to content

Commit 906f0f6

Browse files
Rebuilt with latest dependency updates
1 parent 8a1dae1 commit 906f0f6

2 files changed

Lines changed: 114 additions & 91 deletions

File tree

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/src/generated_sdk.rs

Lines changed: 102 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2160,11 +2160,14 @@ pub mod types {
21602160
impl ::std::str::FromStr for AlertSubscription {
21612161
type Err = self::error::ConversionError;
21622162
fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
2163-
if regress::Regex::new("^([a-zA-Z0-9_]+|\\*|\\*\\*)(\\.([a-zA-Z0-9_]+|\\*|\\*\\*))*$")
2164-
.unwrap()
2165-
.find(value)
2166-
.is_none()
2167-
{
2163+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
2164+
::std::sync::LazyLock::new(|| {
2165+
::regress::Regex::new(
2166+
"^([a-zA-Z0-9_]+|\\*|\\*\\*)(\\.([a-zA-Z0-9_]+|\\*|\\*\\*))*$",
2167+
)
2168+
.unwrap()
2169+
});
2170+
if (&*PATTERN).find(value).is_none() {
21682171
return Err("doesn't match pattern \
21692172
\"^([a-zA-Z0-9_]+|\\*|\\*\\*)(\\.([a-zA-Z0-9_]+|\\*|\\*\\*))*$\""
21702173
.into());
@@ -12613,13 +12616,15 @@ pub mod types {
1261312616
if value.chars().count() < 1usize {
1261412617
return Err("shorter than 1 characters".into());
1261512618
}
12616-
if regress::Regex::new(
12617-
"^([a-zA-Z0-9]+[a-zA-Z0-9\\-]*(?<!-))(\\.[a-zA-Z0-9]+[a-zA-Z0-9\\-]*(?<!-))*$",
12618-
)
12619-
.unwrap()
12620-
.find(value)
12621-
.is_none()
12622-
{
12619+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
12620+
::std::sync::LazyLock::new(|| {
12621+
::regress::Regex::new(
12622+
"^([a-zA-Z0-9]+[a-zA-Z0-9\\-]*(?<!-))(\\.[a-zA-Z0-9]+[a-zA-Z0-9\\-]*(?<!\
12623+
-))*$",
12624+
)
12625+
.unwrap()
12626+
});
12627+
if (&*PATTERN).find(value).is_none() {
1262312628
return Err("doesn't match pattern \
1262412629
\"^([a-zA-Z0-9]+[a-zA-Z0-9\\-]*(?<!-))(\\.[a-zA-Z0-9]+[a-zA-Z0-9\\\
1262512630
-]*(?<!-))*$\""
@@ -16791,15 +16796,16 @@ pub mod types {
1679116796
impl ::std::str::FromStr for Ipv4Net {
1679216797
type Err = self::error::ConversionError;
1679316798
fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
16794-
if regress::Regex::new(
16795-
"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.\
16796-
){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/\
16797-
([0-9]|1[0-9]|2[0-9]|3[0-2])$",
16798-
)
16799-
.unwrap()
16800-
.find(value)
16801-
.is_none()
16802-
{
16799+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
16800+
::std::sync::LazyLock::new(|| {
16801+
::regress::Regex::new(
16802+
"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.\
16803+
){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/\
16804+
([0-9]|1[0-9]|2[0-9]|3[0-2])$",
16805+
)
16806+
.unwrap()
16807+
});
16808+
if (&*PATTERN).find(value).is_none() {
1680316809
return Err("doesn't match pattern \
1680416810
\"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.\
1680516811
){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/\
@@ -17017,22 +17023,24 @@ pub mod types {
1701717023
impl ::std::str::FromStr for Ipv6Net {
1701817024
type Err = self::error::ConversionError;
1701917025
fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
17020-
if regress::Regex::new(
17021-
"^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:\
17022-
|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:\
17023-
[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,\
17024-
3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:\
17025-
[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:\
17026-
[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:\
17027-
0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,\
17028-
3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:\
17029-
((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,\
17030-
1}[0-9]){0,1}[0-9]))\\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$",
17031-
)
17032-
.unwrap()
17033-
.find(value)
17034-
.is_none()
17035-
{
17026+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
17027+
::std::sync::LazyLock::new(|| {
17028+
::regress::Regex::new(
17029+
"^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:\
17030+
|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:\
17031+
[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,\
17032+
3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:\
17033+
){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,\
17034+
6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%\
17035+
[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,\
17036+
1}[0-9]){0,1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,\
17037+
1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,\
17038+
1}[0-9])\\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\\/\
17039+
([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8])$",
17040+
)
17041+
.unwrap()
17042+
});
17043+
if (&*PATTERN).find(value).is_none() {
1703617044
return Err("doesn't match pattern \
1703717045
\"^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,\
1703817046
7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,\
@@ -17256,11 +17264,11 @@ pub mod types {
1725617264
if value.chars().count() < 1usize {
1725717265
return Err("shorter than 1 characters".into());
1725817266
}
17259-
if regress::Regex::new("^[0-9]{1,5}(-[0-9]{1,5})?$")
17260-
.unwrap()
17261-
.find(value)
17262-
.is_none()
17263-
{
17267+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
17268+
::std::sync::LazyLock::new(|| {
17269+
::regress::Regex::new("^[0-9]{1,5}(-[0-9]{1,5})?$").unwrap()
17270+
});
17271+
if (&*PATTERN).find(value).is_none() {
1726417272
return Err("doesn't match pattern \"^[0-9]{1,5}(-[0-9]{1,5})?$\"".into());
1726517273
}
1726617274
Ok(Self(value.to_string()))
@@ -18391,11 +18399,11 @@ pub mod types {
1839118399
if value.chars().count() < 5usize {
1839218400
return Err("shorter than 5 characters".into());
1839318401
}
18394-
if regress::Regex::new("^([0-9a-fA-F]{0,2}:){5}[0-9a-fA-F]{0,2}$")
18395-
.unwrap()
18396-
.find(value)
18397-
.is_none()
18398-
{
18402+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
18403+
::std::sync::LazyLock::new(|| {
18404+
::regress::Regex::new("^([0-9a-fA-F]{0,2}:){5}[0-9a-fA-F]{0,2}$").unwrap()
18405+
});
18406+
if (&*PATTERN).find(value).is_none() {
1839918407
return Err(
1840018408
"doesn't match pattern \"^([0-9a-fA-F]{0,2}:){5}[0-9a-fA-F]{0,2}$\"".into(),
1840118409
);
@@ -18821,7 +18829,14 @@ pub mod types {
1882118829
if value.chars().count() < 1usize {
1882218830
return Err("shorter than 1 characters".into());
1882318831
}
18824-
if regress :: Regex :: new ("^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$") . unwrap () . find (value) . is_none () { return Err ("doesn't match pattern \"^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$\"" . into ()) ; }
18832+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> = ::std::sync::LazyLock::new(
18833+
|| {
18834+
:: regress :: Regex :: new ("^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$") . unwrap ()
18835+
},
18836+
);
18837+
if (&*PATTERN).find(value).is_none() {
18838+
return Err ("doesn't match pattern \"^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$\"" . into ()) ;
18839+
}
1882518840
Ok(Self(value.to_string()))
1882618841
}
1882718842
}
@@ -21476,11 +21491,9 @@ pub mod types {
2147621491
if value.chars().count() > 63usize {
2147721492
return Err("longer than 63 characters".into());
2147821493
}
21479-
if regress::Regex::new("[a-z-]+\\.[a-z-]+")
21480-
.unwrap()
21481-
.find(value)
21482-
.is_none()
21483-
{
21494+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
21495+
::std::sync::LazyLock::new(|| ::regress::Regex::new("[a-z-]+\\.[a-z-]+").unwrap());
21496+
if (&*PATTERN).find(value).is_none() {
2148421497
return Err("doesn't match pattern \"[a-z-]+\\.[a-z-]+\"".into());
2148521498
}
2148621499
Ok(Self(value.to_string()))
@@ -22924,15 +22937,16 @@ pub mod types {
2292422937
impl ::std::str::FromStr for SetTargetReleaseParamsSystemVersion {
2292522938
type Err = self::error::ConversionError;
2292622939
fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
22927-
if regress::Regex::new(
22928-
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*\
22929-
[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\
22930-
+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
22931-
)
22932-
.unwrap()
22933-
.find(value)
22934-
.is_none()
22935-
{
22940+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
22941+
::std::sync::LazyLock::new(|| {
22942+
::regress::Regex::new(
22943+
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*\
22944+
[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*\
22945+
))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
22946+
)
22947+
.unwrap()
22948+
});
22949+
if (&*PATTERN).find(value).is_none() {
2293622950
return Err("doesn't match pattern \
2293722951
\"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*\
2293822952
|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*\
@@ -27997,15 +28011,16 @@ pub mod types {
2799728011
impl ::std::str::FromStr for TargetReleaseSourceVersion {
2799828012
type Err = self::error::ConversionError;
2799928013
fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
28000-
if regress::Regex::new(
28001-
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*\
28002-
[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\
28003-
+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
28004-
)
28005-
.unwrap()
28006-
.find(value)
28007-
.is_none()
28008-
{
28014+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
28015+
::std::sync::LazyLock::new(|| {
28016+
::regress::Regex::new(
28017+
"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*\
28018+
[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*\
28019+
))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
28020+
)
28021+
.unwrap()
28022+
});
28023+
if (&*PATTERN).find(value).is_none() {
2800928024
return Err("doesn't match pattern \
2801028025
\"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*\
2801128026
|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*\
@@ -28307,13 +28322,14 @@ pub mod types {
2830728322
impl ::std::str::FromStr for TimeseriesName {
2830828323
type Err = self::error::ConversionError;
2830928324
fn from_str(value: &str) -> ::std::result::Result<Self, self::error::ConversionError> {
28310-
if regress::Regex::new(
28311-
"^(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*):(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*)$",
28312-
)
28313-
.unwrap()
28314-
.find(value)
28315-
.is_none()
28316-
{
28325+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> =
28326+
::std::sync::LazyLock::new(|| {
28327+
::regress::Regex::new(
28328+
"^(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*):(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*)$",
28329+
)
28330+
.unwrap()
28331+
});
28332+
if (&*PATTERN).find(value).is_none() {
2831728333
return Err("doesn't match pattern \
2831828334
\"^(([a-z]+[a-z0-9]*)(_([a-z0-9]+))*):(([a-z]+[a-z0-9]*\
2831928335
)(_([a-z0-9]+))*)$\""
@@ -29546,7 +29562,14 @@ pub mod types {
2954629562
if value.chars().count() < 1usize {
2954729563
return Err("shorter than 1 characters".into());
2954829564
}
29549-
if regress :: Regex :: new ("^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$") . unwrap () . find (value) . is_none () { return Err ("doesn't match pattern \"^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$\"" . into ()) ; }
29565+
static PATTERN: ::std::sync::LazyLock<::regress::Regex> = ::std::sync::LazyLock::new(
29566+
|| {
29567+
:: regress :: Regex :: new ("^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$") . unwrap ()
29568+
},
29569+
);
29570+
if (&*PATTERN).find(value).is_none() {
29571+
return Err ("doesn't match pattern \"^(?![0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)^[a-z]([a-zA-Z0-9-]*[a-zA-Z0-9]+)?$\"" . into ()) ;
29572+
}
2955029573
Ok(Self(value.to_string()))
2955129574
}
2955229575
}

0 commit comments

Comments
 (0)