123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895 |
- // Copyright 2021 Google LLC
- //
- // 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 google.cloud.datastream.v1alpha1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/cloud/datastream/v1alpha1/datastream_resources.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/field_mask.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.Datastream.V1Alpha1";
- option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1alpha1;datastream";
- option java_multiple_files = true;
- option java_outer_classname = "CloudDatastreamServiceProto";
- option java_package = "com.google.cloud.datastream.v1alpha1";
- option php_namespace = "Google\\Cloud\\Datastream\\V1alpha1";
- option ruby_package = "Google::Cloud::Datastream::V1alpha1";
- // Datastream service
- service Datastream {
- option (google.api.default_host) = "datastream.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
- // Use this method to list connection profiles created in a project and
- // location.
- rpc ListConnectionProfiles(ListConnectionProfilesRequest) returns (ListConnectionProfilesResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*}/connectionProfiles"
- };
- option (google.api.method_signature) = "parent";
- }
- // Use this method to get details about a connection profile.
- rpc GetConnectionProfile(GetConnectionProfileRequest) returns (ConnectionProfile) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/connectionProfiles/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Use this method to create a connection profile in a project and location.
- rpc CreateConnectionProfile(CreateConnectionProfileRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*}/connectionProfiles"
- body: "connection_profile"
- };
- option (google.api.method_signature) = "parent,connection_profile,connection_profile_id";
- option (google.longrunning.operation_info) = {
- response_type: "ConnectionProfile"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to update the parameters of a connection profile.
- rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}"
- body: "connection_profile"
- };
- option (google.api.method_signature) = "connection_profile,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "ConnectionProfile"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to delete a connection profile..
- rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/connectionProfiles/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to discover a connection profile.
- // The discover API call exposes the data objects and metadata belonging to
- // the profile. Typically, a request returns children data objects under a
- // parent data object that's optionally supplied in the request.
- rpc DiscoverConnectionProfile(DiscoverConnectionProfileRequest) returns (DiscoverConnectionProfileResponse) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*}/connectionProfiles:discover"
- body: "*"
- };
- }
- // Use this method to list streams in a project and location.
- rpc ListStreams(ListStreamsRequest) returns (ListStreamsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*}/streams"
- };
- option (google.api.method_signature) = "parent";
- }
- // Use this method to get details about a stream.
- rpc GetStream(GetStreamRequest) returns (Stream) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/streams/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Use this method to create a stream.
- rpc CreateStream(CreateStreamRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*}/streams"
- body: "stream"
- };
- option (google.api.method_signature) = "parent,stream,stream_id";
- option (google.longrunning.operation_info) = {
- response_type: "Stream"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to update the configuration of a stream.
- rpc UpdateStream(UpdateStreamRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- patch: "/v1alpha1/{stream.name=projects/*/locations/*/streams/*}"
- body: "stream"
- };
- option (google.api.method_signature) = "stream,update_mask";
- option (google.longrunning.operation_info) = {
- response_type: "Stream"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to delete a stream.
- rpc DeleteStream(DeleteStreamRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/streams/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to fetch any errors associated with a stream.
- rpc FetchErrors(FetchErrorsRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{stream=projects/*/locations/*/streams/*}:fetchErrors"
- body: "*"
- };
- option (google.longrunning.operation_info) = {
- response_type: "FetchErrorsResponse"
- metadata_type: "OperationMetadata"
- };
- }
- // The FetchStaticIps API call exposes the static ips used by Datastream.
- // Typically, a request returns children data objects under
- // a parent data object that's optionally supplied in the request.
- rpc FetchStaticIps(FetchStaticIpsRequest) returns (FetchStaticIpsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*}:fetchStaticIps"
- };
- option (google.api.method_signature) = "name";
- }
- // Use this method to create a private connectivity configuration.
- rpc CreatePrivateConnection(CreatePrivateConnectionRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*}/privateConnections"
- body: "private_connection"
- };
- option (google.api.method_signature) = "parent,private_connection,private_connection_id";
- option (google.longrunning.operation_info) = {
- response_type: "PrivateConnection"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to get details about a private connectivity configuration.
- rpc GetPrivateConnection(GetPrivateConnectionRequest) returns (PrivateConnection) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/privateConnections/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Use this method to list private connectivity configurations in a project
- // and location.
- rpc ListPrivateConnections(ListPrivateConnectionsRequest) returns (ListPrivateConnectionsResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*}/privateConnections"
- };
- option (google.api.method_signature) = "parent";
- }
- // Use this method to delete a private connectivity configuration.
- rpc DeletePrivateConnection(DeletePrivateConnectionRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/privateConnections/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to create a route for a private connectivity in a project
- // and location.
- rpc CreateRoute(CreateRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v1alpha1/{parent=projects/*/locations/*/privateConnections/*}/routes"
- body: "route"
- };
- option (google.api.method_signature) = "parent,route,route_id";
- option (google.longrunning.operation_info) = {
- response_type: "Route"
- metadata_type: "OperationMetadata"
- };
- }
- // Use this method to get details about a route.
- rpc GetRoute(GetRouteRequest) returns (Route) {
- option (google.api.http) = {
- get: "/v1alpha1/{name=projects/*/locations/*/privateConnections/*/routes/*}"
- };
- option (google.api.method_signature) = "name";
- }
- // Use this method to list routes created for a private connectivity in a
- // project and location.
- rpc ListRoutes(ListRoutesRequest) returns (ListRoutesResponse) {
- option (google.api.http) = {
- get: "/v1alpha1/{parent=projects/*/locations/*/privateConnections/*}/routes"
- };
- option (google.api.method_signature) = "parent";
- }
- // Use this method to delete a route.
- rpc DeleteRoute(DeleteRouteRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v1alpha1/{name=projects/*/locations/*/privateConnections/*/routes/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "google.protobuf.Empty"
- metadata_type: "OperationMetadata"
- };
- }
- }
- // Request message for 'discover' ConnectionProfile request.
- message DiscoverConnectionProfileRequest {
- // Required. The parent resource of the ConnectionProfile type. Must be in the
- // format `projects/*/locations/*`.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/ConnectionProfile"
- }
- ];
- // The connection profile on which to run discover.
- oneof target {
- // An ad-hoc ConnectionProfile configuration.
- ConnectionProfile connection_profile = 200;
- // A reference to an existing ConnectionProfile.
- string connection_profile_name = 201;
- }
- oneof depth {
- // Whether to retrieve the full hierarchy of data objects (TRUE) or only the
- // current level (FALSE).
- bool recursive = 3;
- // The number of hierarchy levels below the current level to be retrieved.
- int32 recursion_depth = 4;
- }
- // The data object to enrich with child data objects and metadata.
- oneof data_object {
- // Oracle RDBMS to enrich with child data objects and metadata.
- OracleRdbms oracle_rdbms = 100;
- // MySQL RDBMS to enrich with child data objects and metadata.
- MysqlRdbms mysql_rdbms = 101;
- }
- }
- message DiscoverConnectionProfileResponse {
- // The data object that has been enriched by the discover API call.
- oneof data_object {
- // Enriched Oracle RDBMS object.
- OracleRdbms oracle_rdbms = 100;
- // Enriched MySQL RDBMS object.
- MysqlRdbms mysql_rdbms = 101;
- }
- }
- // Request message for 'FetchStaticIps' request.
- message FetchStaticIpsRequest {
- // Required. The name resource of the Response type. Must be in the
- // format `projects/*/locations/*`.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
- // Maximum number of Ips to return, will likely not be specified.
- int32 page_size = 2;
- // A page token, received from a previous `ListStaticIps` call.
- // will likely not be specified.
- string page_token = 3;
- }
- // Response message for a 'FetchStaticIps' response.
- message FetchStaticIpsResponse {
- // list of static ips by account
- repeated string static_ips = 1;
- // A token that can be sent as `page_token` to retrieve the next page.
- // If this field is omitted, there are no subsequent pages.
- string next_page_token = 2;
- }
- // Request message for 'FetchErrors' request.
- message FetchErrorsRequest {
- // Name of the Stream resource for which to fetch any errors.
- string stream = 1 [(google.api.resource_reference) = {
- type: "datastream.googleapis.com/Stream"
- }];
- }
- // Response message for a 'FetchErrors' response.
- message FetchErrorsResponse {
- // The list of errors on the Stream.
- repeated Error errors = 1;
- }
- message ListConnectionProfilesRequest {
- // Required. The parent that owns the collection of connection profiles.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/ConnectionProfile"
- }
- ];
- // Maximum number of connection profiles to return.
- // If unspecified, at most 50 connection profiles will be returned.
- // The maximum value is 1000; values above 1000 will be coerced to 1000.
- int32 page_size = 2;
- // Page token received from a previous `ListConnectionProfiles` call.
- // Provide this to retrieve the subsequent page.
- //
- // When paginating, all other parameters provided to `ListConnectionProfiles`
- // must match the call that provided the page token.
- string page_token = 3;
- // Filter request.
- string filter = 4;
- // Order by fields for the result.
- string order_by = 5;
- }
- message ListConnectionProfilesResponse {
- // List of connection profiles.
- repeated ConnectionProfile connection_profiles = 1;
- // A token, which can be sent as `page_token` to retrieve the next page.
- // If this field is omitted, there are no subsequent pages.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- message GetConnectionProfileRequest {
- // Required. The name of the connection profile resource to get.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/ConnectionProfile"
- }
- ];
- }
- message CreateConnectionProfileRequest {
- // Required. The parent that owns the collection of ConnectionProfiles.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/ConnectionProfile"
- }
- ];
- // Required. The connection profile identifier.
- string connection_profile_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The connection profile resource to create.
- ConnectionProfile connection_profile = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message UpdateConnectionProfileRequest {
- // Optional. Field mask is used to specify the fields to be overwritten in the
- // ConnectionProfile resource by the update.
- // The fields specified in the update_mask are relative to the resource, not
- // the full request. A field will be overwritten if it is in the mask. If the
- // user does not provide a mask then all fields will be overwritten.
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL];
- // Required. The ConnectionProfile to update.
- ConnectionProfile connection_profile = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message DeleteConnectionProfileRequest {
- // Required. The name of the connection profile resource to delete.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/ConnectionProfile"
- }
- ];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListStreamsRequest {
- // Required. The parent that owns the collection of streams.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/Stream"
- }
- ];
- // Maximum number of streams to return.
- // If unspecified, at most 50 streams will be returned. The maximum
- // value is 1000; values above 1000 will be coerced to 1000.
- int32 page_size = 2;
- // Page token received from a previous `ListStreams` call.
- // Provide this to retrieve the subsequent page.
- //
- // When paginating, all other parameters provided to `ListStreams`
- // must match the call that provided the page token.
- string page_token = 3;
- // Filter request.
- string filter = 4;
- // Order by fields for the result.
- string order_by = 5;
- }
- message ListStreamsResponse {
- // List of streams
- repeated Stream streams = 1;
- // A token, which can be sent as `page_token` to retrieve the next page.
- // If this field is omitted, there are no subsequent pages.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- message GetStreamRequest {
- // Required. The name of the stream resource to get.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/Stream"
- }
- ];
- }
- message CreateStreamRequest {
- // Required. The parent that owns the collection of streams.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/Stream"
- }
- ];
- // Required. The stream identifier.
- string stream_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The stream resource to create.
- Stream stream = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Only validate the stream, but do not create any resources.
- // The default is false.
- bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Create the stream without validating it.
- bool force = 6 [(google.api.field_behavior) = OPTIONAL];
- }
- message UpdateStreamRequest {
- // Optional. Field mask is used to specify the fields to be overwritten in the
- // stream resource by the update.
- // The fields specified in the update_mask are relative to the resource, not
- // the full request. A field will be overwritten if it is in the mask. If the
- // user does not provide a mask then all fields will be overwritten.
- google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL];
- // Required. The stream resource to update.
- Stream stream = 2 [(google.api.field_behavior) = REQUIRED];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 3 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Only validate the stream with the changes, without actually updating it.
- // The default is false.
- bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL];
- // Optional. Execute the update without validating it.
- bool force = 5 [(google.api.field_behavior) = OPTIONAL];
- }
- message DeleteStreamRequest {
- // Required. The name of the stream resource to delete.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/Stream"
- }
- ];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- // Represents the metadata of the long-running operation.
- message OperationMetadata {
- // Output only. The time the operation was created.
- google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. The time the operation finished running.
- google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. Server-defined resource path for the target of the operation.
- string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. Name of the verb executed by the operation.
- string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. Human-readable status of the operation, if any.
- string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. Identifies whether the user has requested cancellation
- // of the operation. Operations that have successfully been cancelled
- // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- // corresponding to `Code.CANCELLED`.
- bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. API version used to start the operation.
- string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
- // Output only. Results of executed validations if there are any.
- ValidationResult validation_result = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message CreatePrivateConnectionRequest {
- // Required. The parent that owns the collection of PrivateConnections.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/PrivateConnection"
- }
- ];
- // Required. The private connectivity identifier.
- string private_connection_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The Private Connectivity resource to create.
- PrivateConnection private_connection = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message ListPrivateConnectionsRequest {
- // Required. The parent that owns the collection of private connectivity configurations.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/PrivateConnection"
- }
- ];
- // Maximum number of private connectivity configurations to return.
- // If unspecified, at most 50 private connectivity configurations that will be
- // returned. The maximum value is 1000; values above 1000 will be coerced to
- // 1000.
- int32 page_size = 2;
- // Page token received from a previous `ListPrivateConnections` call.
- // Provide this to retrieve the subsequent page.
- //
- // When paginating, all other parameters provided to
- // `ListPrivateConnections` must match the call that provided the page
- // token.
- string page_token = 3;
- // Filter request.
- string filter = 4;
- // Order by fields for the result.
- string order_by = 5;
- }
- message ListPrivateConnectionsResponse {
- // List of private connectivity configurations.
- repeated PrivateConnection private_connections = 1;
- // A token, which can be sent as `page_token` to retrieve the next page.
- // If this field is omitted, there are no subsequent pages.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- message DeletePrivateConnectionRequest {
- // Required. The name of the private connectivity configuration to delete.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/PrivateConnection"
- }
- ];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- // Optional. If set to true, any child routes that belong to this PrivateConnection will
- // also be deleted.
- bool force = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message GetPrivateConnectionRequest {
- // Required. The name of the private connectivity configuration to get.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/PrivateConnection"
- }
- ];
- }
- // route creation request
- message CreateRouteRequest {
- // Required. The parent that owns the collection of Routes.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/Route"
- }
- ];
- // Required. The Route identifier.
- string route_id = 2 [(google.api.field_behavior) = REQUIRED];
- // Required. The Route resource to create.
- Route route = 3 [(google.api.field_behavior) = REQUIRED];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes since the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- // route list request
- message ListRoutesRequest {
- // Required. The parent that owns the collection of Routess.
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- child_type: "datastream.googleapis.com/Route"
- }
- ];
- // Maximum number of Routes to return. The service may return
- // fewer than this value. If unspecified, at most 50 Routes
- // will be returned. The maximum value is 1000; values above 1000 will be
- // coerced to 1000.
- int32 page_size = 2;
- // Page token received from a previous `ListRoutes` call.
- // Provide this to retrieve the subsequent page.
- //
- // When paginating, all other parameters provided to
- // `ListRoutes` must match the call that provided the page
- // token.
- string page_token = 3;
- // Filter request.
- string filter = 4;
- // Order by fields for the result.
- string order_by = 5;
- }
- // route list response
- message ListRoutesResponse {
- // List of Routes.
- repeated Route routes = 1;
- // A token, which can be sent as `page_token` to retrieve the next page.
- // If this field is omitted, there are no subsequent pages.
- string next_page_token = 2;
- // Locations that could not be reached.
- repeated string unreachable = 3;
- }
- // route deletion request
- message DeleteRouteRequest {
- // Required. The name of the Route resource to delete.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/Route"
- }
- ];
- // Optional. A request ID to identify requests. Specify a unique request ID
- // so that if you must retry your request, the server will know to ignore
- // the request if it has already been completed. The server will guarantee
- // that for at least 60 minutes after the first request.
- //
- // For example, consider a situation where you make an initial request and the
- // request times out. If you make the request again with the same request ID,
- // the server can check if original operation with the same request ID was
- // received, and if so, will ignore the second request. This prevents clients
- // from accidentally creating duplicate commitments.
- //
- // The request ID must be a valid UUID with the exception that zero UUID is
- // not supported (00000000-0000-0000-0000-000000000000).
- string request_id = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- // route get request
- message GetRouteRequest {
- // Required. The name of the Route resource to get.
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "datastream.googleapis.com/Route"
- }
- ];
- }
|