// Copyright 2019 Make.TV Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package tv.make.api; import "serviceregion/serviceregion.proto"; import "google/api/annotations.proto"; option go_package = "git.ltnglobal.com/make.tv/genproto/api;api"; service ServiceRegionService { // Lists service regions. rpc ListServiceRegions(ListServiceRegionsRequest) returns (ListServiceRegionsResponse) { option (google.api.http) = { get: "/v1/serviceregions" }; } // Gets a service region. rpc GetServiceRegion(GetServiceRegionRequest) returns (ServiceRegion) { option (google.api.http) = { get: "/v1/serviceregions/{service_region_id}" }; } } // Request message for [ListServiceRegions][tv.make.api.ServiceRegionService.ListServiceRegions]. message ListServiceRegionsRequest { // The maximum number of items to return. int32 page_size = 1; // The next_page_token value returned from a previous List request, if any. string page_token = 2; } // Response message for [ListServiceRegions][tv.make.api.ServiceRegionService.ListServiceRegions]. message ListServiceRegionsResponse { // The list of service regions. repeated ServiceRegion service_regions = 1; // Token to retrieve the next page of results, or empty if there are no // more results in the list. string next_page_token = 3; } // Request message for [GetServiceRegion][tv.make.api.ServiceRegionService.GetServiceRegion]. message GetServiceRegionRequest { // The unique identifier of the service region. string service_region_id = 1; }