Skip to main content

google_cloud_support_v2/
stub.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17//! Traits to mock the clients in this library.
18//!
19//! Application developers may need to mock the clients in this library to test
20//! how their application works with different (and sometimes hard to trigger)
21//! client and service behavior. Such test can define mocks implementing the
22//! trait(s) defined in this module, initialize the client with an instance of
23//! this mock in their tests, and verify their application responds as expected.
24
25#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29/// Defines the trait used to implement [super::client::CaseAttachmentService].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::CaseAttachmentService`.  In other use-cases, application developers only
33/// use `client::CaseAttachmentService` and need not be concerned with this trait or
34/// its implementations.
35///
36/// Services gain new RPCs routinely. Consequently, this trait gains new methods
37/// too. To avoid breaking applications the trait provides a default
38/// implementation of each method. Most of these implementations just return an
39/// error.
40pub trait CaseAttachmentService: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::CaseAttachmentService::list_attachments].
42    fn list_attachments(
43        &self,
44        _req: crate::model::ListAttachmentsRequest,
45        _options: crate::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<crate::Response<crate::model::ListAttachmentsResponse>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51}
52
53/// Defines the trait used to implement [super::client::CaseService].
54///
55/// Application developers may need to implement this trait to mock
56/// `client::CaseService`.  In other use-cases, application developers only
57/// use `client::CaseService` and need not be concerned with this trait or
58/// its implementations.
59///
60/// Services gain new RPCs routinely. Consequently, this trait gains new methods
61/// too. To avoid breaking applications the trait provides a default
62/// implementation of each method. Most of these implementations just return an
63/// error.
64pub trait CaseService: std::fmt::Debug + Send + Sync {
65    /// Implements [super::client::CaseService::get_case].
66    fn get_case(
67        &self,
68        _req: crate::model::GetCaseRequest,
69        _options: crate::RequestOptions,
70    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
71    {
72        gaxi::unimplemented::unimplemented_stub()
73    }
74
75    /// Implements [super::client::CaseService::list_cases].
76    fn list_cases(
77        &self,
78        _req: crate::model::ListCasesRequest,
79        _options: crate::RequestOptions,
80    ) -> impl std::future::Future<
81        Output = crate::Result<crate::Response<crate::model::ListCasesResponse>>,
82    > + Send {
83        gaxi::unimplemented::unimplemented_stub()
84    }
85
86    /// Implements [super::client::CaseService::search_cases].
87    fn search_cases(
88        &self,
89        _req: crate::model::SearchCasesRequest,
90        _options: crate::RequestOptions,
91    ) -> impl std::future::Future<
92        Output = crate::Result<crate::Response<crate::model::SearchCasesResponse>>,
93    > + Send {
94        gaxi::unimplemented::unimplemented_stub()
95    }
96
97    /// Implements [super::client::CaseService::create_case].
98    fn create_case(
99        &self,
100        _req: crate::model::CreateCaseRequest,
101        _options: crate::RequestOptions,
102    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
103    {
104        gaxi::unimplemented::unimplemented_stub()
105    }
106
107    /// Implements [super::client::CaseService::update_case].
108    fn update_case(
109        &self,
110        _req: crate::model::UpdateCaseRequest,
111        _options: crate::RequestOptions,
112    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
113    {
114        gaxi::unimplemented::unimplemented_stub()
115    }
116
117    /// Implements [super::client::CaseService::escalate_case].
118    fn escalate_case(
119        &self,
120        _req: crate::model::EscalateCaseRequest,
121        _options: crate::RequestOptions,
122    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
123    {
124        gaxi::unimplemented::unimplemented_stub()
125    }
126
127    /// Implements [super::client::CaseService::close_case].
128    fn close_case(
129        &self,
130        _req: crate::model::CloseCaseRequest,
131        _options: crate::RequestOptions,
132    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Case>>> + Send
133    {
134        gaxi::unimplemented::unimplemented_stub()
135    }
136
137    /// Implements [super::client::CaseService::search_case_classifications].
138    fn search_case_classifications(
139        &self,
140        _req: crate::model::SearchCaseClassificationsRequest,
141        _options: crate::RequestOptions,
142    ) -> impl std::future::Future<
143        Output = crate::Result<crate::Response<crate::model::SearchCaseClassificationsResponse>>,
144    > + Send {
145        gaxi::unimplemented::unimplemented_stub()
146    }
147}
148
149/// Defines the trait used to implement [super::client::CommentService].
150///
151/// Application developers may need to implement this trait to mock
152/// `client::CommentService`.  In other use-cases, application developers only
153/// use `client::CommentService` and need not be concerned with this trait or
154/// its implementations.
155///
156/// Services gain new RPCs routinely. Consequently, this trait gains new methods
157/// too. To avoid breaking applications the trait provides a default
158/// implementation of each method. Most of these implementations just return an
159/// error.
160pub trait CommentService: std::fmt::Debug + Send + Sync {
161    /// Implements [super::client::CommentService::list_comments].
162    fn list_comments(
163        &self,
164        _req: crate::model::ListCommentsRequest,
165        _options: crate::RequestOptions,
166    ) -> impl std::future::Future<
167        Output = crate::Result<crate::Response<crate::model::ListCommentsResponse>>,
168    > + Send {
169        gaxi::unimplemented::unimplemented_stub()
170    }
171
172    /// Implements [super::client::CommentService::create_comment].
173    fn create_comment(
174        &self,
175        _req: crate::model::CreateCommentRequest,
176        _options: crate::RequestOptions,
177    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Comment>>> + Send
178    {
179        gaxi::unimplemented::unimplemented_stub()
180    }
181}