Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions generator/.DevConfigs/cfc23d36-d933-41b7-873d-93b30541ed10.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services": [
{
"serviceName": "S3",
"type": "patch",
"changeLogMessages": [
"Generate ListBucketMetricsConfigurations."
]
}
]
}
2 changes: 1 addition & 1 deletion generator/ServiceClientGeneratorLib/ServiceModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public List<Operation> S3AllowListOperations
//new Operation(this, "ListBucketAnalyticsConfigurations", DocumentRoot[OperationsKey]["ListBucketAnalyticsConfigurations"]),
//new Operation(this, "ListBucketIntelligentTieringConfigurations", DocumentRoot[OperationsKey]["ListBucketIntelligentTieringConfigurations"]),
//new Operation(this, "ListBucketInventoryConfigurations", DocumentRoot[OperationsKey]["ListBucketInventoryConfigurations"]),
// new Operation(this, "ListBucketMetricsConfigurations", DocumentRoot[OperationsKey]["ListBucketMetricsConfigurations"]),
new Operation(this, "ListBucketMetricsConfigurations", DocumentRoot[OperationsKey]["ListBucketMetricsConfigurations"]),
//new Operation(this, "PutBucketAccelerateConfiguration", DocumentRoot[OperationsKey]["PutBucketAccelerateConfiguration"]),
//new Operation(this, "RestoreObject", DocumentRoot[OperationsKey]["RestoreObject"]),
//new Operation(this, "SelectObjectContent", DocumentRoot[OperationsKey]["SelectObjectContent"]),
Expand Down
29 changes: 29 additions & 0 deletions generator/ServiceModels/s3/s3.customizations.json
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,35 @@
"Id":{"emitPropertyName": "MetricsId"}
}
]
},
"ListBucketMetricsConfigurationsOutput":{
"modify":[
{
"ContinuationToken":{"emitPropertyName":"Token"}
},
{
"Token" : {"injectXmlIsSet":["return !string.IsNullOrEmpty(this._token);"]}
},
{
"NextContinuationToken": {"emitPropertyName": "NextToken"}
},
{
"NextToken": {"injectXmlIsSet":["return !string.IsNullOrEmpty(this._nextToken);"]}
}
]
},
"ListBucketMetricsConfigurationsRequest":{
"modify":[
{
"Token": {"emitPropertyName": "ContinuationToken"}
},
{
"ContinuationToken" : {"injectXmlIsSet":["return !string.IsNullOrEmpty(this._continuationToken);"]}
},
{
"ExpectedBucketOwner" :{"injectXmlIsSet" :["return !string.IsNullOrEmpty(this._expectedBucketOwner);"]}
}
]
}
},
"operationModifiers": {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/*
* Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;

using Amazon.S3.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using System.Xml;

#pragma warning disable CS0612,CS0618
namespace Amazon.S3.Model.Internal.MarshallTransformations
{
/// <summary>
/// ListBucketMetricsConfigurations Request Marshaller
/// </summary>
public partial class ListBucketMetricsConfigurationsRequestMarshaller : IMarshaller<IRequest, ListBucketMetricsConfigurationsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ListBucketMetricsConfigurationsRequest)input);
}

/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ListBucketMetricsConfigurationsRequest publicRequest)
{
var request = new DefaultRequest(publicRequest, "Amazon.S3");
PreMarshallCustomization(request, publicRequest);
request.HttpMethod = "GET";
request.AddSubResource("metrics");

if (publicRequest.IsSetExpectedBucketOwner())
{
request.Headers["x-amz-expected-bucket-owner"] = publicRequest.ExpectedBucketOwner;
}
if (string.IsNullOrEmpty(publicRequest.BucketName))
throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "ListBucketMetricsConfigurationsRequest.BucketName");

if (publicRequest.IsSetContinuationToken())
request.Parameters.Add("continuation-token", StringUtils.FromString(publicRequest.ContinuationToken));
request.ResourcePath = "/";

PostMarshallCustomization(request, publicRequest);
request.UseQueryString = true;
return request;
}
private static ListBucketMetricsConfigurationsRequestMarshaller _instance = new ListBucketMetricsConfigurationsRequestMarshaller();

internal static ListBucketMetricsConfigurationsRequestMarshaller GetInstance()
{
return _instance;
}

/// <summary>
/// Gets the singleton.
/// </summary>
public static ListBucketMetricsConfigurationsRequestMarshaller Instance
{
get
{
return _instance;
}
}

partial void PostMarshallCustomization(DefaultRequest defaultRequest, ListBucketMetricsConfigurationsRequest publicRequest);
partial void PreMarshallCustomization(DefaultRequest defaultRequest, ListBucketMetricsConfigurationsRequest publicRequest);
}
}
Loading