Skip to content

Commit c6dc843

Browse files
committed
Generate ListBucketAnalyticsConfiguration
1 parent cdc836b commit c6dc843

File tree

7 files changed

+348
-253
lines changed

7 files changed

+348
-253
lines changed

generator/ServiceClientGeneratorLib/ServiceModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public List<Operation> S3AllowListOperations
555555
new Operation(this, "GetBucketMetricsConfiguration", DocumentRoot[OperationsKey]["GetBucketMetricsConfiguration"]),
556556
//new Operation(this, "GetBucketVersioning", DocumentRoot[OperationsKey]["GetBucketVersioning"]),
557557
//new Operation(this, "GetBucketWebsite", DocumentRoot[OperationsKey]["GetBucketWebsite"]),
558-
//new Operation(this, "ListBucketAnalyticsConfigurations", DocumentRoot[OperationsKey]["ListBucketAnalyticsConfigurations"]),
558+
new Operation(this, "ListBucketAnalyticsConfigurations", DocumentRoot[OperationsKey]["ListBucketAnalyticsConfigurations"]),
559559
//new Operation(this, "ListBucketIntelligentTieringConfigurations", DocumentRoot[OperationsKey]["ListBucketIntelligentTieringConfigurations"]),
560560
//new Operation(this, "ListBucketInventoryConfigurations", DocumentRoot[OperationsKey]["ListBucketInventoryConfigurations"]),
561561
new Operation(this, "ListBucketMetricsConfigurations", DocumentRoot[OperationsKey]["ListBucketMetricsConfigurations"]),

sdk/src/Services/S3/Custom/Model/Internal/MarshallTransformations/ListBucketAnalyticsConfigurationsRequestMarshaller.cs

Lines changed: 0 additions & 75 deletions
This file was deleted.

sdk/src/Services/S3/Custom/Model/ListBucketAnalyticsConfigurationsResponse.cs

Lines changed: 0 additions & 99 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Globalization;
22+
using System.IO;
23+
using System.Text;
24+
using System.Xml.Serialization;
25+
26+
using Amazon.S3.Model;
27+
using Amazon.Runtime;
28+
using Amazon.Runtime.Internal;
29+
using Amazon.Runtime.Internal.Transform;
30+
using Amazon.Runtime.Internal.Util;
31+
using System.Xml;
32+
33+
#pragma warning disable CS0612,CS0618
34+
namespace Amazon.S3.Model.Internal.MarshallTransformations
35+
{
36+
/// <summary>
37+
/// ListBucketAnalyticsConfigurations Request Marshaller
38+
/// </summary>
39+
public partial class ListBucketAnalyticsConfigurationsRequestMarshaller : IMarshaller<IRequest, ListBucketAnalyticsConfigurationsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
40+
{
41+
/// <summary>
42+
/// Marshaller the request object to the HTTP request.
43+
/// </summary>
44+
/// <param name="input"></param>
45+
/// <returns></returns>
46+
public IRequest Marshall(AmazonWebServiceRequest input)
47+
{
48+
return this.Marshall((ListBucketAnalyticsConfigurationsRequest)input);
49+
}
50+
51+
/// <summary>
52+
/// Marshaller the request object to the HTTP request.
53+
/// </summary>
54+
/// <param name="publicRequest"></param>
55+
/// <returns></returns>
56+
public IRequest Marshall(ListBucketAnalyticsConfigurationsRequest publicRequest)
57+
{
58+
var request = new DefaultRequest(publicRequest, "Amazon.S3");
59+
PreMarshallCustomization(request, publicRequest);
60+
request.HttpMethod = "GET";
61+
request.AddSubResource("analytics");
62+
63+
if (publicRequest.IsSetExpectedBucketOwner())
64+
{
65+
request.Headers["x-amz-expected-bucket-owner"] = publicRequest.ExpectedBucketOwner;
66+
}
67+
if (string.IsNullOrEmpty(publicRequest.BucketName))
68+
throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "ListBucketAnalyticsConfigurationsRequest.BucketName");
69+
70+
if (publicRequest.IsSetContinuationToken())
71+
request.Parameters.Add("continuation-token", StringUtils.FromString(publicRequest.ContinuationToken));
72+
request.ResourcePath = "/";
73+
74+
PostMarshallCustomization(request, publicRequest);
75+
request.UseQueryString = true;
76+
return request;
77+
}
78+
private static ListBucketAnalyticsConfigurationsRequestMarshaller _instance = new ListBucketAnalyticsConfigurationsRequestMarshaller();
79+
80+
internal static ListBucketAnalyticsConfigurationsRequestMarshaller GetInstance()
81+
{
82+
return _instance;
83+
}
84+
85+
/// <summary>
86+
/// Gets the singleton.
87+
/// </summary>
88+
public static ListBucketAnalyticsConfigurationsRequestMarshaller Instance
89+
{
90+
get
91+
{
92+
return _instance;
93+
}
94+
}
95+
96+
partial void PostMarshallCustomization(DefaultRequest defaultRequest, ListBucketAnalyticsConfigurationsRequest publicRequest);
97+
partial void PreMarshallCustomization(DefaultRequest defaultRequest, ListBucketAnalyticsConfigurationsRequest publicRequest);
98+
}
99+
}

0 commit comments

Comments
 (0)