Skip to content

Commit fe92c44

Browse files
feat(video-live_stream-v1): Support for managing DvrSessions
feat(video-live_stream-v1): Support for clip output type
1 parent e598279 commit fe92c44

21 files changed

Lines changed: 2909 additions & 10 deletions

File tree

google-cloud-video-live_stream-v1/.owlbot-manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,32 @@
5252
"snippets/livestream_service/create_asset.rb",
5353
"snippets/livestream_service/create_channel.rb",
5454
"snippets/livestream_service/create_clip.rb",
55+
"snippets/livestream_service/create_dvr_session.rb",
5556
"snippets/livestream_service/create_event.rb",
5657
"snippets/livestream_service/create_input.rb",
5758
"snippets/livestream_service/delete_asset.rb",
5859
"snippets/livestream_service/delete_channel.rb",
5960
"snippets/livestream_service/delete_clip.rb",
61+
"snippets/livestream_service/delete_dvr_session.rb",
6062
"snippets/livestream_service/delete_event.rb",
6163
"snippets/livestream_service/delete_input.rb",
6264
"snippets/livestream_service/get_asset.rb",
6365
"snippets/livestream_service/get_channel.rb",
6466
"snippets/livestream_service/get_clip.rb",
67+
"snippets/livestream_service/get_dvr_session.rb",
6568
"snippets/livestream_service/get_event.rb",
6669
"snippets/livestream_service/get_input.rb",
6770
"snippets/livestream_service/get_pool.rb",
6871
"snippets/livestream_service/list_assets.rb",
6972
"snippets/livestream_service/list_channels.rb",
7073
"snippets/livestream_service/list_clips.rb",
74+
"snippets/livestream_service/list_dvr_sessions.rb",
7175
"snippets/livestream_service/list_events.rb",
7276
"snippets/livestream_service/list_inputs.rb",
7377
"snippets/livestream_service/start_channel.rb",
7478
"snippets/livestream_service/stop_channel.rb",
7579
"snippets/livestream_service/update_channel.rb",
80+
"snippets/livestream_service/update_dvr_session.rb",
7681
"snippets/livestream_service/update_input.rb",
7782
"snippets/livestream_service/update_pool.rb",
7883
"snippets/snippet_metadata_google.cloud.video.livestream.v1.json",

google-cloud-video-live_stream-v1/gapic_metadata.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,31 @@
110110
"delete_clip"
111111
]
112112
},
113+
"CreateDvrSession": {
114+
"methods": [
115+
"create_dvr_session"
116+
]
117+
},
118+
"ListDvrSessions": {
119+
"methods": [
120+
"list_dvr_sessions"
121+
]
122+
},
123+
"GetDvrSession": {
124+
"methods": [
125+
"get_dvr_session"
126+
]
127+
},
128+
"DeleteDvrSession": {
129+
"methods": [
130+
"delete_dvr_session"
131+
]
132+
},
133+
"UpdateDvrSession": {
134+
"methods": [
135+
"update_dvr_session"
136+
]
137+
},
113138
"CreateAsset": {
114139
"methods": [
115140
"create_asset"

google-cloud-video-live_stream-v1/lib/google/cloud/video/live_stream/v1/livestream_service/client.rb

Lines changed: 590 additions & 1 deletion
Large diffs are not rendered by default.

google-cloud-video-live_stream-v1/lib/google/cloud/video/live_stream/v1/livestream_service/paths.rb

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,27 @@ def clip_path project:, location:, channel:, clip:
8484
"projects/#{project}/locations/#{location}/channels/#{channel}/clips/#{clip}"
8585
end
8686

87+
##
88+
# Create a fully-qualified DvrSession resource string.
89+
#
90+
# The resource will be in the following format:
91+
#
92+
# `projects/{project}/locations/{location}/channels/{channel}/dvrSessions/{dvr_session}`
93+
#
94+
# @param project [String]
95+
# @param location [String]
96+
# @param channel [String]
97+
# @param dvr_session [String]
98+
#
99+
# @return [::String]
100+
def dvr_session_path project:, location:, channel:, dvr_session:
101+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
103+
raise ::ArgumentError, "channel cannot contain /" if channel.to_s.include? "/"
104+
105+
"projects/#{project}/locations/#{location}/channels/#{channel}/dvrSessions/#{dvr_session}"
106+
end
107+
87108
##
88109
# Create a fully-qualified Event resource string.
89110
#

google-cloud-video-live_stream-v1/lib/google/cloud/video/live_stream/v1/livestream_service/rest/client.rb

Lines changed: 555 additions & 1 deletion
Large diffs are not rendered by default.

google-cloud-video-live_stream-v1/lib/google/cloud/video/live_stream/v1/livestream_service/rest/service_stub.rb

Lines changed: 307 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-video-live_stream-v1/lib/google/cloud/video/livestream/v1/outputs_pb.rb

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)