Class: Aws::APIGateway::Types::UpdateModelRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-apigateway/types.rb

Overview

Note:

When making an API call, you may pass UpdateModelRequest data as a hash:

{
  rest_api_id: "String", # required
  model_name: "String", # required
  patch_operations: [
    {
      op: "add", # accepts add, remove, replace, move, copy, test
      path: "String",
      value: "String",
      from: "String",
    },
  ],
}

Request to update an existing model in an existing RestApi resource.

Instance Attribute Summary collapse

Instance Attribute Details

#model_nameString

The name of the model to update.

Returns:

  • (String)


6468
6469
6470
6471
6472
6473
# File 'lib/aws-sdk-apigateway/types.rb', line 6468

class UpdateModelRequest < Struct.new(
  :rest_api_id,
  :model_name,
  :patch_operations)
  include Aws::Structure
end

#patch_operationsArray<Types::PatchOperation>

A list of update operations to be applied to the specified resource and in the order specified in this list.

Returns:



6468
6469
6470
6471
6472
6473
# File 'lib/aws-sdk-apigateway/types.rb', line 6468

class UpdateModelRequest < Struct.new(
  :rest_api_id,
  :model_name,
  :patch_operations)
  include Aws::Structure
end

#rest_api_idString

The string identifier of the associated RestApi.

Returns:

  • (String)


6468
6469
6470
6471
6472
6473
# File 'lib/aws-sdk-apigateway/types.rb', line 6468

class UpdateModelRequest < Struct.new(
  :rest_api_id,
  :model_name,
  :patch_operations)
  include Aws::Structure
end