Class: TencentCloud::Apigateway::V20180808::ImportOpenApiRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180808/models.rb

Overview

ImportOpenApi请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serviceid = nil, content = nil, encodetype = nil, contentversion = nil) ⇒ ImportOpenApiRequest

Returns a new instance of ImportOpenApiRequest.



6613
6614
6615
6616
6617
6618
# File 'lib/v20180808/models.rb', line 6613

def initialize(serviceid=nil, content=nil, encodetype=nil, contentversion=nil)
  @ServiceId = serviceid
  @Content = content
  @EncodeType = encodetype
  @ContentVersion = contentversion
end

Instance Attribute Details

#ContentObject

Parameters:

  • ServiceId:

    API所在的服务唯一ID。

  • Content:

    openAPI正文内容。

  • EncodeType:

    Content格式,只能是YAML或者JSON,默认是YAML。

  • ContentVersion:

    Content版本,默认是openAPI,目前只支持openAPI。



6611
6612
6613
# File 'lib/v20180808/models.rb', line 6611

def Content
  @Content
end

#ContentVersionObject

Parameters:

  • ServiceId:

    API所在的服务唯一ID。

  • Content:

    openAPI正文内容。

  • EncodeType:

    Content格式,只能是YAML或者JSON,默认是YAML。

  • ContentVersion:

    Content版本,默认是openAPI,目前只支持openAPI。



6611
6612
6613
# File 'lib/v20180808/models.rb', line 6611

def ContentVersion
  @ContentVersion
end

#EncodeTypeObject

Parameters:

  • ServiceId:

    API所在的服务唯一ID。

  • Content:

    openAPI正文内容。

  • EncodeType:

    Content格式,只能是YAML或者JSON,默认是YAML。

  • ContentVersion:

    Content版本,默认是openAPI,目前只支持openAPI。



6611
6612
6613
# File 'lib/v20180808/models.rb', line 6611

def EncodeType
  @EncodeType
end

#ServiceIdObject

Parameters:

  • ServiceId:

    API所在的服务唯一ID。

  • Content:

    openAPI正文内容。

  • EncodeType:

    Content格式,只能是YAML或者JSON,默认是YAML。

  • ContentVersion:

    Content版本,默认是openAPI,目前只支持openAPI。



6611
6612
6613
# File 'lib/v20180808/models.rb', line 6611

def ServiceId
  @ServiceId
end

Instance Method Details

#deserialize(params) ⇒ Object



6620
6621
6622
6623
6624
6625
# File 'lib/v20180808/models.rb', line 6620

def deserialize(params)
  @ServiceId = params['ServiceId']
  @Content = params['Content']
  @EncodeType = params['EncodeType']
  @ContentVersion = params['ContentVersion']
end