Skip to main content

google_cloud_websecurityscanner_v1/
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::WebSecurityScanner].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::WebSecurityScanner`.  In other use-cases, application developers only
33/// use `client::WebSecurityScanner` 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 WebSecurityScanner: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::WebSecurityScanner::create_scan_config].
42    fn create_scan_config(
43        &self,
44        _req: crate::model::CreateScanConfigRequest,
45        _options: crate::RequestOptions,
46    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::ScanConfig>>> + Send
47    {
48        gaxi::unimplemented::unimplemented_stub()
49    }
50
51    /// Implements [super::client::WebSecurityScanner::delete_scan_config].
52    fn delete_scan_config(
53        &self,
54        _req: crate::model::DeleteScanConfigRequest,
55        _options: crate::RequestOptions,
56    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
57        gaxi::unimplemented::unimplemented_stub()
58    }
59
60    /// Implements [super::client::WebSecurityScanner::get_scan_config].
61    fn get_scan_config(
62        &self,
63        _req: crate::model::GetScanConfigRequest,
64        _options: crate::RequestOptions,
65    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::ScanConfig>>> + Send
66    {
67        gaxi::unimplemented::unimplemented_stub()
68    }
69
70    /// Implements [super::client::WebSecurityScanner::list_scan_configs].
71    fn list_scan_configs(
72        &self,
73        _req: crate::model::ListScanConfigsRequest,
74        _options: crate::RequestOptions,
75    ) -> impl std::future::Future<
76        Output = crate::Result<crate::Response<crate::model::ListScanConfigsResponse>>,
77    > + Send {
78        gaxi::unimplemented::unimplemented_stub()
79    }
80
81    /// Implements [super::client::WebSecurityScanner::update_scan_config].
82    fn update_scan_config(
83        &self,
84        _req: crate::model::UpdateScanConfigRequest,
85        _options: crate::RequestOptions,
86    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::ScanConfig>>> + Send
87    {
88        gaxi::unimplemented::unimplemented_stub()
89    }
90
91    /// Implements [super::client::WebSecurityScanner::start_scan_run].
92    fn start_scan_run(
93        &self,
94        _req: crate::model::StartScanRunRequest,
95        _options: crate::RequestOptions,
96    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::ScanRun>>> + Send
97    {
98        gaxi::unimplemented::unimplemented_stub()
99    }
100
101    /// Implements [super::client::WebSecurityScanner::get_scan_run].
102    fn get_scan_run(
103        &self,
104        _req: crate::model::GetScanRunRequest,
105        _options: crate::RequestOptions,
106    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::ScanRun>>> + Send
107    {
108        gaxi::unimplemented::unimplemented_stub()
109    }
110
111    /// Implements [super::client::WebSecurityScanner::list_scan_runs].
112    fn list_scan_runs(
113        &self,
114        _req: crate::model::ListScanRunsRequest,
115        _options: crate::RequestOptions,
116    ) -> impl std::future::Future<
117        Output = crate::Result<crate::Response<crate::model::ListScanRunsResponse>>,
118    > + Send {
119        gaxi::unimplemented::unimplemented_stub()
120    }
121
122    /// Implements [super::client::WebSecurityScanner::stop_scan_run].
123    fn stop_scan_run(
124        &self,
125        _req: crate::model::StopScanRunRequest,
126        _options: crate::RequestOptions,
127    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::ScanRun>>> + Send
128    {
129        gaxi::unimplemented::unimplemented_stub()
130    }
131
132    /// Implements [super::client::WebSecurityScanner::list_crawled_urls].
133    fn list_crawled_urls(
134        &self,
135        _req: crate::model::ListCrawledUrlsRequest,
136        _options: crate::RequestOptions,
137    ) -> impl std::future::Future<
138        Output = crate::Result<crate::Response<crate::model::ListCrawledUrlsResponse>>,
139    > + Send {
140        gaxi::unimplemented::unimplemented_stub()
141    }
142
143    /// Implements [super::client::WebSecurityScanner::get_finding].
144    fn get_finding(
145        &self,
146        _req: crate::model::GetFindingRequest,
147        _options: crate::RequestOptions,
148    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Finding>>> + Send
149    {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::WebSecurityScanner::list_findings].
154    fn list_findings(
155        &self,
156        _req: crate::model::ListFindingsRequest,
157        _options: crate::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<crate::Response<crate::model::ListFindingsResponse>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::WebSecurityScanner::list_finding_type_stats].
165    fn list_finding_type_stats(
166        &self,
167        _req: crate::model::ListFindingTypeStatsRequest,
168        _options: crate::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<crate::Response<crate::model::ListFindingTypeStatsResponse>>,
171    > + Send {
172        gaxi::unimplemented::unimplemented_stub()
173    }
174}