Skip to content

Commit

Permalink
feat: add asset_id and stream_id fields to VodSession and LiveSession…
Browse files Browse the repository at this point in the history
… responses

fix!: remove COMPLETE_POD stitching option

PiperOrigin-RevId: 454023909
  • Loading branch information
Google APIs authored and Copybara-Service committed Jun 9, 2022
1 parent f30516e commit f296ef5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 49 deletions.
8 changes: 4 additions & 4 deletions google/cloud/video/stitcher/v1/BUILD.bazel
Expand Up @@ -39,7 +39,6 @@ proto_library(
"@com_google_protobuf//:empty_proto",
"@com_google_protobuf//:field_mask_proto",
"@com_google_protobuf//:struct_proto",
"@com_google_protobuf//:timestamp_proto",
],
)

Expand Down Expand Up @@ -134,8 +133,8 @@ go_gapic_library(
srcs = [":stitcher_proto_with_info"],
grpc_service_config = "videostitcher_grpc_service_config.json",
importpath = "cloud.google.com/go/video/stitcher/apiv1;stitcher",
service_yaml = "videostitcher_v1.yaml",
metadata = True,
service_yaml = "videostitcher_v1.yaml",
deps = [
":stitcher_go_proto",
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
Expand All @@ -154,8 +153,8 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-video-stitcher-v1-go",
deps = [
":stitcher_go_gapic",
":stitcher_go_gapic_srcjar-test.srcjar",
":stitcher_go_gapic_srcjar-metadata.srcjar",
":stitcher_go_gapic_srcjar-test.srcjar",
":stitcher_go_proto",
],
)
Expand All @@ -173,6 +172,7 @@ py_gapic_library(
name = "stitcher_py_gapic",
srcs = [":stitcher_proto"],
grpc_service_config = "videostitcher_grpc_service_config.json",
service_yaml = "videostitcher_v1.yaml",
)

# Open Source Packages
Expand Down Expand Up @@ -259,8 +259,8 @@ nodejs_gapic_assembly_pkg(
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_gapic_assembly_pkg",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)
Expand Down
9 changes: 6 additions & 3 deletions google/cloud/video/stitcher/v1/sessions.proto
Expand Up @@ -74,6 +74,9 @@ message VodSession {

// Additional options that affect the output of the manifest.
ManifestOptions manifest_options = 9;

// Output only. The generated ID of the VodSession's source media.
string asset_id = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Describes what was stitched into a VOD session's manifest.
Expand Down Expand Up @@ -139,9 +142,6 @@ message LiveSession {
// Finishes stitching the current ad before returning to content.
COMPLETE_AD = 1;

// Finishes stitching the current pod before returning to content.
COMPLETE_POD = 2;

// Cuts an ad short and returns to content in the middle of the ad.
CUT_CURRENT = 3;
}
Expand Down Expand Up @@ -200,6 +200,9 @@ message LiveSession {

// Additional options that affect the output of the manifest.
ManifestOptions manifest_options = 10;

// Output only. The generated ID of the LiveSession's source stream.
string stream_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Metadata of an ad tag.
Expand Down
11 changes: 0 additions & 11 deletions google/cloud/video/stitcher/v1/video_stitcher_service.proto
Expand Up @@ -25,10 +25,8 @@ import "google/cloud/video/stitcher/v1/cdn_keys.proto";
import "google/cloud/video/stitcher/v1/sessions.proto";
import "google/cloud/video/stitcher/v1/slates.proto";
import "google/cloud/video/stitcher/v1/stitch_details.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";

option go_package = "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1;stitcher";
option java_multiple_files = true;
Expand Down Expand Up @@ -548,15 +546,6 @@ message DeleteSlateRequest {
message CreateLiveSessionRequest {
// Required. The project and location in which the live session should be created,
// in the form of `projects/{project_number}/locations/{location}`.
//
// Valid locations:
//
// * `-` (Video Stitcher API will pick a location that is closest to the
// caller.)
// * `us-east1`
// * `us-west1`
// * `us-central1`
// * `europe-west1`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
31 changes: 0 additions & 31 deletions google/cloud/video/stitcher/v1/videostitcher_v1.yaml
Expand Up @@ -6,45 +6,14 @@ title: Video Stitcher API
apis:
- name: google.cloud.video.stitcher.v1.VideoStitcherService

documentation:
rules:
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
description: |-
Gets the access control policy for a resource. Returns an empty policy
if the resource exists and does not have a policy set.
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
description: |-
Sets the access control policy on the specified resource. Replaces
any existing policy.
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
errors.
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
description: |-
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of
permissions, not a `NOT_FOUND` error.
Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization
checking. This operation may "fail open" without warning.
backend:
rules:
- selector: 'google.cloud.video.stitcher.v1.VideoStitcherService.*'
deadline: 30.0
- selector: 'google.iam.v1.IAMPolicy.*'
deadline: 30.0

authentication:
rules:
- selector: 'google.cloud.video.stitcher.v1.VideoStitcherService.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform
- selector: 'google.iam.v1.IAMPolicy.*'
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform

0 comments on commit f296ef5

Please sign in to comment.