Skip to content

Commit 3264efa

Browse files
chore: librarian generate pull request: 20251028T070457Z (#14813)
BEGIN_COMMIT_OVERRIDE BEGIN_NESTED_COMMIT feat: A new field `remote_peering_network_type` is added to message `google.cloud.edgenetwork.v1.Interconnect` PiperOrigin-RevId: 824727309 Library-IDs: google-cloud-edgenetwork Source-link: [googleapis/googleapis@b1a9eefc](googleapis/googleapis@b1a9eefc) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: A new field `peering_type` is added to message `google.cloud.edgenetwork.v1.InterconnectAttachment` PiperOrigin-RevId: 824727309 Library-IDs: google-cloud-edgenetwork Source-link: [googleapis/googleapis@b1a9eefc](googleapis/googleapis@b1a9eefc) END_NESTED_COMMIT END_COMMIT_OVERRIDE This pull request is generated with proto changes between [googleapis/googleapis@33225118](googleapis/googleapis@3322511) (exclusive) and [googleapis/googleapis@b1a9eefc](googleapis/googleapis@b1a9eef) (inclusive). Librarian Version: v0.0.0-20251022181450-0ee9437f0ec3 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator:latest
1 parent f632a67 commit 3264efa

File tree

59 files changed

+133
-1
lines changed

Some content is hidden

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

59 files changed

+133
-1
lines changed

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ libraries:
18161816
tag_format: '{id}-v{version}'
18171817
- id: google-cloud-edgenetwork
18181818
version: 0.2.0
1819-
last_generated_commit: 3322511885371d2b2253f209ccc3aa60d4100cfd
1819+
last_generated_commit: b1a9eefc2e1021fb9465bdac5e2984499451ae34
18201820
apis:
18211821
- path: google/cloud/edgenetwork/v1
18221822
service_config: edgenetwork_v1.yaml

packages/google-cloud-edgenetwork/google/cloud/edgenetwork/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
InterconnectDiagnostics,
2929
LinkLayerAddress,
3030
Network,
31+
RemotePeeringNetworkType,
3132
ResourceState,
3233
Router,
3334
RouterStatus,
@@ -88,6 +89,7 @@
8889
"Subnet",
8990
"SubnetStatus",
9091
"Zone",
92+
"RemotePeeringNetworkType",
9193
"ResourceState",
9294
"CreateInterconnectAttachmentRequest",
9395
"CreateNetworkRequest",

packages/google-cloud-edgenetwork/google/cloud/edgenetwork_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
InterconnectDiagnostics,
2626
LinkLayerAddress,
2727
Network,
28+
RemotePeeringNetworkType,
2829
ResourceState,
2930
Router,
3031
RouterStatus,
@@ -115,6 +116,7 @@
115116
"ListZonesResponse",
116117
"Network",
117118
"OperationMetadata",
119+
"RemotePeeringNetworkType",
118120
"ResourceState",
119121
"Router",
120122
"RouterStatus",

packages/google-cloud-edgenetwork/google/cloud/edgenetwork_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
InterconnectDiagnostics,
2020
LinkLayerAddress,
2121
Network,
22+
RemotePeeringNetworkType,
2223
ResourceState,
2324
Router,
2425
RouterStatus,
@@ -77,6 +78,7 @@
7778
"Subnet",
7879
"SubnetStatus",
7980
"Zone",
81+
"RemotePeeringNetworkType",
8082
"ResourceState",
8183
"CreateInterconnectAttachmentRequest",
8284
"CreateNetworkRequest",

packages/google-cloud-edgenetwork/google/cloud/edgenetwork_v1/types/resources.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
package="google.cloud.edgenetwork.v1",
2525
manifest={
2626
"ResourceState",
27+
"RemotePeeringNetworkType",
2728
"Zone",
2829
"Network",
2930
"Subnet",
@@ -70,6 +71,24 @@ class ResourceState(proto.Enum):
7071
STATE_DELETING = 5
7172

7273

74+
class RemotePeeringNetworkType(proto.Enum):
75+
r"""Defines the remote peering destination for the interface. It
76+
is required when peering separation is enabled.
77+
78+
Values:
79+
REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED (0):
80+
Unspecified.
81+
REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL (1):
82+
Customer's trusted internal network.
83+
REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET (2):
84+
Customer's untrust network that has internet
85+
access.
86+
"""
87+
REMOTE_PEERING_NETWORK_TYPE_UNSPECIFIED = 0
88+
REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNAL = 1
89+
REMOTE_PEERING_NETWORK_TYPE_CUSTOMER_INTERNET = 2
90+
91+
7392
class Zone(proto.Message):
7493
r"""A Google Edge Cloud zone.
7594
@@ -312,6 +331,10 @@ class Interconnect(proto.Message):
312331
physical_ports (MutableSequence[str]):
313332
Output only. Physical ports (e.g.,
314333
TenGigE0/0/0/1) that form the interconnect.
334+
remote_peering_network_type (google.cloud.edgenetwork_v1.types.RemotePeeringNetworkType):
335+
Optional. The remote peering network type of
336+
the interconnect. It is required when peering
337+
separation is enabled.
315338
"""
316339

317340
class InterconnectType(proto.Enum):
@@ -366,6 +389,11 @@ class InterconnectType(proto.Enum):
366389
proto.STRING,
367390
number=9,
368391
)
392+
remote_peering_network_type: "RemotePeeringNetworkType" = proto.Field(
393+
proto.ENUM,
394+
number=10,
395+
enum="RemotePeeringNetworkType",
396+
)
369397

370398

371399
class InterconnectAttachment(proto.Message):
@@ -404,6 +432,10 @@ class InterconnectAttachment(proto.Message):
404432
state (google.cloud.edgenetwork_v1.types.ResourceState):
405433
Output only. Current stage of the resource to
406434
the device by config push.
435+
peering_type (google.cloud.edgenetwork_v1.types.RemotePeeringNetworkType):
436+
Optional. The remote peering network type of
437+
the underlying interconnect. It is required when
438+
peering separation is enabled.
407439
"""
408440

409441
name: str = proto.Field(
@@ -450,6 +482,11 @@ class InterconnectAttachment(proto.Message):
450482
number=10,
451483
enum="ResourceState",
452484
)
485+
peering_type: "RemotePeeringNetworkType" = proto.Field(
486+
proto.ENUM,
487+
number=12,
488+
enum="RemotePeeringNetworkType",
489+
)
453490

454491

455492
class Router(proto.Message):

packages/google-cloud-edgenetwork/noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727

2828
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2929

30+
# Add samples to the list of directories to format if the directory exists.
31+
if os.path.isdir("samples"):
32+
LINT_PATHS.append("samples")
33+
3034
ALL_PYTHON = [
3135
"3.7",
3236
"3.8",

packages/google-cloud-edgenetwork/samples/generated_samples/edgenetwork_v1_generated_edge_network_create_interconnect_attachment_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ async def sample_create_interconnect_attachment():
6060
# Handle the response
6161
print(response)
6262

63+
6364
# [END edgenetwork_v1_generated_EdgeNetwork_CreateInterconnectAttachment_async]

packages/google-cloud-edgenetwork/samples/generated_samples/edgenetwork_v1_generated_edge_network_create_interconnect_attachment_sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ def sample_create_interconnect_attachment():
6060
# Handle the response
6161
print(response)
6262

63+
6364
# [END edgenetwork_v1_generated_EdgeNetwork_CreateInterconnectAttachment_sync]

packages/google-cloud-edgenetwork/samples/generated_samples/edgenetwork_v1_generated_edge_network_create_network_async.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ async def sample_create_network():
5858
# Handle the response
5959
print(response)
6060

61+
6162
# [END edgenetwork_v1_generated_EdgeNetwork_CreateNetwork_async]

packages/google-cloud-edgenetwork/samples/generated_samples/edgenetwork_v1_generated_edge_network_create_network_sync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ def sample_create_network():
5858
# Handle the response
5959
print(response)
6060

61+
6162
# [END edgenetwork_v1_generated_EdgeNetwork_CreateNetwork_sync]

0 commit comments

Comments
 (0)