Skip to content

Commit

Permalink
feat: [google-cloud-edgenetwork] add MACsec status for internal links (
Browse files Browse the repository at this point in the history
…#12213)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 600482823

Source-Link:
googleapis/googleapis@c20f392

Source-Link:
googleapis/googleapis-gen@e0271c7
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2VuZXR3b3JrLy5Pd2xCb3QueWFtbCIsImgiOiJlMDI3MWM3NTkyYjc4ODQzM2ViZTlhMzI1ODg2NmNiZmM3OGM0YmNlIn0=

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Jan 22, 2024
1 parent c20e0c1 commit 313f567
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -1158,13 +1158,39 @@ class NetworkStatus(proto.Message):
subnet_status (MutableSequence[google.cloud.edgenetwork_v1.types.SubnetStatus]):
A list of status for the subnets under the
current network.
macsec_status_internal_links (google.cloud.edgenetwork_v1.types.DiagnoseNetworkResponse.NetworkStatus.MacsecStatus):
The MACsec status of internal links.
"""

class MacsecStatus(proto.Enum):
r"""Denotes the status of MACsec sessions for the links of a
zone.
Values:
MACSEC_STATUS_UNSPECIFIED (0):
MACsec status not specified, likely due to
missing metrics.
SECURE (1):
All relevant links have at least one MACsec
session up.
UNSECURE (2):
At least one relevant link does not have any
MACsec sessions up.
"""
MACSEC_STATUS_UNSPECIFIED = 0
SECURE = 1
UNSECURE = 2

subnet_status: MutableSequence[resources.SubnetStatus] = proto.RepeatedField(
proto.MESSAGE,
number=1,
message=resources.SubnetStatus,
)
macsec_status_internal_links: "DiagnoseNetworkResponse.NetworkStatus.MacsecStatus" = proto.Field(
proto.ENUM,
number=2,
enum="DiagnoseNetworkResponse.NetworkStatus.MacsecStatus",
)

update_time: timestamp_pb2.Timestamp = proto.Field(
proto.MESSAGE,
Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-edgenetwork/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ def docs(session):

session.install("-e", ".")
session.install(
# We need to pin to specific versions of the `sphinxcontrib-*` packages
# which still support sphinx 4.x.
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
"sphinx==4.5.0",
"alabaster",
"recommonmark",
Expand All @@ -308,6 +317,15 @@ def docfx(session):

session.install("-e", ".")
session.install(
# We need to pin to specific versions of the `sphinxcontrib-*` packages
# which still support sphinx 4.x.
# See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
# and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
"gcp-sphinx-docfx-yaml",
"alabaster",
"recommonmark",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-edgenetwork",
"version": "0.1.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down

0 comments on commit 313f567

Please sign in to comment.