Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
feat: Add support for Media CDN (#98)
Browse files Browse the repository at this point in the history
* feat: Add support for Media CDN

PiperOrigin-RevId: 483999352

Source-Link: googleapis/googleapis@d0a9cd5

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b40f231195019a20fba164e6b9fdb344e6283a13
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjQwZjIzMTE5NTAxOWEyMGZiYTE2NGU2YjlmZGIzNDRlNjI4M2ExMyJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Oct 27, 2022
1 parent b51f278 commit df58bb7
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 82 deletions.
2 changes: 2 additions & 0 deletions google/cloud/video/stitcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
AkamaiCdnKey,
CdnKey,
GoogleCdnKey,
MediaCdnKey,
)
from google.cloud.video.stitcher_v1.types.companions import (
Companion,
Expand Down Expand Up @@ -95,6 +96,7 @@
"AkamaiCdnKey",
"CdnKey",
"GoogleCdnKey",
"MediaCdnKey",
"Companion",
"CompanionAds",
"HtmlAdResource",
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/video/stitcher_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
ResponseMetadata,
VodAdTagDetail,
)
from .types.cdn_keys import AkamaiCdnKey, CdnKey, GoogleCdnKey
from .types.cdn_keys import AkamaiCdnKey, CdnKey, GoogleCdnKey, MediaCdnKey
from .types.companions import (
Companion,
CompanionAds,
Expand Down Expand Up @@ -115,6 +115,7 @@
"LiveAdTagDetail",
"LiveSession",
"ManifestOptions",
"MediaCdnKey",
"ProgressEvent",
"RenditionFilter",
"RequestMetadata",
Expand Down
3 changes: 2 additions & 1 deletion google/cloud/video/stitcher_v1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
ResponseMetadata,
VodAdTagDetail,
)
from .cdn_keys import AkamaiCdnKey, CdnKey, GoogleCdnKey
from .cdn_keys import AkamaiCdnKey, CdnKey, GoogleCdnKey, MediaCdnKey
from .companions import (
Companion,
CompanionAds,
Expand Down Expand Up @@ -79,6 +79,7 @@
"AkamaiCdnKey",
"CdnKey",
"GoogleCdnKey",
"MediaCdnKey",
"Companion",
"CompanionAds",
"HtmlAdResource",
Expand Down
32 changes: 32 additions & 0 deletions google/cloud/video/stitcher_v1/types/cdn_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"CdnKey",
"GoogleCdnKey",
"AkamaiCdnKey",
"MediaCdnKey",
},
)

Expand All @@ -45,6 +46,10 @@ class CdnKey(proto.Message):
akamai_cdn_key (google.cloud.video.stitcher_v1.types.AkamaiCdnKey):
The configuration for an Akamai CDN key.
This field is a member of `oneof`_ ``cdn_key_config``.
media_cdn_key (google.cloud.video.stitcher_v1.types.MediaCdnKey):
The configuration for a Media CDN key.
This field is a member of `oneof`_ ``cdn_key_config``.
name (str):
The resource name of the CDN key, in the form of
Expand All @@ -66,6 +71,12 @@ class CdnKey(proto.Message):
oneof="cdn_key_config",
message="AkamaiCdnKey",
)
media_cdn_key = proto.Field(
proto.MESSAGE,
number=8,
oneof="cdn_key_config",
message="MediaCdnKey",
)
name = proto.Field(
proto.STRING,
number=1,
Expand Down Expand Up @@ -112,4 +123,25 @@ class AkamaiCdnKey(proto.Message):
)


class MediaCdnKey(proto.Message):
r"""Configuration for a Media CDN key.
Attributes:
private_key (bytes):
Input only. 64-byte ed25519 private key for
this Media CDN key.
key_name (str):
The keyset name of the Media CDN key.
"""

private_key = proto.Field(
proto.BYTES,
number=1,
)
key_name = proto.Field(
proto.STRING,
number=2,
)


__all__ = tuple(sorted(__protobuf__.manifest))
Loading

0 comments on commit df58bb7

Please sign in to comment.