82 82 | "com.amazonaws.s3control",
|
83 83 | "ListAccessGrantEntry",
|
84 84 | );
|
85 85 | static LISTACCESSGRANTENTRY_MEMBER_CREATED_AT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
86 86 | ::aws_smithy_schema::ShapeId::from_static(
|
87 87 | "com.amazonaws.s3control#ListAccessGrantEntry$CreatedAt",
|
88 88 | "com.amazonaws.s3control",
|
89 89 | "ListAccessGrantEntry",
|
90 90 | ),
|
91 91 | ::aws_smithy_schema::ShapeType::Timestamp,
|
92 - | "created_at",
|
92 + | "CreatedAt",
|
93 93 | 0,
|
94 94 | );
|
95 95 | static LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANT_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
96 96 | ::aws_smithy_schema::ShapeId::from_static(
|
97 97 | "com.amazonaws.s3control#ListAccessGrantEntry$AccessGrantId",
|
98 98 | "com.amazonaws.s3control",
|
99 99 | "ListAccessGrantEntry",
|
100 100 | ),
|
101 101 | ::aws_smithy_schema::ShapeType::String,
|
102 - | "access_grant_id",
|
102 + | "AccessGrantId",
|
103 103 | 1,
|
104 104 | );
|
105 105 | static LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANT_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
106 106 | ::aws_smithy_schema::ShapeId::from_static(
|
107 107 | "com.amazonaws.s3control#ListAccessGrantEntry$AccessGrantArn",
|
108 108 | "com.amazonaws.s3control",
|
109 109 | "ListAccessGrantEntry",
|
110 110 | ),
|
111 111 | ::aws_smithy_schema::ShapeType::String,
|
112 - | "access_grant_arn",
|
112 + | "AccessGrantArn",
|
113 113 | 2,
|
114 114 | );
|
115 115 | static LISTACCESSGRANTENTRY_MEMBER_GRANTEE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
116 116 | ::aws_smithy_schema::ShapeId::from_static(
|
117 117 | "com.amazonaws.s3control#ListAccessGrantEntry$Grantee",
|
118 118 | "com.amazonaws.s3control",
|
119 119 | "ListAccessGrantEntry",
|
120 120 | ),
|
121 121 | ::aws_smithy_schema::ShapeType::Structure,
|
122 - | "grantee",
|
122 + | "Grantee",
|
123 123 | 3,
|
124 124 | );
|
125 125 | static LISTACCESSGRANTENTRY_MEMBER_PERMISSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
126 126 | ::aws_smithy_schema::ShapeId::from_static(
|
127 127 | "com.amazonaws.s3control#ListAccessGrantEntry$Permission",
|
128 128 | "com.amazonaws.s3control",
|
129 129 | "ListAccessGrantEntry",
|
130 130 | ),
|
131 131 | ::aws_smithy_schema::ShapeType::String,
|
132 - | "permission",
|
132 + | "Permission",
|
133 133 | 4,
|
134 134 | );
|
135 135 | static LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANTS_LOCATION_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
136 136 | ::aws_smithy_schema::ShapeId::from_static(
|
137 137 | "com.amazonaws.s3control#ListAccessGrantEntry$AccessGrantsLocationId",
|
138 138 | "com.amazonaws.s3control",
|
139 139 | "ListAccessGrantEntry",
|
140 140 | ),
|
141 141 | ::aws_smithy_schema::ShapeType::String,
|
142 - | "access_grants_location_id",
|
142 + | "AccessGrantsLocationId",
|
143 143 | 5,
|
144 144 | );
|
145 145 | static LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANTS_LOCATION_CONFIGURATION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
146 146 | ::aws_smithy_schema::ShapeId::from_static(
|
147 147 | "com.amazonaws.s3control#ListAccessGrantEntry$AccessGrantsLocationConfiguration",
|
148 148 | "com.amazonaws.s3control",
|
149 149 | "ListAccessGrantEntry",
|
150 150 | ),
|
151 151 | ::aws_smithy_schema::ShapeType::Structure,
|
152 - | "access_grants_location_configuration",
|
152 + | "AccessGrantsLocationConfiguration",
|
153 153 | 6,
|
154 154 | );
|
155 155 | static LISTACCESSGRANTENTRY_MEMBER_GRANT_SCOPE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
156 156 | ::aws_smithy_schema::ShapeId::from_static(
|
157 157 | "com.amazonaws.s3control#ListAccessGrantEntry$GrantScope",
|
158 158 | "com.amazonaws.s3control",
|
159 159 | "ListAccessGrantEntry",
|
160 160 | ),
|
161 161 | ::aws_smithy_schema::ShapeType::String,
|
162 - | "grant_scope",
|
162 + | "GrantScope",
|
163 163 | 7,
|
164 164 | );
|
165 165 | static LISTACCESSGRANTENTRY_MEMBER_APPLICATION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
166 166 | ::aws_smithy_schema::ShapeId::from_static(
|
167 167 | "com.amazonaws.s3control#ListAccessGrantEntry$ApplicationArn",
|
168 168 | "com.amazonaws.s3control",
|
169 169 | "ListAccessGrantEntry",
|
170 170 | ),
|
171 171 | ::aws_smithy_schema::ShapeType::String,
|
172 - | "application_arn",
|
172 + | "ApplicationArn",
|
173 173 | 8,
|
174 174 | );
|
175 175 | static LISTACCESSGRANTENTRY_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
176 176 | LISTACCESSGRANTENTRY_SCHEMA_ID,
|
177 177 | ::aws_smithy_schema::ShapeType::Structure,
|
178 178 | &[
|
179 179 | &LISTACCESSGRANTENTRY_MEMBER_CREATED_AT,
|
180 180 | &LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANT_ID,
|
181 181 | &LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANT_ARN,
|
182 182 | &LISTACCESSGRANTENTRY_MEMBER_GRANTEE,
|
183 183 | &LISTACCESSGRANTENTRY_MEMBER_PERMISSION,
|
184 184 | &LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANTS_LOCATION_ID,
|
185 185 | &LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANTS_LOCATION_CONFIGURATION,
|
186 186 | &LISTACCESSGRANTENTRY_MEMBER_GRANT_SCOPE,
|
187 187 | &LISTACCESSGRANTENTRY_MEMBER_APPLICATION_ARN,
|
188 188 | ],
|
189 189 | );
|
190 190 | impl ListAccessGrantEntry {
|
191 191 | /// The schema for this shape.
|
192 192 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &LISTACCESSGRANTENTRY_SCHEMA;
|
193 193 | }
|
194 194 | impl ::aws_smithy_schema::serde::SerializableStruct for ListAccessGrantEntry {
|
195 195 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
196 196 | fn serialize_members(
|
197 197 | &self,
|
198 198 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
199 199 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
200 200 | if let Some(ref val) = self.created_at {
|
201 201 | ser.write_timestamp(&LISTACCESSGRANTENTRY_MEMBER_CREATED_AT, val)?;
|
202 202 | }
|
203 203 | if let Some(ref val) = self.access_grant_id {
|
204 204 | ser.write_string(&LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANT_ID, val)?;
|
205 205 | }
|
206 206 | if let Some(ref val) = self.access_grant_arn {
|
207 207 | ser.write_string(&LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANT_ARN, val)?;
|
208 208 | }
|
209 209 | if let Some(ref val) = self.grantee {
|
210 210 | ser.write_struct(&LISTACCESSGRANTENTRY_MEMBER_GRANTEE, val)?;
|
211 211 | }
|
212 212 | if let Some(ref val) = self.permission {
|
213 213 | ser.write_string(&LISTACCESSGRANTENTRY_MEMBER_PERMISSION, val.as_str())?;
|
214 214 | }
|
215 215 | if let Some(ref val) = self.access_grants_location_id {
|
216 216 | ser.write_string(&LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANTS_LOCATION_ID, val)?;
|
217 217 | }
|
218 218 | if let Some(ref val) = self.access_grants_location_configuration {
|
219 219 | ser.write_struct(&LISTACCESSGRANTENTRY_MEMBER_ACCESS_GRANTS_LOCATION_CONFIGURATION, val)?;
|
220 220 | }
|
221 221 | if let Some(ref val) = self.grant_scope {
|
222 222 | ser.write_string(&LISTACCESSGRANTENTRY_MEMBER_GRANT_SCOPE, val)?;
|
223 223 | }
|
224 224 | if let Some(ref val) = self.application_arn {
|
225 225 | ser.write_string(&LISTACCESSGRANTENTRY_MEMBER_APPLICATION_ARN, val)?;
|
226 226 | }
|
227 227 | Ok(())
|
228 228 | }
|
229 229 | }
|
230 230 | impl ListAccessGrantEntry {
|
231 231 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
232 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
233 - | deserializer: &mut D,
|
232 + | pub fn deserialize(
|
233 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
234 234 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
235 235 | #[allow(unused_variables, unused_mut)]
|
236 236 | let mut builder = Self::builder();
|
237 237 | #[allow(
|
238 238 | unused_variables,
|
239 239 | unreachable_code,
|
240 240 | clippy::single_match,
|
241 241 | clippy::match_single_binding,
|
242 242 | clippy::diverging_sub_expression
|
243 243 | )]
|
244 - | deserializer.read_struct(&LISTACCESSGRANTENTRY_SCHEMA, (), |_, member, deser| {
|
244 + | deserializer.read_struct(&LISTACCESSGRANTENTRY_SCHEMA, &mut |member, deser| {
|
245 245 | match member.member_index() {
|
246 246 | Some(0) => {
|
247 247 | builder.created_at = Some(deser.read_timestamp(member)?);
|
248 248 | }
|
249 249 | Some(1) => {
|
250 250 | builder.access_grant_id = Some(deser.read_string(member)?);
|
251 251 | }
|
252 252 | Some(2) => {
|
253 253 | builder.access_grant_arn = Some(deser.read_string(member)?);
|
254 254 | }
|
255 255 | Some(3) => {
|
256 256 | builder.grantee = Some(crate::types::Grantee::deserialize(deser)?);
|
257 257 | }
|
258 258 | Some(4) => {
|
259 259 | builder.permission = Some(crate::types::Permission::from(deser.read_string(member)?.as_str()));
|
260 260 | }
|
261 261 | Some(5) => {
|
262 262 | builder.access_grants_location_id = Some(deser.read_string(member)?);
|
263 263 | }
|
264 264 | Some(6) => {
|
265 265 | builder.access_grants_location_configuration = Some(crate::types::AccessGrantsLocationConfiguration::deserialize(deser)?);
|
266 266 | }
|
267 267 | Some(7) => {
|
268 268 | builder.grant_scope = Some(deser.read_string(member)?);
|
269 269 | }
|
270 270 | Some(8) => {
|
271 271 | builder.application_arn = Some(deser.read_string(member)?);
|
272 272 | }
|
273 273 | _ => {}
|
274 274 | }
|
275 275 | Ok(())
|
276 276 | })?;
|
277 277 | Ok(builder.build())
|
278 278 | }
|
279 279 | }
|
280 + | impl ListAccessGrantEntry {
|
281 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
282 + | pub fn deserialize_with_response(
|
283 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
284 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
285 + | _status: u16,
|
286 + | _body: &[u8],
|
287 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
288 + | Self::deserialize(deserializer)
|
289 + | }
|
290 + | }
|
280 291 | impl ListAccessGrantEntry {
|
281 292 | /// Creates a new builder-style object to manufacture [`ListAccessGrantEntry`](crate::types::ListAccessGrantEntry).
|
282 293 | pub fn builder() -> crate::types::builders::ListAccessGrantEntryBuilder {
|
283 294 | crate::types::builders::ListAccessGrantEntryBuilder::default()
|
284 295 | }
|
285 296 | }
|
286 297 |
|
287 298 | /// A builder for [`ListAccessGrantEntry`](crate::types::ListAccessGrantEntry).
|
288 299 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
289 300 | #[non_exhaustive]
|