Class: TencentCloud::Apigateway::V20180808::CreateServiceRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Apigateway::V20180808::CreateServiceRequest
- Defined in:
- lib/v20180808/models.rb
Overview
CreateService请求参数结构体
Instance Attribute Summary collapse
- #AppIdType ⇒ Object
- #InstanceId ⇒ Object
- #IpVersion ⇒ Object
- #NetTypes ⇒ Object
- #Protocol ⇒ Object
- #ServiceDesc ⇒ Object
- #ServiceName ⇒ Object
- #SetServerName ⇒ Object
- #Tags ⇒ Object
- #UniqVpcId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(servicename = nil, protocol = nil, servicedesc = nil, nettypes = nil, ipversion = nil, setservername = nil, appidtype = nil, tags = nil, instanceid = nil, uniqvpcid = nil) ⇒ CreateServiceRequest
constructor
A new instance of CreateServiceRequest.
Constructor Details
#initialize(servicename = nil, protocol = nil, servicedesc = nil, nettypes = nil, ipversion = nil, setservername = nil, appidtype = nil, tags = nil, instanceid = nil, uniqvpcid = nil) ⇒ CreateServiceRequest
Returns a new instance of CreateServiceRequest.
2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 |
# File 'lib/v20180808/models.rb', line 2575 def initialize(servicename=nil, protocol=nil, servicedesc=nil, nettypes=nil, ipversion=nil, setservername=nil, appidtype=nil, =nil, instanceid=nil, uniqvpcid=nil) @ServiceName = servicename @Protocol = protocol @ServiceDesc = servicedesc @NetTypes = nettypes @IpVersion = ipversion @SetServerName = setservername @AppIdType = appidtype @Tags = @InstanceId = instanceid @UniqVpcId = uniqvpcid end |
Instance Attribute Details
#AppIdType ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def AppIdType @AppIdType end |
#InstanceId ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def InstanceId @InstanceId end |
#IpVersion ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def IpVersion @IpVersion end |
#NetTypes ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def NetTypes @NetTypes end |
#Protocol ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def Protocol @Protocol end |
#ServiceDesc ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def ServiceDesc @ServiceDesc end |
#ServiceName ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def ServiceName @ServiceName end |
#SetServerName ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def SetServerName @SetServerName end |
#Tags ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def Tags @Tags end |
#UniqVpcId ⇒ Object
2573 2574 2575 |
# File 'lib/v20180808/models.rb', line 2573 def UniqVpcId @UniqVpcId end |
Instance Method Details
#deserialize(params) ⇒ Object
2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 |
# File 'lib/v20180808/models.rb', line 2588 def deserialize(params) @ServiceName = params['ServiceName'] @Protocol = params['Protocol'] @ServiceDesc = params['ServiceDesc'] @NetTypes = params['NetTypes'] @IpVersion = params['IpVersion'] @SetServerName = params['SetServerName'] @AppIdType = params['AppIdType'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @InstanceId = params['InstanceId'] @UniqVpcId = params['UniqVpcId'] end |