docktor_api_client/
operation.rs1#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
9pub struct HealthcheckOperation {
10 _private: (),
11}
12impl HealthcheckOperation {
13 pub fn builder() -> crate::input::healthcheck_operation_input::Builder {
15 crate::input::healthcheck_operation_input::Builder::default()
16 }
17 pub fn new() -> Self {
19 Self { _private: () }
20 }
21}
22impl aws_smithy_http::response::ParseStrictResponse for HealthcheckOperation {
23 type Output = std::result::Result<
24 crate::output::HealthcheckOperationOutput,
25 crate::error::HealthcheckOperationError,
26 >;
27 fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
28 if !response.status().is_success() && response.status().as_u16() != 200 {
29 crate::operation_deser::parse_healthcheck_operation_error(response)
30 } else {
31 crate::operation_deser::parse_healthcheck_operation_response(response)
32 }
33 }
34}
35
36#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
43pub struct ListOperation {
44 _private: (),
45}
46impl ListOperation {
47 pub fn builder() -> crate::input::list_operation_input::Builder {
49 crate::input::list_operation_input::Builder::default()
50 }
51 pub fn new() -> Self {
53 Self { _private: () }
54 }
55}
56impl aws_smithy_http::response::ParseStrictResponse for ListOperation {
57 type Output =
58 std::result::Result<crate::output::ListOperationOutput, crate::error::ListOperationError>;
59 fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
60 if !response.status().is_success() && response.status().as_u16() != 200 {
61 crate::operation_deser::parse_list_operation_error(response)
62 } else {
63 crate::operation_deser::parse_list_operation_response(response)
64 }
65 }
66}
67
68#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
75pub struct PrometheusTargetOperation {
76 _private: (),
77}
78impl PrometheusTargetOperation {
79 pub fn builder() -> crate::input::prometheus_target_operation_input::Builder {
81 crate::input::prometheus_target_operation_input::Builder::default()
82 }
83 pub fn new() -> Self {
85 Self { _private: () }
86 }
87}
88impl aws_smithy_http::response::ParseStrictResponse for PrometheusTargetOperation {
89 type Output = std::result::Result<
90 crate::output::PrometheusTargetOperationOutput,
91 crate::error::PrometheusTargetOperationError,
92 >;
93 fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
94 if !response.status().is_success() && response.status().as_u16() != 200 {
95 crate::operation_deser::parse_prometheus_target_operation_error(response)
96 } else {
97 crate::operation_deser::parse_prometheus_target_operation_response(response)
98 }
99 }
100}
101
102#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
109pub struct RestartOperation {
110 _private: (),
111}
112impl RestartOperation {
113 pub fn builder() -> crate::input::restart_operation_input::Builder {
115 crate::input::restart_operation_input::Builder::default()
116 }
117 pub fn new() -> Self {
119 Self { _private: () }
120 }
121}
122impl aws_smithy_http::response::ParseStrictResponse for RestartOperation {
123 type Output = std::result::Result<
124 crate::output::RestartOperationOutput,
125 crate::error::RestartOperationError,
126 >;
127 fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
128 if !response.status().is_success() && response.status().as_u16() != 200 {
129 crate::operation_deser::parse_restart_operation_error(response)
130 } else {
131 crate::operation_deser::parse_restart_operation_response(response)
132 }
133 }
134}
135
136#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
143pub struct StartOperation {
144 _private: (),
145}
146impl StartOperation {
147 pub fn builder() -> crate::input::start_operation_input::Builder {
149 crate::input::start_operation_input::Builder::default()
150 }
151 pub fn new() -> Self {
153 Self { _private: () }
154 }
155}
156impl aws_smithy_http::response::ParseStrictResponse for StartOperation {
157 type Output =
158 std::result::Result<crate::output::StartOperationOutput, crate::error::StartOperationError>;
159 fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
160 if !response.status().is_success() && response.status().as_u16() != 200 {
161 crate::operation_deser::parse_start_operation_error(response)
162 } else {
163 crate::operation_deser::parse_start_operation_response(response)
164 }
165 }
166}
167
168#[derive(std::default::Default, std::clone::Clone, std::fmt::Debug)]
175pub struct StopOperation {
176 _private: (),
177}
178impl StopOperation {
179 pub fn builder() -> crate::input::stop_operation_input::Builder {
181 crate::input::stop_operation_input::Builder::default()
182 }
183 pub fn new() -> Self {
185 Self { _private: () }
186 }
187}
188impl aws_smithy_http::response::ParseStrictResponse for StopOperation {
189 type Output =
190 std::result::Result<crate::output::StopOperationOutput, crate::error::StopOperationError>;
191 fn parse(&self, response: &http::Response<bytes::Bytes>) -> Self::Output {
192 if !response.status().is_success() && response.status().as_u16() != 200 {
193 crate::operation_deser::parse_stop_operation_error(response)
194 } else {
195 crate::operation_deser::parse_stop_operation_response(response)
196 }
197 }
198}