Class: CadenceThrift::RegisterDomainRequest

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/gen/thrift/shared_types.rb,
lib/gen/thrift/shared_types.rb

Constant Summary collapse

NAME =
10
DESCRIPTION =
20
OWNEREMAIL =
30
WORKFLOWEXECUTIONRETENTIONPERIODINDAYS =
40
EMITMETRIC =
50
CLUSTERS =
60
ACTIVECLUSTERNAME =
70
DATA =
80
SECURITYTOKEN =
90
ISGLOBALDOMAIN =
120
HISTORYARCHIVALSTATUS =
130
HISTORYARCHIVALURI =
140
VISIBILITYARCHIVALSTATUS =
150
VISIBILITYARCHIVALURI =
160
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
  DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
  OWNEREMAIL => {:type => ::Thrift::Types::STRING, :name => 'ownerEmail', :optional => true},
  WORKFLOWEXECUTIONRETENTIONPERIODINDAYS => {:type => ::Thrift::Types::I32, :name => 'workflowExecutionRetentionPeriodInDays', :optional => true},
  EMITMETRIC => {:type => ::Thrift::Types::BOOL, :name => 'emitMetric', :optional => true},
  CLUSTERS => {:type => ::Thrift::Types::LIST, :name => 'clusters', :element => {:type => ::Thrift::Types::STRUCT, :class => ::CadenceThrift::ClusterReplicationConfiguration}, :optional => true},
  ACTIVECLUSTERNAME => {:type => ::Thrift::Types::STRING, :name => 'activeClusterName', :optional => true},
  DATA => {:type => ::Thrift::Types::MAP, :name => 'data', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
  SECURITYTOKEN => {:type => ::Thrift::Types::STRING, :name => 'securityToken', :optional => true},
  ISGLOBALDOMAIN => {:type => ::Thrift::Types::BOOL, :name => 'isGlobalDomain', :optional => true},
  HISTORYARCHIVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'historyArchivalStatus', :optional => true, :enum_class => ::CadenceThrift::ArchivalStatus},
  HISTORYARCHIVALURI => {:type => ::Thrift::Types::STRING, :name => 'historyArchivalURI', :optional => true},
  VISIBILITYARCHIVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'visibilityArchivalStatus', :optional => true, :enum_class => ::CadenceThrift::ArchivalStatus},
  VISIBILITYARCHIVALURI => {:type => ::Thrift::Types::STRING, :name => 'visibilityArchivalURI', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



2972
# File 'lib/gen/thrift/shared_types.rb', line 2972

def struct_fields; FIELDS; end

#validateObject



2974
2975
2976
2977
2978
2979
2980
2981
# File 'lib/gen/thrift/shared_types.rb', line 2974

def validate
  unless @historyArchivalStatus.nil? || ::CadenceThrift::ArchivalStatus::VALID_VALUES.include?(@historyArchivalStatus)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field historyArchivalStatus!')
  end
  unless @visibilityArchivalStatus.nil? || ::CadenceThrift::ArchivalStatus::VALID_VALUES.include?(@visibilityArchivalStatus)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field visibilityArchivalStatus!')
  end
end