/*
* 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 glue-2017-03-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Glue.Model
{
///
/// Container for the parameters to the DeleteSchemaVersions operation.
/// Remove versions from the specified schema. A version number or range may be supplied.
/// If the compatibility mode forbids deleting of a version that is necessary, such as
/// BACKWARDS_FULL, an error is returned. Calling the GetSchemaVersions
API
/// after this call will list the status of the deleted versions.
///
///
///
/// When the range of version numbers contain check pointed version, the API will return
/// a 409 conflict and will not proceed with the deletion. You have to remove the checkpoint
/// first using the DeleteSchemaCheckpoint
API before using this API.
///
///
///
/// You cannot use the DeleteSchemaVersions
API to delete the first schema
/// version in the schema set. The first schema version can only be deleted by the DeleteSchema
/// API. This operation will also delete the attached SchemaVersionMetadata
/// under the schema versions. Hard deletes will be enforced on the database.
///
///
///
/// If the compatibility mode forbids deleting of a version that is necessary, such as
/// BACKWARDS_FULL, an error is returned.
///
///
public partial class DeleteSchemaVersionsRequest : AmazonGlueRequest
{
private SchemaId _schemaId;
private string _versions;
///
/// Gets and sets the property SchemaId.
///
/// This is a wrapper structure that may contain the schema name and Amazon Resource Name
/// (ARN).
///
///
[AWSProperty(Required=true)]
public SchemaId SchemaId
{
get { return this._schemaId; }
set { this._schemaId = value; }
}
// Check to see if SchemaId property is set
internal bool IsSetSchemaId()
{
return this._schemaId != null;
}
///
/// Gets and sets the property Versions.
///
/// A version range may be supplied which may be of the format:
///
/// -
///
/// a single version number, 5
///
///
-
///
/// a range, 5-8 : deletes versions 5, 6, 7, 8
///
///
///
[AWSProperty(Required=true, Min=1, Max=100000)]
public string Versions
{
get { return this._versions; }
set { this._versions = value; }
}
// Check to see if Versions property is set
internal bool IsSetVersions()
{
return this._versions != null;
}
}
}