Class: Google::Apis::ApihubV1::GoogleCloudApihubV1OperationDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb

Overview

The operation details parsed from the spec.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1OperationDetails

Returns a new instance of GoogleCloudApihubV1OperationDetails.



3617
3618
3619
# File 'lib/google/apis/apihub_v1/classes.rb', line 3617

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deprecatedBoolean Also known as: deprecated?

Optional. For OpenAPI spec, this will be set if operation.deprecatedis marked as true in the spec. Corresponds to the JSON property deprecated

Returns:

  • (Boolean)


3592
3593
3594
# File 'lib/google/apis/apihub_v1/classes.rb', line 3592

def deprecated
  @deprecated
end

#descriptionString

Optional. Description of the operation behavior. For OpenAPI spec, this will map to operation.description in the spec, in case description is empty, operation.summary will be used. Corresponds to the JSON property description

Returns:

  • (String)


3600
3601
3602
# File 'lib/google/apis/apihub_v1/classes.rb', line 3600

def description
  @description
end

#documentationGoogle::Apis::ApihubV1::GoogleCloudApihubV1Documentation

Documentation details. Corresponds to the JSON property documentation



3605
3606
3607
# File 'lib/google/apis/apihub_v1/classes.rb', line 3605

def documentation
  @documentation
end

#http_operationGoogle::Apis::ApihubV1::GoogleCloudApihubV1HttpOperation

The HTTP Operation. Corresponds to the JSON property httpOperation



3610
3611
3612
# File 'lib/google/apis/apihub_v1/classes.rb', line 3610

def http_operation
  @http_operation
end

#mcp_toolGoogle::Apis::ApihubV1::GoogleCloudApihubV1McpTool

Details describing an MCP Tool. Corresponds to the JSON property mcpTool



3615
3616
3617
# File 'lib/google/apis/apihub_v1/classes.rb', line 3615

def mcp_tool
  @mcp_tool
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3622
3623
3624
3625
3626
3627
3628
# File 'lib/google/apis/apihub_v1/classes.rb', line 3622

def update!(**args)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @description = args[:description] if args.key?(:description)
  @documentation = args[:documentation] if args.key?(:documentation)
  @http_operation = args[:http_operation] if args.key?(:http_operation)
  @mcp_tool = args[:mcp_tool] if args.key?(:mcp_tool)
end