_id
stringlengths 2
7
| title
stringlengths 1
118
| partition
stringclasses 3
values | text
stringlengths 52
85.5k
| language
stringclasses 1
value | meta_information
dict |
---|---|---|---|---|---|
q0 | getStringValue | train | func getStringValue(b []rune) (int, error) {
if b[0] != '"' {
return 0, NewParseError("strings must start with '\"'")
}
endQuote := false
i := 1
for ; i < len(b) && !endQuote; i++ {
if escaped := isEscaped(b[:i], b[i]); b[i] == '"' && !escaped {
endQuote = true
break
} else if escaped {
/*c, err := getEscapedByte(b[i])
if err != nil {
return 0, err
}
b[i-1] = c
b = append(b[:i], b[i+1:]...)
i--*/
continue
}
}
if !endQuote {
return 0, NewParseError("missing '\"' in string value")
}
return i + 1, nil
} | go | {
"resource": ""
} |
q1 | getBoolValue | train | func getBoolValue(b []rune) (int, error) {
if len(b) < 4 {
return 0, NewParseError("invalid boolean value")
}
n := 0
for _, lv := range literalValues {
if len(lv) > len(b) {
continue
}
if isLitValue(lv, b) {
n = len(lv)
}
}
if n == 0 {
return 0, NewParseError("invalid boolean value")
}
return n, nil
} | go | {
"resource": ""
} |
q2 | getNumericalValue | train | func getNumericalValue(b []rune) (int, int, error) {
if !isDigit(b[0]) {
return 0, 0, NewParseError("invalid digit value")
}
i := 0
helper := numberHelper{}
loop:
for negativeIndex := 0; i < len(b); i++ {
negativeIndex++
if !isDigit(b[i]) {
switch b[i] {
case '-':
if helper.IsNegative() || negativeIndex != 1 {
return 0, 0, NewParseError("parse error '-'")
}
n := getNegativeNumber(b[i:])
i += (n - 1)
helper.Determine(b[i])
continue
case '.':
if err := helper.Determine(b[i]); err != nil {
return 0, 0, err
}
case 'e', 'E':
if err := helper.Determine(b[i]); err != nil {
return 0, 0, err
}
negativeIndex = 0
case 'b':
if helper.numberFormat == hex {
break
}
fallthrough
case 'o', 'x':
if i == 0 && b[i] != '0' {
return 0, 0, NewParseError("incorrect base format, expected leading '0'")
}
if i != 1 {
return 0, 0, NewParseError(fmt.Sprintf("incorrect base format found %s at %d index", string(b[i]), i))
}
if err := helper.Determine(b[i]); err != nil {
return 0, 0, err
}
default:
if isWhitespace(b[i]) {
break loop
}
if isNewline(b[i:]) {
break loop
}
if !(helper.numberFormat == hex && isHexByte(b[i])) {
if i+2 < len(b) && !isNewline(b[i:i+2]) {
return 0, 0, NewParseError("invalid numerical character")
} else if !isNewline([]rune{b[i]}) {
return 0, 0, NewParseError("invalid numerical character")
}
break loop
}
}
}
}
return helper.Base(), i, nil
} | go | {
"resource": ""
} |
q3 | getNegativeNumber | train | func getNegativeNumber(b []rune) int {
if b[0] != '-' {
return 0
}
i := 1
for ; i < len(b); i++ {
if !isDigit(b[i]) {
return i
}
}
return i
} | go | {
"resource": ""
} |
q4 | isEscaped | train | func isEscaped(value []rune, b rune) bool {
if len(value) == 0 {
return false
}
switch b {
case '\'': // single quote
case '"': // quote
case 'n': // newline
case 't': // tab
case '\\': // backslash
default:
return false
}
return value[len(value)-1] == '\\'
} | go | {
"resource": ""
} |
q5 | OpenFile | train | func OpenFile(path string) (Sections, error) {
f, err := os.Open(path)
if err != nil {
return Sections{}, awserr.New(ErrCodeUnableToReadFile, "unable to open file", err)
}
defer f.Close()
return Parse(f)
} | go | {
"resource": ""
} |
q6 | Parse | train | func Parse(f io.Reader) (Sections, error) {
tree, err := ParseAST(f)
if err != nil {
return Sections{}, err
}
v := NewDefaultVisitor()
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | go | {
"resource": ""
} |
q7 | ParseBytes | train | func ParseBytes(b []byte) (Sections, error) {
tree, err := ParseASTBytes(b)
if err != nil {
return Sections{}, err
}
v := NewDefaultVisitor()
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | go | {
"resource": ""
} |
q8 | BuildInputShape | train | func (c SmokeTestCase) BuildInputShape(ref *ShapeRef) string {
var b ShapeValueBuilder
return fmt.Sprintf("&%s{\n%s\n}",
b.GoType(ref, true),
b.BuildShape(ref, c.Input, false),
)
} | go | {
"resource": ""
} |
q9 | SetMessageVersion | train | func (s *CodeHook) SetMessageVersion(v string) *CodeHook {
s.MessageVersion = &v
return s
} | go | {
"resource": ""
} |
q10 | SetPrompt | train | func (s *FollowUpPrompt) SetPrompt(v *Prompt) *FollowUpPrompt {
s.Prompt = v
return s
} | go | {
"resource": ""
} |
q11 | SetCodeHook | train | func (s *FulfillmentActivity) SetCodeHook(v *CodeHook) *FulfillmentActivity {
s.CodeHook = v
return s
} | go | {
"resource": ""
} |
q12 | SetBotAliases | train | func (s *GetBotAliasesOutput) SetBotAliases(v []*BotAliasMetadata) *GetBotAliasesOutput {
s.BotAliases = v
return s
} | go | {
"resource": ""
} |
q13 | SetBotChannelAssociations | train | func (s *GetBotChannelAssociationsOutput) SetBotChannelAssociations(v []*BotChannelAssociation) *GetBotChannelAssociationsOutput {
s.BotChannelAssociations = v
return s
} | go | {
"resource": ""
} |
q14 | SetVersionOrAlias | train | func (s *GetBotInput) SetVersionOrAlias(v string) *GetBotInput {
s.VersionOrAlias = &v
return s
} | go | {
"resource": ""
} |
q15 | SetBotVersions | train | func (s *GetUtterancesViewInput) SetBotVersions(v []*string) *GetUtterancesViewInput {
s.BotVersions = v
return s
} | go | {
"resource": ""
} |
q16 | SetIntentVersion | train | func (s *Intent) SetIntentVersion(v string) *Intent {
s.IntentVersion = &v
return s
} | go | {
"resource": ""
} |
q17 | SetGroupNumber | train | func (s *Message) SetGroupNumber(v int64) *Message {
s.GroupNumber = &v
return s
} | go | {
"resource": ""
} |
q18 | SetProcessBehavior | train | func (s *PutBotInput) SetProcessBehavior(v string) *PutBotInput {
s.ProcessBehavior = &v
return s
} | go | {
"resource": ""
} |
q19 | SetSlotConstraint | train | func (s *Slot) SetSlotConstraint(v string) *Slot {
s.SlotConstraint = &v
return s
} | go | {
"resource": ""
} |
q20 | SetSlotType | train | func (s *Slot) SetSlotType(v string) *Slot {
s.SlotType = &v
return s
} | go | {
"resource": ""
} |
q21 | SetSlotTypeVersion | train | func (s *Slot) SetSlotTypeVersion(v string) *Slot {
s.SlotTypeVersion = &v
return s
} | go | {
"resource": ""
} |
q22 | SetValueElicitationPrompt | train | func (s *Slot) SetValueElicitationPrompt(v *Prompt) *Slot {
s.ValueElicitationPrompt = v
return s
} | go | {
"resource": ""
} |
q23 | SetDistinctUsers | train | func (s *UtteranceData) SetDistinctUsers(v int64) *UtteranceData {
s.DistinctUsers = &v
return s
} | go | {
"resource": ""
} |
q24 | SetFirstUtteredDate | train | func (s *UtteranceData) SetFirstUtteredDate(v time.Time) *UtteranceData {
s.FirstUtteredDate = &v
return s
} | go | {
"resource": ""
} |
q25 | SetLastUtteredDate | train | func (s *UtteranceData) SetLastUtteredDate(v time.Time) *UtteranceData {
s.LastUtteredDate = &v
return s
} | go | {
"resource": ""
} |
q26 | SetUtteranceString | train | func (s *UtteranceData) SetUtteranceString(v string) *UtteranceData {
s.UtteranceString = &v
return s
} | go | {
"resource": ""
} |
q27 | decryptHandler | train | func (kp kmsKeyHandler) decryptHandler(env Envelope) (CipherDataDecrypter, error) {
m := MaterialDescription{}
err := m.decodeDescription([]byte(env.MatDesc))
if err != nil {
return nil, err
}
cmkID, ok := m["kms_cmk_id"]
if !ok {
return nil, awserr.New("MissingCMKIDError", "Material description is missing CMK ID", nil)
}
kp.CipherData.MaterialDescription = m
kp.cmkID = cmkID
kp.WrapAlgorithm = KMSWrap
return &kp, nil
} | go | {
"resource": ""
} |
q28 | DecryptKey | train | func (kp *kmsKeyHandler) DecryptKey(key []byte) ([]byte, error) {
out, err := kp.kms.Decrypt(&kms.DecryptInput{
EncryptionContext: map[string]*string(kp.CipherData.MaterialDescription),
CiphertextBlob: key,
GrantTokens: []*string{},
})
if err != nil {
return nil, err
}
return out.Plaintext, nil
} | go | {
"resource": ""
} |
q29 | GenerateCipherData | train | func (kp *kmsKeyHandler) GenerateCipherData(keySize, ivSize int) (CipherData, error) {
out, err := kp.kms.GenerateDataKey(&kms.GenerateDataKeyInput{
EncryptionContext: kp.CipherData.MaterialDescription,
KeyId: kp.cmkID,
KeySpec: aws.String("AES_256"),
})
if err != nil {
return CipherData{}, err
}
iv := generateBytes(ivSize)
cd := CipherData{
Key: out.Plaintext,
IV: iv,
WrapAlgorithm: KMSWrap,
MaterialDescription: kp.CipherData.MaterialDescription,
EncryptedKey: out.CiphertextBlob,
}
return cd, nil
} | go | {
"resource": ""
} |
q30 | DecryptContents | train | func (cc *aesGCMContentCipher) DecryptContents(src io.ReadCloser) (io.ReadCloser, error) {
reader := cc.Cipher.Decrypt(src)
return &CryptoReadCloser{Body: src, Decrypter: reader}, nil
} | go | {
"resource": ""
} |
q31 | SetUpdateId | train | func (s *DescribeUpdateInput) SetUpdateId(v string) *DescribeUpdateInput {
s.UpdateId = &v
return s
} | go | {
"resource": ""
} |
q32 | SetUpdateIds | train | func (s *ListUpdatesOutput) SetUpdateIds(v []*string) *ListUpdatesOutput {
s.UpdateIds = v
return s
} | go | {
"resource": ""
} |
q33 | SetClusterLogging | train | func (s *Logging) SetClusterLogging(v []*LogSetup) *Logging {
s.ClusterLogging = v
return s
} | go | {
"resource": ""
} |
q34 | SetParams | train | func (s *Update) SetParams(v []*UpdateParam) *Update {
s.Params = v
return s
} | go | {
"resource": ""
} |
q35 | IsReaderSeekable | train | func IsReaderSeekable(r io.Reader) bool {
switch v := r.(type) {
case ReaderSeekerCloser:
return v.IsSeeker()
case *ReaderSeekerCloser:
return v.IsSeeker()
case io.ReadSeeker:
return true
default:
return false
}
} | go | {
"resource": ""
} |
q36 | Read | train | func (r ReaderSeekerCloser) Read(p []byte) (int, error) {
switch t := r.r.(type) {
case io.Reader:
return t.Read(p)
}
return 0, nil
} | go | {
"resource": ""
} |
q37 | IsSeeker | train | func (r ReaderSeekerCloser) IsSeeker() bool {
_, ok := r.r.(io.Seeker)
return ok
} | go | {
"resource": ""
} |
q38 | SeekerLen | train | func SeekerLen(s io.Seeker) (int64, error) {
// Determine if the seeker is actually seekable. ReaderSeekerCloser
// hides the fact that a io.Readers might not actually be seekable.
switch v := s.(type) {
case ReaderSeekerCloser:
return v.GetLen()
case *ReaderSeekerCloser:
return v.GetLen()
}
return seekerLen(s)
} | go | {
"resource": ""
} |
q39 | Close | train | func (r ReaderSeekerCloser) Close() error {
switch t := r.r.(type) {
case io.Closer:
return t.Close()
}
return nil
} | go | {
"resource": ""
} |
q40 | WriteAt | train | func (b *WriteAtBuffer) WriteAt(p []byte, pos int64) (n int, err error) {
pLen := len(p)
expLen := pos + int64(pLen)
b.m.Lock()
defer b.m.Unlock()
if int64(len(b.buf)) < expLen {
if int64(cap(b.buf)) < expLen {
if b.GrowthCoeff < 1 {
b.GrowthCoeff = 1
}
newBuf := make([]byte, expLen, int64(b.GrowthCoeff*float64(expLen)))
copy(newBuf, b.buf)
b.buf = newBuf
}
b.buf = b.buf[:expLen]
}
copy(b.buf[pos:], p)
return pLen, nil
} | go | {
"resource": ""
} |
q41 | Bytes | train | func (b *WriteAtBuffer) Bytes() []byte {
b.m.Lock()
defer b.m.Unlock()
return b.buf
} | go | {
"resource": ""
} |
q42 | SetCpuThreshold | train | func (s *AutoScalingThresholds) SetCpuThreshold(v float64) *AutoScalingThresholds {
s.CpuThreshold = &v
return s
} | go | {
"resource": ""
} |
q43 | SetIgnoreMetricsTime | train | func (s *AutoScalingThresholds) SetIgnoreMetricsTime(v int64) *AutoScalingThresholds {
s.IgnoreMetricsTime = &v
return s
} | go | {
"resource": ""
} |
q44 | SetLoadThreshold | train | func (s *AutoScalingThresholds) SetLoadThreshold(v float64) *AutoScalingThresholds {
s.LoadThreshold = &v
return s
} | go | {
"resource": ""
} |
q45 | SetMemoryThreshold | train | func (s *AutoScalingThresholds) SetMemoryThreshold(v float64) *AutoScalingThresholds {
s.MemoryThreshold = &v
return s
} | go | {
"resource": ""
} |
q46 | SetThresholdsWaitTime | train | func (s *AutoScalingThresholds) SetThresholdsWaitTime(v int64) *AutoScalingThresholds {
s.ThresholdsWaitTime = &v
return s
} | go | {
"resource": ""
} |
q47 | SetEbs | train | func (s *BlockDeviceMapping) SetEbs(v *EbsBlockDevice) *BlockDeviceMapping {
s.Ebs = v
return s
} | go | {
"resource": ""
} |
q48 | SetBerkshelfVersion | train | func (s *ChefConfiguration) SetBerkshelfVersion(v string) *ChefConfiguration {
s.BerkshelfVersion = &v
return s
} | go | {
"resource": ""
} |
q49 | SetManageBerkshelf | train | func (s *ChefConfiguration) SetManageBerkshelf(v bool) *ChefConfiguration {
s.ManageBerkshelf = &v
return s
} | go | {
"resource": ""
} |
q50 | SetCloneAppIds | train | func (s *CloneStackInput) SetCloneAppIds(v []*string) *CloneStackInput {
s.CloneAppIds = v
return s
} | go | {
"resource": ""
} |
q51 | SetClonePermissions | train | func (s *CloneStackInput) SetClonePermissions(v bool) *CloneStackInput {
s.ClonePermissions = &v
return s
} | go | {
"resource": ""
} |
q52 | SetSourceStackId | train | func (s *CloneStackInput) SetSourceStackId(v string) *CloneStackInput {
s.SourceStackId = &v
return s
} | go | {
"resource": ""
} |
q53 | SetBatchCount | train | func (s *CloudWatchLogsLogStream) SetBatchCount(v int64) *CloudWatchLogsLogStream {
s.BatchCount = &v
return s
} | go | {
"resource": ""
} |
q54 | SetBufferDuration | train | func (s *CloudWatchLogsLogStream) SetBufferDuration(v int64) *CloudWatchLogsLogStream {
s.BufferDuration = &v
return s
} | go | {
"resource": ""
} |
q55 | SetDatetimeFormat | train | func (s *CloudWatchLogsLogStream) SetDatetimeFormat(v string) *CloudWatchLogsLogStream {
s.DatetimeFormat = &v
return s
} | go | {
"resource": ""
} |
q56 | SetFileFingerprintLines | train | func (s *CloudWatchLogsLogStream) SetFileFingerprintLines(v string) *CloudWatchLogsLogStream {
s.FileFingerprintLines = &v
return s
} | go | {
"resource": ""
} |
q57 | SetInitialPosition | train | func (s *CloudWatchLogsLogStream) SetInitialPosition(v string) *CloudWatchLogsLogStream {
s.InitialPosition = &v
return s
} | go | {
"resource": ""
} |
q58 | SetMultiLineStartPattern | train | func (s *CloudWatchLogsLogStream) SetMultiLineStartPattern(v string) *CloudWatchLogsLogStream {
s.MultiLineStartPattern = &v
return s
} | go | {
"resource": ""
} |
q59 | SetAcknowledgedAt | train | func (s *Command) SetAcknowledgedAt(v string) *Command {
s.AcknowledgedAt = &v
return s
} | go | {
"resource": ""
} |
q60 | SetDeleteElasticIp | train | func (s *DeleteInstanceInput) SetDeleteElasticIp(v bool) *DeleteInstanceInput {
s.DeleteElasticIp = &v
return s
} | go | {
"resource": ""
} |
q61 | SetDeleteVolumes | train | func (s *DeleteInstanceInput) SetDeleteVolumes(v bool) *DeleteInstanceInput {
s.DeleteVolumes = &v
return s
} | go | {
"resource": ""
} |
q62 | SetAgentVersions | train | func (s *DescribeAgentVersionsOutput) SetAgentVersions(v []*AgentVersion) *DescribeAgentVersionsOutput {
s.AgentVersions = v
return s
} | go | {
"resource": ""
} |
q63 | SetCommandIds | train | func (s *DescribeCommandsInput) SetCommandIds(v []*string) *DescribeCommandsInput {
s.CommandIds = v
return s
} | go | {
"resource": ""
} |
q64 | SetEcsClusterArns | train | func (s *DescribeEcsClustersInput) SetEcsClusterArns(v []*string) *DescribeEcsClustersInput {
s.EcsClusterArns = v
return s
} | go | {
"resource": ""
} |
q65 | SetEcsClusters | train | func (s *DescribeEcsClustersOutput) SetEcsClusters(v []*EcsCluster) *DescribeEcsClustersOutput {
s.EcsClusters = v
return s
} | go | {
"resource": ""
} |
q66 | SetIps | train | func (s *DescribeElasticIpsInput) SetIps(v []*string) *DescribeElasticIpsInput {
s.Ips = v
return s
} | go | {
"resource": ""
} |
q67 | SetElasticIps | train | func (s *DescribeElasticIpsOutput) SetElasticIps(v []*ElasticIp) *DescribeElasticIpsOutput {
s.ElasticIps = v
return s
} | go | {
"resource": ""
} |
q68 | SetElasticLoadBalancers | train | func (s *DescribeElasticLoadBalancersOutput) SetElasticLoadBalancers(v []*ElasticLoadBalancer) *DescribeElasticLoadBalancersOutput {
s.ElasticLoadBalancers = v
return s
} | go | {
"resource": ""
} |
q69 | SetLoadBasedAutoScalingConfigurations | train | func (s *DescribeLoadBasedAutoScalingOutput) SetLoadBasedAutoScalingConfigurations(v []*LoadBasedAutoScalingConfiguration) *DescribeLoadBasedAutoScalingOutput {
s.LoadBasedAutoScalingConfigurations = v
return s
} | go | {
"resource": ""
} |
q70 | SetUserProfile | train | func (s *DescribeMyUserProfileOutput) SetUserProfile(v *SelfUserProfile) *DescribeMyUserProfileOutput {
s.UserProfile = v
return s
} | go | {
"resource": ""
} |
q71 | SetOperatingSystems | train | func (s *DescribeOperatingSystemsOutput) SetOperatingSystems(v []*OperatingSystem) *DescribeOperatingSystemsOutput {
s.OperatingSystems = v
return s
} | go | {
"resource": ""
} |
q72 | SetRaidArrayIds | train | func (s *DescribeRaidArraysInput) SetRaidArrayIds(v []*string) *DescribeRaidArraysInput {
s.RaidArrayIds = v
return s
} | go | {
"resource": ""
} |
q73 | SetRaidArrays | train | func (s *DescribeRaidArraysOutput) SetRaidArrays(v []*RaidArray) *DescribeRaidArraysOutput {
s.RaidArrays = v
return s
} | go | {
"resource": ""
} |
q74 | SetRdsDbInstanceArns | train | func (s *DescribeRdsDbInstancesInput) SetRdsDbInstanceArns(v []*string) *DescribeRdsDbInstancesInput {
s.RdsDbInstanceArns = v
return s
} | go | {
"resource": ""
} |
q75 | SetRdsDbInstances | train | func (s *DescribeRdsDbInstancesOutput) SetRdsDbInstances(v []*RdsDbInstance) *DescribeRdsDbInstancesOutput {
s.RdsDbInstances = v
return s
} | go | {
"resource": ""
} |
q76 | SetServiceErrorIds | train | func (s *DescribeServiceErrorsInput) SetServiceErrorIds(v []*string) *DescribeServiceErrorsInput {
s.ServiceErrorIds = v
return s
} | go | {
"resource": ""
} |
q77 | SetServiceErrors | train | func (s *DescribeServiceErrorsOutput) SetServiceErrors(v []*ServiceError) *DescribeServiceErrorsOutput {
s.ServiceErrors = v
return s
} | go | {
"resource": ""
} |
q78 | SetAgentInstallerUrl | train | func (s *DescribeStackProvisioningParametersOutput) SetAgentInstallerUrl(v string) *DescribeStackProvisioningParametersOutput {
s.AgentInstallerUrl = &v
return s
} | go | {
"resource": ""
} |
q79 | SetStackSummary | train | func (s *DescribeStackSummaryOutput) SetStackSummary(v *StackSummary) *DescribeStackSummaryOutput {
s.StackSummary = v
return s
} | go | {
"resource": ""
} |
q80 | SetStackIds | train | func (s *DescribeStacksInput) SetStackIds(v []*string) *DescribeStacksInput {
s.StackIds = v
return s
} | go | {
"resource": ""
} |
q81 | SetStacks | train | func (s *DescribeStacksOutput) SetStacks(v []*Stack) *DescribeStacksOutput {
s.Stacks = v
return s
} | go | {
"resource": ""
} |
q82 | SetTimeBasedAutoScalingConfigurations | train | func (s *DescribeTimeBasedAutoScalingOutput) SetTimeBasedAutoScalingConfigurations(v []*TimeBasedAutoScalingConfiguration) *DescribeTimeBasedAutoScalingOutput {
s.TimeBasedAutoScalingConfigurations = v
return s
} | go | {
"resource": ""
} |
q83 | SetIamUserArns | train | func (s *DescribeUserProfilesInput) SetIamUserArns(v []*string) *DescribeUserProfilesInput {
s.IamUserArns = v
return s
} | go | {
"resource": ""
} |
q84 | SetVolumeIds | train | func (s *DescribeVolumesInput) SetVolumeIds(v []*string) *DescribeVolumesInput {
s.VolumeIds = v
return s
} | go | {
"resource": ""
} |
q85 | SetEcsClusterName | train | func (s *EcsCluster) SetEcsClusterName(v string) *EcsCluster {
s.EcsClusterName = &v
return s
} | go | {
"resource": ""
} |
q86 | SetEc2InstanceIds | train | func (s *ElasticLoadBalancer) SetEc2InstanceIds(v []*string) *ElasticLoadBalancer {
s.Ec2InstanceIds = v
return s
} | go | {
"resource": ""
} |
q87 | SetSecure | train | func (s *EnvironmentVariable) SetSecure(v bool) *EnvironmentVariable {
s.Secure = &v
return s
} | go | {
"resource": ""
} |
q88 | SetTemporaryCredential | train | func (s *GrantAccessOutput) SetTemporaryCredential(v *TemporaryCredential) *GrantAccessOutput {
s.TemporaryCredential = v
return s
} | go | {
"resource": ""
} |
q89 | SetEcsContainerInstanceArn | train | func (s *Instance) SetEcsContainerInstanceArn(v string) *Instance {
s.EcsContainerInstanceArn = &v
return s
} | go | {
"resource": ""
} |
q90 | SetInfrastructureClass | train | func (s *Instance) SetInfrastructureClass(v string) *Instance {
s.InfrastructureClass = &v
return s
} | go | {
"resource": ""
} |
q91 | SetLastServiceErrorId | train | func (s *Instance) SetLastServiceErrorId(v string) *Instance {
s.LastServiceErrorId = &v
return s
} | go | {
"resource": ""
} |
q92 | SetPrivateDns | train | func (s *Instance) SetPrivateDns(v string) *Instance {
s.PrivateDns = &v
return s
} | go | {
"resource": ""
} |
q93 | SetPublicDns | train | func (s *Instance) SetPublicDns(v string) *Instance {
s.PublicDns = &v
return s
} | go | {
"resource": ""
} |
q94 | SetRegisteredBy | train | func (s *Instance) SetRegisteredBy(v string) *Instance {
s.RegisteredBy = &v
return s
} | go | {
"resource": ""
} |
q95 | SetReportedAgentVersion | train | func (s *Instance) SetReportedAgentVersion(v string) *Instance {
s.ReportedAgentVersion = &v
return s
} | go | {
"resource": ""
} |
q96 | SetReportedOs | train | func (s *Instance) SetReportedOs(v *ReportedOs) *Instance {
s.ReportedOs = v
return s
} | go | {
"resource": ""
} |
q97 | SetRootDeviceVolumeId | train | func (s *Instance) SetRootDeviceVolumeId(v string) *Instance {
s.RootDeviceVolumeId = &v
return s
} | go | {
"resource": ""
} |
q98 | SetSshHostDsaKeyFingerprint | train | func (s *Instance) SetSshHostDsaKeyFingerprint(v string) *Instance {
s.SshHostDsaKeyFingerprint = &v
return s
} | go | {
"resource": ""
} |
q99 | SetSshHostRsaKeyFingerprint | train | func (s *Instance) SetSshHostRsaKeyFingerprint(v string) *Instance {
s.SshHostRsaKeyFingerprint = &v
return s
} | go | {
"resource": ""
} |