Skip to content

Commit b0a8830

Browse files
authored
Bump up googleapis to latest version (#366)
1 parent e4a03a4 commit b0a8830

35 files changed

+7611
-2708
lines changed

artifact-registry/src/client.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ mod tests {
153153
cleanup_policy_dry_run: false,
154154
format_config: None,
155155
mode_config: None,
156+
vulnerability_scanning_config: None,
157+
disallow_unspecified_mode: false,
158+
satisfies_pzi: false,
159+
registry_uri: "".to_string(),
156160
}),
157161
};
158162
let mut created_repository = client.create_repository(create_request.clone(), None).await.unwrap();
@@ -187,6 +191,8 @@ mod tests {
187191
parent: create_request.parent.to_string(),
188192
page_size: 0,
189193
page_token: "".to_string(),
194+
order_by: "".to_string(),
195+
filter: "".to_string(),
190196
};
191197
let list_result = client.list_repositories(list_request, None).await.unwrap();
192198
assert!(!list_result.repositories.is_empty());

googleapis/googleapis

Submodule googleapis updated 5586 files

googleapis/src/bytes/google.api.rs

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,9 @@ pub struct CommonLanguageSettings {
444444
/// The destination where API teams want this client library to be published.
445445
#[prost(enumeration = "ClientLibraryDestination", repeated, tag = "2")]
446446
pub destinations: ::prost::alloc::vec::Vec<i32>,
447+
/// Configuration for which RPCs should be generated in the GAPIC client.
448+
#[prost(message, optional, tag = "3")]
449+
pub selective_gapic_generation: ::core::option::Option<SelectiveGapicGeneration>,
447450
}
448451
/// Details about how and where to publish client libraries.
449452
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -613,6 +616,18 @@ pub mod python_settings {
613616
/// feature in preview packages.
614617
#[prost(bool, tag = "1")]
615618
pub rest_async_io_enabled: bool,
619+
/// Enables generation of protobuf code using new types that are more
620+
/// Pythonic which are included in `protobuf>=5.29.x`. This feature will be
621+
/// enabled by default 1 month after launching the feature in preview
622+
/// packages.
623+
#[prost(bool, tag = "2")]
624+
pub protobuf_pythonic_types_enabled: bool,
625+
/// Disables generation of an unversioned Python package for this client
626+
/// library. This means that the module names will need to be versioned in
627+
/// import statements. For example `import google.cloud.library_v2` instead
628+
/// of `import google.cloud.library`.
629+
#[prost(bool, tag = "3")]
630+
pub unversioned_package_disabled: bool,
616631
}
617632
}
618633
/// Settings for Node client libraries.
@@ -680,6 +695,19 @@ pub struct GoSettings {
680695
/// Some settings.
681696
#[prost(message, optional, tag = "1")]
682697
pub common: ::core::option::Option<CommonLanguageSettings>,
698+
/// Map of service names to renamed services. Keys are the package relative
699+
/// service names and values are the name to be used for the service client
700+
/// and call options.
701+
///
702+
/// publishing:
703+
/// go_settings:
704+
/// renamed_services:
705+
/// Publisher: TopicAdmin
706+
#[prost(map = "string, string", tag = "2")]
707+
pub renamed_services: ::std::collections::HashMap<
708+
::prost::alloc::string::String,
709+
::prost::alloc::string::String,
710+
>,
683711
}
684712
/// Describes the generator configuration for a method.
685713
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -753,6 +781,23 @@ pub mod method_settings {
753781
pub total_poll_timeout: ::core::option::Option<::prost_types::Duration>,
754782
}
755783
}
784+
/// This message is used to configure the generation of a subset of the RPCs in
785+
/// a service for client libraries.
786+
#[derive(Clone, PartialEq, ::prost::Message)]
787+
pub struct SelectiveGapicGeneration {
788+
/// An allowlist of the fully qualified names of RPCs that should be included
789+
/// on public client surfaces.
790+
#[prost(string, repeated, tag = "1")]
791+
pub methods: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
792+
/// Setting this to true indicates to the client generators that methods
793+
/// that would be excluded from the generation should instead be generated
794+
/// in a way that indicates these methods should not be consumed by
795+
/// end users. How this is expressed is up to individual language
796+
/// implementations to decide. Some examples may be: added annotations,
797+
/// obfuscated identifiers, or other language idiomatic patterns.
798+
#[prost(bool, tag = "2")]
799+
pub generate_omitted_as_internal: bool,
800+
}
756801
/// The organization for which the client libraries are being published.
757802
/// Affects the url where generated docs are published, etc.
758803
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
@@ -1230,7 +1275,7 @@ pub struct ResourceReference {
12301275
/// The routing header consists of one or multiple key-value pairs. Every key
12311276
/// and value must be percent-encoded, and joined together in the format of
12321277
/// `key1=value1&key2=value2`.
1233-
/// In the examples below I am skipping the percent-encoding for readablity.
1278+
/// The examples below skip the percent-encoding for readability.
12341279
///
12351280
/// Example 1
12361281
///

googleapis/src/bytes/google.cloud.bigquery.storage.v1.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,11 +1113,23 @@ pub struct AppendRowsRequest {
11131113
/// request and currently, it will be ignored if specified in following
11141114
/// requests. Following requests must have data in the same format as the
11151115
/// initial request.
1116-
#[prost(oneof = "append_rows_request::Rows", tags = "4")]
1116+
#[prost(oneof = "append_rows_request::Rows", tags = "4, 5")]
11171117
pub rows: ::core::option::Option<append_rows_request::Rows>,
11181118
}
11191119
/// Nested message and enum types in `AppendRowsRequest`.
11201120
pub mod append_rows_request {
1121+
/// Arrow schema and data.
1122+
/// Arrow format is an experimental feature only selected for allowlisted
1123+
/// customers.
1124+
#[derive(Clone, PartialEq, ::prost::Message)]
1125+
pub struct ArrowData {
1126+
/// Optional. Arrow Schema used to serialize the data.
1127+
#[prost(message, optional, tag = "1")]
1128+
pub writer_schema: ::core::option::Option<super::ArrowSchema>,
1129+
/// Required. Serialized row data in Arrow format.
1130+
#[prost(message, optional, tag = "2")]
1131+
pub rows: ::core::option::Option<super::ArrowRecordBatch>,
1132+
}
11211133
/// ProtoData contains the data rows and schema when constructing append
11221134
/// requests.
11231135
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -1195,6 +1207,10 @@ pub mod append_rows_request {
11951207
/// Rows in proto format.
11961208
#[prost(message, tag = "4")]
11971209
ProtoRows(ProtoData),
1210+
/// Rows in arrow format. This is an experimental feature only selected for
1211+
/// allowlisted customers.
1212+
#[prost(message, tag = "5")]
1213+
ArrowRows(ArrowData),
11981214
}
11991215
}
12001216
/// Response message for `AppendRows`.

googleapis/src/bytes/google.cloud.kms.v1.rs

Lines changed: 128 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub struct CryptoKey {
9898
/// where all related cryptographic operations are performed. Only applicable
9999
/// if [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] have a
100100
/// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
101-
/// [EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC], with the
101+
/// [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC], with the
102102
/// resource name in the format `projects/*/locations/*/ekmConnections/*`.
103103
/// Note, this list is non-exhaustive and may apply to additional
104104
/// [ProtectionLevels][google.cloud.kms.v1.ProtectionLevel] in the future.
@@ -478,6 +478,7 @@ pub mod crypto_key_version {
478478
/// The suffix following `HMAC_` corresponds to the hash algorithm being used
479479
/// (eg. SHA256).
480480
///
481+
///
481482
/// For more information, see \[Key purposes and algorithms\]
482483
/// (<https://cloud.google.com/kms/docs/algorithms>).
483484
#[derive(
@@ -572,6 +573,12 @@ pub mod crypto_key_version {
572573
HmacSha224 = 36,
573574
/// Algorithm representing symmetric encryption by an external key manager.
574575
ExternalSymmetricEncryption = 18,
576+
/// The post-quantum Module-Lattice-Based Digital Signature Algorithm, at
577+
/// security level 3. Randomized version.
578+
PqSignMlDsa65 = 56,
579+
/// The post-quantum stateless hash-based digital signature algorithm, at
580+
/// security level 1. Randomized version.
581+
PqSignSlhDsaSha2128s = 57,
575582
}
576583
impl CryptoKeyVersionAlgorithm {
577584
/// String value of the enum field names used in the ProtoBuf definition.
@@ -616,6 +623,8 @@ pub mod crypto_key_version {
616623
Self::HmacSha512 => "HMAC_SHA512",
617624
Self::HmacSha224 => "HMAC_SHA224",
618625
Self::ExternalSymmetricEncryption => "EXTERNAL_SYMMETRIC_ENCRYPTION",
626+
Self::PqSignMlDsa65 => "PQ_SIGN_ML_DSA_65",
627+
Self::PqSignSlhDsaSha2128s => "PQ_SIGN_SLH_DSA_SHA2_128S",
619628
}
620629
}
621630
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -659,6 +668,8 @@ pub mod crypto_key_version {
659668
"EXTERNAL_SYMMETRIC_ENCRYPTION" => {
660669
Some(Self::ExternalSymmetricEncryption)
661670
}
671+
"PQ_SIGN_ML_DSA_65" => Some(Self::PqSignMlDsa65),
672+
"PQ_SIGN_SLH_DSA_SHA2_128S" => Some(Self::PqSignSlhDsaSha2128s),
662673
_ => None,
663674
}
664675
}
@@ -822,6 +833,29 @@ pub mod crypto_key_version {
822833
}
823834
}
824835
}
836+
/// Data with integrity verification field.
837+
#[derive(Clone, PartialEq, ::prost::Message)]
838+
pub struct ChecksummedData {
839+
/// Raw Data.
840+
#[prost(bytes = "bytes", tag = "3")]
841+
pub data: ::prost::bytes::Bytes,
842+
/// Integrity verification field. A CRC32C
843+
/// checksum of the returned
844+
/// [ChecksummedData.data][google.cloud.kms.v1.ChecksummedData.data]. An
845+
/// integrity check of
846+
/// [ChecksummedData.data][google.cloud.kms.v1.ChecksummedData.data] can be
847+
/// performed by computing the CRC32C checksum of
848+
/// [ChecksummedData.data][google.cloud.kms.v1.ChecksummedData.data] and
849+
/// comparing your results to this field. Discard the response in case of
850+
/// non-matching checksum values, and perform a limited number of retries. A
851+
/// persistent mismatch may indicate an issue in your computation of the CRC32C
852+
/// checksum. Note: This field is defined as int64 for reasons of compatibility
853+
/// across different languages. However, it is a non-negative integer, which
854+
/// will never exceed `2^32-1`, and can be safely downconverted to uint32 in
855+
/// languages that support this type.
856+
#[prost(message, optional, tag = "2")]
857+
pub crc32c_checksum: ::core::option::Option<i64>,
858+
}
825859
/// The public keys for a given
826860
/// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via
827861
/// [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
@@ -849,8 +883,8 @@ pub struct PublicKey {
849883
/// mismatch may indicate an issue in your computation of the CRC32C checksum.
850884
/// Note: This field is defined as int64 for reasons of compatibility across
851885
/// different languages. However, it is a non-negative integer, which will
852-
/// never exceed 2^32-1, and can be safely downconverted to uint32 in languages
853-
/// that support this type.
886+
/// never exceed `2^32-1`, and can be safely downconverted to uint32 in
887+
/// languages that support this type.
854888
///
855889
/// NOTE: This field is in Beta.
856890
#[prost(message, optional, tag = "3")]
@@ -866,6 +900,78 @@ pub struct PublicKey {
866900
/// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
867901
#[prost(enumeration = "ProtectionLevel", tag = "5")]
868902
pub protection_level: i32,
903+
/// The [PublicKey][google.cloud.kms.v1.PublicKey] format specified by the
904+
/// customer through the
905+
/// [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
906+
/// field.
907+
#[prost(enumeration = "public_key::PublicKeyFormat", tag = "7")]
908+
pub public_key_format: i32,
909+
/// This field contains the public key (with integrity verification), formatted
910+
/// according to the
911+
/// [public_key_format][google.cloud.kms.v1.PublicKey.public_key_format] field.
912+
#[prost(message, optional, tag = "8")]
913+
pub public_key: ::core::option::Option<ChecksummedData>,
914+
}
915+
/// Nested message and enum types in `PublicKey`.
916+
pub mod public_key {
917+
/// The supported [PublicKey][google.cloud.kms.v1.PublicKey] formats.
918+
#[derive(
919+
Clone,
920+
Copy,
921+
Debug,
922+
PartialEq,
923+
Eq,
924+
Hash,
925+
PartialOrd,
926+
Ord,
927+
::prost::Enumeration
928+
)]
929+
#[repr(i32)]
930+
pub enum PublicKeyFormat {
931+
/// If the
932+
/// [public_key_format][google.cloud.kms.v1.GetPublicKeyRequest.public_key_format]
933+
/// field is not specified:
934+
/// - For PQC algorithms, an error will be returned.
935+
/// - For non-PQC algorithms, the default format is PEM, and the field
936+
/// [pem][google.cloud.kms.v1.PublicKey.pem] will be populated.
937+
///
938+
/// Otherwise, the public key will be exported through the
939+
/// [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
940+
/// requested format.
941+
Unspecified = 0,
942+
/// The returned public key will be encoded in PEM format.
943+
/// See the [RFC7468](<https://tools.ietf.org/html/rfc7468>) sections for
944+
/// [General Considerations](<https://tools.ietf.org/html/rfc7468#section-2>)
945+
/// and \[Textual Encoding of Subject Public Key Info\]
946+
/// (<https://tools.ietf.org/html/rfc7468#section-13>) for more information.
947+
Pem = 1,
948+
/// This is supported only for PQC algorithms.
949+
/// The key material is returned in the format defined by NIST PQC
950+
/// standards (FIPS 203, FIPS 204, and FIPS 205).
951+
NistPqc = 3,
952+
}
953+
impl PublicKeyFormat {
954+
/// String value of the enum field names used in the ProtoBuf definition.
955+
///
956+
/// The values are not transformed in any way and thus are considered stable
957+
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
958+
pub fn as_str_name(&self) -> &'static str {
959+
match self {
960+
Self::Unspecified => "PUBLIC_KEY_FORMAT_UNSPECIFIED",
961+
Self::Pem => "PEM",
962+
Self::NistPqc => "NIST_PQC",
963+
}
964+
}
965+
/// Creates an enum from field names used in the ProtoBuf definition.
966+
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
967+
match value {
968+
"PUBLIC_KEY_FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
969+
"PEM" => Some(Self::Pem),
970+
"NIST_PQC" => Some(Self::NistPqc),
971+
_ => None,
972+
}
973+
}
974+
}
869975
}
870976
/// An [ImportJob][google.cloud.kms.v1.ImportJob] can be used to create
871977
/// [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
@@ -1551,6 +1657,15 @@ pub struct GetPublicKeyRequest {
15511657
/// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key to get.
15521658
#[prost(string, tag = "1")]
15531659
pub name: ::prost::alloc::string::String,
1660+
/// Optional. The [PublicKey][google.cloud.kms.v1.PublicKey] format specified
1661+
/// by the user. This field is required for PQC algorithms. If specified, the
1662+
/// public key will be exported through the
1663+
/// [public_key][google.cloud.kms.v1.PublicKey.public_key] field in the
1664+
/// requested format. Otherwise, the [pem][google.cloud.kms.v1.PublicKey.pem]
1665+
/// field will be populated for non-PQC algorithms, and an error will be
1666+
/// returned for PQC algorithms.
1667+
#[prost(enumeration = "public_key::PublicKeyFormat", tag = "2")]
1668+
pub public_key_format: i32,
15541669
}
15551670
/// Request message for
15561671
/// [KeyManagementService.GetImportJob][google.cloud.kms.v1.KeyManagementService.GetImportJob].
@@ -1643,7 +1758,9 @@ pub struct ImportCryptoKeyVersionRequest {
16431758
/// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion], the
16441759
/// [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] must be a child of
16451760
/// [ImportCryptoKeyVersionRequest.parent][google.cloud.kms.v1.ImportCryptoKeyVersionRequest.parent],
1646-
/// have been previously created via [ImportCryptoKeyVersion][], and be in
1761+
/// have been previously created via
1762+
/// [ImportCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion],
1763+
/// and be in
16471764
/// [DESTROYED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED]
16481765
/// or
16491766
/// [IMPORT_FAILED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED]
@@ -2303,7 +2420,8 @@ pub struct MacVerifyRequest {
23032420
/// checksum. [KeyManagementService][google.cloud.kms.v1.KeyManagementService]
23042421
/// will report an error if the checksum verification fails. If you receive a
23052422
/// checksum error, your client should verify that
2306-
/// CRC32C([MacVerifyRequest.tag][]) is equal to
2423+
/// CRC32C([MacVerifyRequest.mac][google.cloud.kms.v1.MacVerifyRequest.mac]) is
2424+
/// equal to
23072425
/// [MacVerifyRequest.mac_crc32c][google.cloud.kms.v1.MacVerifyRequest.mac_crc32c],
23082426
/// and if so, perform a limited number of retries. A persistent mismatch may
23092427
/// indicate an issue in your computation of the CRC32C checksum. Note: This
@@ -4066,7 +4184,7 @@ pub struct Certificate {
40664184
/// [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
40674185
/// [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] with a
40684186
/// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
4069-
/// [EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC], as well as
4187+
/// [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC], as well as
40704188
/// performing cryptographic operations using keys created within the
40714189
/// [EkmConnection][google.cloud.kms.v1.EkmConnection].
40724190
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -4169,6 +4287,7 @@ pub mod ekm_connection {
41694287
/// All [CryptoKeys][google.cloud.kms.v1.CryptoKey] created with this
41704288
/// [EkmConnection][google.cloud.kms.v1.EkmConnection] use EKM-side key
41714289
/// management operations initiated from Cloud KMS. This means that:
4290+
///
41724291
/// * When a [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]
41734292
/// associated with this [EkmConnection][google.cloud.kms.v1.EkmConnection]
41744293
/// is
@@ -4177,7 +4296,8 @@ pub mod ekm_connection {
41774296
/// external key material.
41784297
/// * Destruction of external key material associated with this
41794298
/// [EkmConnection][google.cloud.kms.v1.EkmConnection] can be requested by
4180-
/// calling [DestroyCryptoKeyVersion][EkmService.DestroyCryptoKeyVersion].
4299+
/// calling
4300+
/// [DestroyCryptoKeyVersion][google.cloud.kms.v1.KeyManagementService.DestroyCryptoKeyVersion].
41814301
/// * Automatic rotation of key material is supported.
41824302
CloudKms = 2,
41834303
}
@@ -4209,7 +4329,7 @@ pub mod ekm_connection {
42094329
/// [CryptoKeys][google.cloud.kms.v1.CryptoKey] and
42104330
/// [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] with a
42114331
/// [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of
4212-
/// [EXTERNAL_VPC][CryptoKeyVersion.ProtectionLevel.EXTERNAL_VPC] in a given
4332+
/// [EXTERNAL_VPC][google.cloud.kms.v1.ProtectionLevel.EXTERNAL_VPC] in a given
42134333
/// project and location.
42144334
#[derive(Clone, PartialEq, ::prost::Message)]
42154335
pub struct EkmConfig {

0 commit comments

Comments
 (0)