Skip to content

Commit 313f567

Browse files
feat: [google-cloud-edgenetwork] add MACsec status for internal links (googleapis#12213)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 600482823 Source-Link: googleapis/googleapis@c20f392 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e0271c7592b788433ebe9a3258866cbfc78c4bce Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2VuZXR3b3JrLy5Pd2xCb3QueWFtbCIsImgiOiJlMDI3MWM3NTkyYjc4ODQzM2ViZTlhMzI1ODg2NmNiZmM3OGM0YmNlIn0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent c20e0c1 commit 313f567

5 files changed

Lines changed: 47 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,13 +1158,39 @@ class NetworkStatus(proto.Message):
11581158
subnet_status (MutableSequence[google.cloud.edgenetwork_v1.types.SubnetStatus]):
11591159
A list of status for the subnets under the
11601160
current network.
1161+
macsec_status_internal_links (google.cloud.edgenetwork_v1.types.DiagnoseNetworkResponse.NetworkStatus.MacsecStatus):
1162+
The MACsec status of internal links.
11611163
"""
11621164

1165+
class MacsecStatus(proto.Enum):
1166+
r"""Denotes the status of MACsec sessions for the links of a
1167+
zone.
1168+
1169+
Values:
1170+
MACSEC_STATUS_UNSPECIFIED (0):
1171+
MACsec status not specified, likely due to
1172+
missing metrics.
1173+
SECURE (1):
1174+
All relevant links have at least one MACsec
1175+
session up.
1176+
UNSECURE (2):
1177+
At least one relevant link does not have any
1178+
MACsec sessions up.
1179+
"""
1180+
MACSEC_STATUS_UNSPECIFIED = 0
1181+
SECURE = 1
1182+
UNSECURE = 2
1183+
11631184
subnet_status: MutableSequence[resources.SubnetStatus] = proto.RepeatedField(
11641185
proto.MESSAGE,
11651186
number=1,
11661187
message=resources.SubnetStatus,
11671188
)
1189+
macsec_status_internal_links: "DiagnoseNetworkResponse.NetworkStatus.MacsecStatus" = proto.Field(
1190+
proto.ENUM,
1191+
number=2,
1192+
enum="DiagnoseNetworkResponse.NetworkStatus.MacsecStatus",
1193+
)
11681194

11691195
update_time: timestamp_pb2.Timestamp = proto.Field(
11701196
proto.MESSAGE,

packages/google-cloud-edgenetwork/noxfile.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,15 @@ def docs(session):
282282

283283
session.install("-e", ".")
284284
session.install(
285+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
286+
# which still support sphinx 4.x.
287+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
288+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
289+
"sphinxcontrib-applehelp==1.0.4",
290+
"sphinxcontrib-devhelp==1.0.2",
291+
"sphinxcontrib-htmlhelp==2.0.1",
292+
"sphinxcontrib-qthelp==1.0.3",
293+
"sphinxcontrib-serializinghtml==1.1.5",
285294
"sphinx==4.5.0",
286295
"alabaster",
287296
"recommonmark",
@@ -308,6 +317,15 @@ def docfx(session):
308317

309318
session.install("-e", ".")
310319
session.install(
320+
# We need to pin to specific versions of the `sphinxcontrib-*` packages
321+
# which still support sphinx 4.x.
322+
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
323+
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
324+
"sphinxcontrib-applehelp==1.0.4",
325+
"sphinxcontrib-devhelp==1.0.2",
326+
"sphinxcontrib-htmlhelp==2.0.1",
327+
"sphinxcontrib-qthelp==1.0.3",
328+
"sphinxcontrib-serializinghtml==1.1.5",
311329
"gcp-sphinx-docfx-yaml",
312330
"alabaster",
313331
"recommonmark",

packages/google-cloud-edgenetwork/samples/generated_samples/snippet_metadata_google.cloud.edgenetwork.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-edgenetwork",
11-
"version": "0.1.1"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)