Skip to content

Commit 813a5c1

Browse files
authored
feat: update API sources and regenerate (#18267)
1 parent 21cc934 commit 813a5c1

64 files changed

Lines changed: 14585 additions & 3138 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

librarian.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ version: v0.40.0
1616
repo: googleapis/google-cloud-python
1717
sources:
1818
googleapis:
19-
commit: 50aad1b835b0b1fd3acec6af91d9c9735787fe11
20-
sha256: e58f3198fb96392a89b2850cca67882456f8d231ea4849f16cfb5551a012789d
19+
commit: 00ff8fcb95cafbac573cc449b0d1a039244f1b4b
20+
sha256: 4adc70162aadcea34de8e9ec269851bca7486fa8dca31d70dc43cdeb1e7a2617
2121
tools:
2222
pip:
2323
- name: black

packages/google-cloud-apptopology/noxfile.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,10 @@ def prerelease_deps(session, protobuf_implementation):
526526
"proto-plus",
527527
]
528528

529-
deps_dir = CURRENT_DIRECTORY.parent
530-
while deps_dir.name != "packages" and deps_dir.parent != deps_dir:
531-
deps_dir = deps_dir.parent
529+
# Locate the monorepo 'packages' directory containing core dependencies
530+
deps_dir = next(
531+
p / "packages" for p in CURRENT_DIRECTORY.parents if (p / "packages").is_dir()
532+
)
532533

533534
# Extract the base package name, safely ignoring version bounds and spaces
534535
# (e.g., "grpcio>=1.75.1" becomes "grpcio")
@@ -638,9 +639,10 @@ def core_deps_from_source(session, protobuf_implementation):
638639
"proto-plus",
639640
]
640641

641-
deps_dir = CURRENT_DIRECTORY.parent
642-
while deps_dir.name != "packages" and deps_dir.parent != deps_dir:
643-
deps_dir = deps_dir.parent
642+
# Locate the monorepo 'packages' directory containing core dependencies
643+
deps_dir = next(
644+
p / "packages" for p in CURRENT_DIRECTORY.parents if (p / "packages").is_dir()
645+
)
644646

645647
# Batch the pip installation to avoid sequential overhead
646648
dep_paths = [str(deps_dir / dep) for dep in core_dependencies_from_source]

packages/google-cloud-batch/google/cloud/batch_v1/types/job.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,8 @@ class InstancePolicyOrTemplate(proto.Message):
921921
class NetworkInterface(proto.Message):
922922
r"""A network interface.
923923
924+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
925+
924926
Attributes:
925927
network (str):
926928
The URL of an existing network resource. You can specify the
@@ -951,8 +953,32 @@ class NetworkInterface(proto.Message):
951953
and
952954
https://cloud.google.com/nat/docs/gce-example#create-nat
953955
for more information.
956+
nic_type (google.cloud.batch_v1.types.AllocationPolicy.NetworkInterface.NicType):
957+
Optional. The NIC type of the network
958+
interface.
959+
960+
This field is a member of `oneof`_ ``_nic_type``.
954961
"""
955962

963+
class NicType(proto.Enum):
964+
r"""Compute Engine VM instance NIC type.
965+
966+
Values:
967+
NIC_TYPE_UNSPECIFIED (0):
968+
No type specified.
969+
GVNIC (1):
970+
GVNIC
971+
IRDMA (2):
972+
IRDMA
973+
MRDMA (3):
974+
MRDMA
975+
"""
976+
977+
NIC_TYPE_UNSPECIFIED = 0
978+
GVNIC = 1
979+
IRDMA = 2
980+
MRDMA = 3
981+
956982
network: str = proto.Field(
957983
proto.STRING,
958984
number=1,
@@ -965,6 +991,12 @@ class NetworkInterface(proto.Message):
965991
proto.BOOL,
966992
number=3,
967993
)
994+
nic_type: "AllocationPolicy.NetworkInterface.NicType" = proto.Field(
995+
proto.ENUM,
996+
number=7,
997+
optional=True,
998+
enum="AllocationPolicy.NetworkInterface.NicType",
999+
)
9681000

9691001
class NetworkPolicy(proto.Message):
9701002
r"""NetworkPolicy describes VM instance network configurations.

packages/google-cloud-batch/tests/unit/gapic/batch_v1/test_batch_service.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5557,6 +5557,7 @@ def test_create_job_rest_call_success(request_type):
55575557
"network": "network_value",
55585558
"subnetwork": "subnetwork_value",
55595559
"no_external_ip_address": True,
5560+
"nic_type": 1,
55605561
}
55615562
]
55625563
},

packages/google-cloud-bigquery-migration/google/cloud/bigquery_migration/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@
2929
AssessmentTaskDetails,
3030
)
3131
from google.cloud.bigquery_migration_v2.types.migration_entities import (
32+
LineageOutput,
3233
MigrationSubtask,
3334
MigrationTask,
3435
MigrationTaskResult,
3536
MigrationWorkflow,
37+
TaskOutput,
3638
TranslationTaskResult,
3739
)
3840
from google.cloud.bigquery_migration_v2.types.migration_error_details import (
@@ -105,10 +107,12 @@
105107
"MigrationServiceAsyncClient",
106108
"AssessmentFeatureHandle",
107109
"AssessmentTaskDetails",
110+
"LineageOutput",
108111
"MigrationSubtask",
109112
"MigrationTask",
110113
"MigrationTaskResult",
111114
"MigrationWorkflow",
115+
"TaskOutput",
112116
"TranslationTaskResult",
113117
"ErrorDetail",
114118
"ErrorLocation",

packages/google-cloud-bigquery-migration/google/cloud/bigquery_migration_v2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@
4545
)
4646
from .types.assessment_task import AssessmentFeatureHandle, AssessmentTaskDetails
4747
from .types.migration_entities import (
48+
LineageOutput,
4849
MigrationSubtask,
4950
MigrationTask,
5051
MigrationTaskResult,
5152
MigrationWorkflow,
53+
TaskOutput,
5254
TranslationTaskResult,
5355
)
5456
from .types.migration_error_details import (
@@ -124,6 +126,7 @@
124126
"GetMigrationWorkflowRequest",
125127
"GreenplumDialect",
126128
"HiveQLDialect",
129+
"LineageOutput",
127130
"ListMigrationSubtasksRequest",
128131
"ListMigrationSubtasksResponse",
129132
"ListMigrationWorkflowsRequest",
@@ -158,6 +161,7 @@
158161
"SuggestionConfig",
159162
"SuggestionStep",
160163
"TargetSpec",
164+
"TaskOutput",
161165
"TeradataDialect",
162166
"TimeInterval",
163167
"TimeSeries",

packages/google-cloud-bigquery-migration/google/cloud/bigquery_migration_v2/types/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
AssessmentTaskDetails,
1919
)
2020
from .migration_entities import (
21+
LineageOutput,
2122
MigrationSubtask,
2223
MigrationTask,
2324
MigrationTaskResult,
2425
MigrationWorkflow,
26+
TaskOutput,
2527
TranslationTaskResult,
2628
)
2729
from .migration_error_details import (
@@ -92,10 +94,12 @@
9294
__all__ = (
9395
"AssessmentFeatureHandle",
9496
"AssessmentTaskDetails",
97+
"LineageOutput",
9598
"MigrationSubtask",
9699
"MigrationTask",
97100
"MigrationTaskResult",
98101
"MigrationWorkflow",
102+
"TaskOutput",
99103
"TranslationTaskResult",
100104
"ErrorDetail",
101105
"ErrorLocation",

0 commit comments

Comments
 (0)