BatchGetBuildBatches DataFlex Example
Use ChilkatAx-9.5.0-win32.pkg
Procedure Test
Handle hoRest
Boolean iSuccess
Variant vAuthAws
Handle hoAuthAws
Handle hoJson
Variant vSbRequestBody
Handle hoSbRequestBody
Variant vSbResponseBody
Handle hoSbResponseBody
Integer iRespStatusCode
Handle hoJResp
String sArn
String sArtifactIdentifier
String sBucketOwnerAccess
Integer iEncryptionDisabled
String sLocation
String sMd5sum
Integer iOverrideArtifactName
String sSha256sum
String sBatchReportMode
Integer iCombineArtifacts
Integer iMaximumBuildsAllowed
String sServiceRole
Integer iTimeoutInMins
Integer iBuildBatchNumber
String sBuildBatchStatus
Integer iBuildTimeoutInMinutes
String sCacheLocation
String sV_Type
Integer iComplete
String sCurrentPhase
Integer iDebugSessionEnabled
String sEncryptionKey
Integer iEndTime
String sCertificate
String sComputeType
String sImage
String sImagePullCredentialsType
Integer iPrivilegedMode
String sCredential
String sCredentialProvider
String sEnvironmentType
String sId
String sInitiator
String sGroupName
String sStatus
String sStreamName
String sS3LogsBucketOwnerAccess
Integer iS3LogsEncryptionDisabled
String sS3LogsLocation
String sS3LogsStatus
String sProjectName
Integer iQueuedTimeoutInMinutes
String sResolvedSourceVersion
String sServiceRole
String sResource
String sAuthType
String sBuildspec
String sContext
String sTargetUrl
Integer iGitCloneDepth
Integer iFetchSubmodules
Integer iInsecureSsl
String sSourceLocation
Integer iReportBuildStatus
String sSourceIdentifier
String sSourceType
String sSourceVersion
Integer iStartTime
String sVpcId
Integer j
Integer iCount_j
String sStrVal
String sArn
String sBuildStatus
String sIdentifier
String sPrimaryArtifactLocation
String sPrimaryArtifactType
Integer iRequestedOn
String sIdentifier
Integer iIgnoreFailure
Integer k
Integer iCount_k
String sLocation
String sV_type
String sBuildStatus
String sPrimaryArtifactIdentifier
String sPrimaryArtifactLocation
String sPrimaryArtifactType
Integer iRequestedOn
Variant vJson1
Handle hoJson1
Integer iI1
Integer iCount_i1
String sName
String sValue
String sMountOptions
String sMountPoint
Integer iDurationInSeconds
String sPhaseStatus
String sPhaseType
String sMessage
String sStatusCode
String sArtifactIdentifier
String sBucketOwnerAccess
Integer iEncryptionDisabled
String sMd5sum
Integer iOverrideArtifactName
String sSha256sum
String sAuthResource
String sAuthType
String sBuildspec
String sBuildStatusConfigContext
String sBuildStatusConfigTargetUrl
Integer iGitCloneDepth
Integer iGitSubmodulesConfigFetchSubmodules
Integer iInsecureSsl
Integer iReportBuildStatus
String sSourceIdentifier
Integer i
Integer iCount_i
String sTemp1
Integer iTemp1
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Get Create (RefClass(cComChilkatRest)) To hoRest
If (Not(IsComObjectCreated(hoRest))) Begin
Send CreateComObject of hoRest
End
Get Create (RefClass(cComChilkatAuthAws)) To hoAuthAws
If (Not(IsComObjectCreated(hoAuthAws))) Begin
Send CreateComObject of hoAuthAws
End
Set ComAccessKey Of hoAuthAws To "AWS_ACCESS_KEY"
Set ComSecretKey Of hoAuthAws To "AWS_SECRET_KEY"
// Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
Set ComRegion Of hoAuthAws To "us-west-2"
Set ComServiceName Of hoAuthAws To "codebuild"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
Get pvComObject of hoAuthAws to vAuthAws
Get ComSetAuthAws Of hoRest vAuthAws To iSuccess
// URL: https://codebuild.us-west-2.amazonaws.com/
// Use the same region as specified above.
Get ComConnect Of hoRest "codebuild.us-west-2.amazonaws.com" 443 True True To iSuccess
If (iSuccess <> True) Begin
Get ComConnectFailReason Of hoRest To iTemp1
Showln "ConnectFailReason: " iTemp1
Get ComLastErrorText Of hoRest To sTemp1
Showln sTemp1
Procedure_Return
End
// The following code creates the JSON request body.
// The JSON created by this code is shown below.
// Use this online tool to generate code from sample JSON:
// Generate Code to Create JSON
Get Create (RefClass(cComChilkatJsonObject)) To hoJson
If (Not(IsComObjectCreated(hoJson))) Begin
Send CreateComObject of hoJson
End
Get ComUpdateString Of hoJson "ids[0]" "string" To iSuccess
// The JSON request body created by the above code:
// {
// "ids": [
// "string"
// ]
// }
Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
Get ComAddHeader Of hoRest "X-Amz-Target" "CodeBuild_20161006.BatchGetBuildBatches" To iSuccess
Get Create (RefClass(cComChilkatStringBuilder)) To hoSbRequestBody
If (Not(IsComObjectCreated(hoSbRequestBody))) Begin
Send CreateComObject of hoSbRequestBody
End
Get pvComObject of hoSbRequestBody to vSbRequestBody
Get ComEmitSb Of hoJson vSbRequestBody To iSuccess
Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
Send CreateComObject of hoSbResponseBody
End
Get pvComObject of hoSbRequestBody to vSbRequestBody
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComFullRequestSb Of hoRest "POST" "/" vSbRequestBody vSbResponseBody To iSuccess
If (iSuccess <> True) Begin
Get ComLastErrorText Of hoRest To sTemp1
Showln sTemp1
Procedure_Return
End
Get ComResponseStatusCode Of hoRest To iRespStatusCode
Showln "response status code = " iRespStatusCode
If (iRespStatusCode <> 200) Begin
Showln "Response Header:"
Get ComResponseHeader Of hoRest To sTemp1
Showln sTemp1
Showln "Response Body:"
Get ComGetAsString Of hoSbResponseBody To sTemp1
Showln sTemp1
Procedure_Return
End
Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
If (Not(IsComObjectCreated(hoJResp))) Begin
Send CreateComObject of hoJResp
End
Get pvComObject of hoSbResponseBody to vSbResponseBody
Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
// The following code parses the JSON response.
// A sample JSON response is shown below the sample code.
// Use this online tool to generate parsing code from sample JSON:
// Generate Parsing Code from JSON
Move 0 To i
Get ComSizeOfArray Of hoJResp "buildBatches" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "buildBatches[i].arn" To sArn
Get ComStringOf Of hoJResp "buildBatches[i].artifacts.artifactIdentifier" To sArtifactIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].artifacts.bucketOwnerAccess" To sBucketOwnerAccess
Get ComIntOf Of hoJResp "buildBatches[i].artifacts.encryptionDisabled" To iEncryptionDisabled
Get ComStringOf Of hoJResp "buildBatches[i].artifacts.location" To sLocation
Get ComStringOf Of hoJResp "buildBatches[i].artifacts.md5sum" To sMd5sum
Get ComIntOf Of hoJResp "buildBatches[i].artifacts.overrideArtifactName" To iOverrideArtifactName
Get ComStringOf Of hoJResp "buildBatches[i].artifacts.sha256sum" To sSha256sum
Get ComStringOf Of hoJResp "buildBatches[i].buildBatchConfig.batchReportMode" To sBatchReportMode
Get ComIntOf Of hoJResp "buildBatches[i].buildBatchConfig.combineArtifacts" To iCombineArtifacts
Get ComIntOf Of hoJResp "buildBatches[i].buildBatchConfig.restrictions.maximumBuildsAllowed" To iMaximumBuildsAllowed
Get ComStringOf Of hoJResp "buildBatches[i].buildBatchConfig.serviceRole" To sServiceRole
Get ComIntOf Of hoJResp "buildBatches[i].buildBatchConfig.timeoutInMins" To iTimeoutInMins
Get ComIntOf Of hoJResp "buildBatches[i].buildBatchNumber" To iBuildBatchNumber
Get ComStringOf Of hoJResp "buildBatches[i].buildBatchStatus" To sBuildBatchStatus
Get ComIntOf Of hoJResp "buildBatches[i].buildTimeoutInMinutes" To iBuildTimeoutInMinutes
Get ComStringOf Of hoJResp "buildBatches[i].cache.location" To sCacheLocation
Get ComStringOf Of hoJResp "buildBatches[i].cache.type" To sV_Type
Get ComIntOf Of hoJResp "buildBatches[i].complete" To iComplete
Get ComStringOf Of hoJResp "buildBatches[i].currentPhase" To sCurrentPhase
Get ComIntOf Of hoJResp "buildBatches[i].debugSessionEnabled" To iDebugSessionEnabled
Get ComStringOf Of hoJResp "buildBatches[i].encryptionKey" To sEncryptionKey
Get ComIntOf Of hoJResp "buildBatches[i].endTime" To iEndTime
Get ComStringOf Of hoJResp "buildBatches[i].environment.certificate" To sCertificate
Get ComStringOf Of hoJResp "buildBatches[i].environment.computeType" To sComputeType
Get ComStringOf Of hoJResp "buildBatches[i].environment.image" To sImage
Get ComStringOf Of hoJResp "buildBatches[i].environment.imagePullCredentialsType" To sImagePullCredentialsType
Get ComIntOf Of hoJResp "buildBatches[i].environment.privilegedMode" To iPrivilegedMode
Get ComStringOf Of hoJResp "buildBatches[i].environment.registryCredential.credential" To sCredential
Get ComStringOf Of hoJResp "buildBatches[i].environment.registryCredential.credentialProvider" To sCredentialProvider
Get ComStringOf Of hoJResp "buildBatches[i].environment.type" To sEnvironmentType
Get ComStringOf Of hoJResp "buildBatches[i].id" To sId
Get ComStringOf Of hoJResp "buildBatches[i].initiator" To sInitiator
Get ComStringOf Of hoJResp "buildBatches[i].logConfig.cloudWatchLogs.groupName" To sGroupName
Get ComStringOf Of hoJResp "buildBatches[i].logConfig.cloudWatchLogs.status" To sStatus
Get ComStringOf Of hoJResp "buildBatches[i].logConfig.cloudWatchLogs.streamName" To sStreamName
Get ComStringOf Of hoJResp "buildBatches[i].logConfig.s3Logs.bucketOwnerAccess" To sS3LogsBucketOwnerAccess
Get ComIntOf Of hoJResp "buildBatches[i].logConfig.s3Logs.encryptionDisabled" To iS3LogsEncryptionDisabled
Get ComStringOf Of hoJResp "buildBatches[i].logConfig.s3Logs.location" To sS3LogsLocation
Get ComStringOf Of hoJResp "buildBatches[i].logConfig.s3Logs.status" To sS3LogsStatus
Get ComStringOf Of hoJResp "buildBatches[i].projectName" To sProjectName
Get ComIntOf Of hoJResp "buildBatches[i].queuedTimeoutInMinutes" To iQueuedTimeoutInMinutes
Get ComStringOf Of hoJResp "buildBatches[i].resolvedSourceVersion" To sResolvedSourceVersion
Get ComStringOf Of hoJResp "buildBatches[i].serviceRole" To sServiceRole
Get ComStringOf Of hoJResp "buildBatches[i].source.auth.resource" To sResource
Get ComStringOf Of hoJResp "buildBatches[i].source.auth.type" To sAuthType
Get ComStringOf Of hoJResp "buildBatches[i].source.buildspec" To sBuildspec
Get ComStringOf Of hoJResp "buildBatches[i].source.buildStatusConfig.context" To sContext
Get ComStringOf Of hoJResp "buildBatches[i].source.buildStatusConfig.targetUrl" To sTargetUrl
Get ComIntOf Of hoJResp "buildBatches[i].source.gitCloneDepth" To iGitCloneDepth
Get ComIntOf Of hoJResp "buildBatches[i].source.gitSubmodulesConfig.fetchSubmodules" To iFetchSubmodules
Get ComIntOf Of hoJResp "buildBatches[i].source.insecureSsl" To iInsecureSsl
Get ComStringOf Of hoJResp "buildBatches[i].source.location" To sSourceLocation
Get ComIntOf Of hoJResp "buildBatches[i].source.reportBuildStatus" To iReportBuildStatus
Get ComStringOf Of hoJResp "buildBatches[i].source.sourceIdentifier" To sSourceIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].source.type" To sSourceType
Get ComStringOf Of hoJResp "buildBatches[i].sourceVersion" To sSourceVersion
Get ComIntOf Of hoJResp "buildBatches[i].startTime" To iStartTime
Get ComStringOf Of hoJResp "buildBatches[i].vpcConfig.vpcId" To sVpcId
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].buildBatchConfig.restrictions.computeTypesAllowed" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].buildBatchConfig.restrictions.computeTypesAllowed[j]" To sStrVal
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].buildGroups" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.arn" To sArn
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.buildStatus" To sBuildStatus
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.identifier" To sIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.location" To sPrimaryArtifactLocation
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.primaryArtifact.type" To sPrimaryArtifactType
Get ComIntOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.requestedOn" To iRequestedOn
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].identifier" To sIdentifier
Get ComIntOf Of hoJResp "buildBatches[i].buildGroups[j].ignoreFailure" To iIgnoreFailure
Move 0 To k
Get ComSizeOfArray Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts" To iCount_k
While (k < iCount_k)
Set ComK Of hoJResp To k
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].identifier" To sIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].location" To sLocation
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].currentBuildSummary.secondaryArtifacts[k].type" To sV_type
Move (k + 1) To k
Loop
Move 0 To k
Get ComSizeOfArray Of hoJResp "buildBatches[i].buildGroups[j].dependsOn" To iCount_k
While (k < iCount_k)
Set ComK Of hoJResp To k
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].dependsOn[k]" To sStrVal
Move (k + 1) To k
Loop
Move 0 To k
Get ComSizeOfArray Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList" To iCount_k
While (k < iCount_k)
Set ComK Of hoJResp To k
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].arn" To sArn
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].buildStatus" To sBuildStatus
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.identifier" To sPrimaryArtifactIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.location" To sPrimaryArtifactLocation
Get ComStringOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].primaryArtifact.type" To sPrimaryArtifactType
Get ComIntOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k].requestedOn" To iRequestedOn
Get ComObjectOf Of hoJResp "buildBatches[i].buildGroups[j].priorBuildSummaryList[k]" To vJson1
If (IsComObject(vJson1)) Begin
Get Create (RefClass(cComChilkatJsonObject)) To hoJson1
Set pvComObject Of hoJson1 To vJson1
End
Move 0 To iI1
Get ComSizeOfArray Of hoJson1 "secondaryArtifacts" To iCount_i1
While (iI1 < iCount_i1)
Set ComI Of hoJson1 To iI1
Get ComStringOf Of hoJson1 "secondaryArtifacts[i].identifier" To sIdentifier
Get ComStringOf Of hoJson1 "secondaryArtifacts[i].location" To sLocation
Get ComStringOf Of hoJson1 "secondaryArtifacts[i].type" To sV_type
Move (iI1 + 1) To iI1
Loop
Send Destroy of hoJson1
Move (k + 1) To k
Loop
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].cache.modes" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].cache.modes[j]" To sStrVal
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].environment.environmentVariables" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].environment.environmentVariables[j].name" To sName
Get ComStringOf Of hoJResp "buildBatches[i].environment.environmentVariables[j].type" To sV_type
Get ComStringOf Of hoJResp "buildBatches[i].environment.environmentVariables[j].value" To sValue
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].fileSystemLocations" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].fileSystemLocations[j].identifier" To sIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].fileSystemLocations[j].location" To sLocation
Get ComStringOf Of hoJResp "buildBatches[i].fileSystemLocations[j].mountOptions" To sMountOptions
Get ComStringOf Of hoJResp "buildBatches[i].fileSystemLocations[j].mountPoint" To sMountPoint
Get ComStringOf Of hoJResp "buildBatches[i].fileSystemLocations[j].type" To sV_type
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].phases" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComIntOf Of hoJResp "buildBatches[i].phases[j].durationInSeconds" To iDurationInSeconds
Get ComIntOf Of hoJResp "buildBatches[i].phases[j].endTime" To iEndTime
Get ComStringOf Of hoJResp "buildBatches[i].phases[j].phaseStatus" To sPhaseStatus
Get ComStringOf Of hoJResp "buildBatches[i].phases[j].phaseType" To sPhaseType
Get ComIntOf Of hoJResp "buildBatches[i].phases[j].startTime" To iStartTime
Move 0 To k
Get ComSizeOfArray Of hoJResp "buildBatches[i].phases[j].contexts" To iCount_k
While (k < iCount_k)
Set ComK Of hoJResp To k
Get ComStringOf Of hoJResp "buildBatches[i].phases[j].contexts[k].message" To sMessage
Get ComStringOf Of hoJResp "buildBatches[i].phases[j].contexts[k].statusCode" To sStatusCode
Move (k + 1) To k
Loop
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].secondaryArtifacts" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].artifactIdentifier" To sArtifactIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].bucketOwnerAccess" To sBucketOwnerAccess
Get ComIntOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].encryptionDisabled" To iEncryptionDisabled
Get ComStringOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].location" To sLocation
Get ComStringOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].md5sum" To sMd5sum
Get ComIntOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].overrideArtifactName" To iOverrideArtifactName
Get ComStringOf Of hoJResp "buildBatches[i].secondaryArtifacts[j].sha256sum" To sSha256sum
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].secondarySources" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].auth.resource" To sAuthResource
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].auth.type" To sAuthType
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].buildspec" To sBuildspec
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].buildStatusConfig.context" To sBuildStatusConfigContext
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].buildStatusConfig.targetUrl" To sBuildStatusConfigTargetUrl
Get ComIntOf Of hoJResp "buildBatches[i].secondarySources[j].gitCloneDepth" To iGitCloneDepth
Get ComIntOf Of hoJResp "buildBatches[i].secondarySources[j].gitSubmodulesConfig.fetchSubmodules" To iGitSubmodulesConfigFetchSubmodules
Get ComIntOf Of hoJResp "buildBatches[i].secondarySources[j].insecureSsl" To iInsecureSsl
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].location" To sLocation
Get ComIntOf Of hoJResp "buildBatches[i].secondarySources[j].reportBuildStatus" To iReportBuildStatus
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].sourceIdentifier" To sSourceIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].secondarySources[j].type" To sV_type
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].secondarySourceVersions" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].secondarySourceVersions[j].sourceIdentifier" To sSourceIdentifier
Get ComStringOf Of hoJResp "buildBatches[i].secondarySourceVersions[j].sourceVersion" To sSourceVersion
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].vpcConfig.securityGroupIds" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].vpcConfig.securityGroupIds[j]" To sStrVal
Move (j + 1) To j
Loop
Move 0 To j
Get ComSizeOfArray Of hoJResp "buildBatches[i].vpcConfig.subnets" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComStringOf Of hoJResp "buildBatches[i].vpcConfig.subnets[j]" To sStrVal
Move (j + 1) To j
Loop
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "buildBatchesNotFound" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "buildBatchesNotFound[i]" To sStrVal
Move (i + 1) To i
Loop
// A sample JSON response body parsed by the above code:
// {
// "buildBatches": [
// {
// "arn": "string",
// "artifacts": {
// "artifactIdentifier": "string",
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "md5sum": "string",
// "overrideArtifactName": boolean,
// "sha256sum": "string"
// },
// "buildBatchConfig": {
// "batchReportMode": "string",
// "combineArtifacts": boolean,
// "restrictions": {
// "computeTypesAllowed": [
// "string"
// ],
// "maximumBuildsAllowed": number
// },
// "serviceRole": "string",
// "timeoutInMins": number
// },
// "buildBatchNumber": number,
// "buildBatchStatus": "string",
// "buildGroups": [
// {
// "currentBuildSummary": {
// "arn": "string",
// "buildStatus": "string",
// "primaryArtifact": {
// "identifier": "string",
// "location": "string",
// "type": "string"
// },
// "requestedOn": number,
// "secondaryArtifacts": [
// {
// "identifier": "string",
// "location": "string",
// "type": "string"
// }
// ]
// },
// "dependsOn": [
// "string"
// ],
// "identifier": "string",
// "ignoreFailure": boolean,
// "priorBuildSummaryList": [
// {
// "arn": "string",
// "buildStatus": "string",
// "primaryArtifact": {
// "identifier": "string",
// "location": "string",
// "type": "string"
// },
// "requestedOn": number,
// "secondaryArtifacts": [
// {
// "identifier": "string",
// "location": "string",
// "type": "string"
// }
// ]
// }
// ]
// }
// ],
// "buildTimeoutInMinutes": number,
// "cache": {
// "location": "string",
// "modes": [
// "string"
// ],
// "type": "string"
// },
// "complete": boolean,
// "currentPhase": "string",
// "debugSessionEnabled": boolean,
// "encryptionKey": "string",
// "endTime": number,
// "environment": {
// "certificate": "string",
// "computeType": "string",
// "environmentVariables": [
// {
// "name": "string",
// "type": "string",
// "value": "string"
// }
// ],
// "image": "string",
// "imagePullCredentialsType": "string",
// "privilegedMode": boolean,
// "registryCredential": {
// "credential": "string",
// "credentialProvider": "string"
// },
// "type": "string"
// },
// "fileSystemLocations": [
// {
// "identifier": "string",
// "location": "string",
// "mountOptions": "string",
// "mountPoint": "string",
// "type": "string"
// }
// ],
// "id": "string",
// "initiator": "string",
// "logConfig": {
// "cloudWatchLogs": {
// "groupName": "string",
// "status": "string",
// "streamName": "string"
// },
// "s3Logs": {
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "status": "string"
// }
// },
// "phases": [
// {
// "contexts": [
// {
// "message": "string",
// "statusCode": "string"
// }
// ],
// "durationInSeconds": number,
// "endTime": number,
// "phaseStatus": "string",
// "phaseType": "string",
// "startTime": number
// }
// ],
// "projectName": "string",
// "queuedTimeoutInMinutes": number,
// "resolvedSourceVersion": "string",
// "secondaryArtifacts": [
// {
// "artifactIdentifier": "string",
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "md5sum": "string",
// "overrideArtifactName": boolean,
// "sha256sum": "string"
// }
// ],
// "secondarySources": [
// {
// "auth": {
// "resource": "string",
// "type": "string"
// },
// "buildspec": "string",
// "buildStatusConfig": {
// "context": "string",
// "targetUrl": "string"
// },
// "gitCloneDepth": number,
// "gitSubmodulesConfig": {
// "fetchSubmodules": boolean
// },
// "insecureSsl": boolean,
// "location": "string",
// "reportBuildStatus": boolean,
// "sourceIdentifier": "string",
// "type": "string"
// }
// ],
// "secondarySourceVersions": [
// {
// "sourceIdentifier": "string",
// "sourceVersion": "string"
// }
// ],
// "serviceRole": "string",
// "source": {
// "auth": {
// "resource": "string",
// "type": "string"
// },
// "buildspec": "string",
// "buildStatusConfig": {
// "context": "string",
// "targetUrl": "string"
// },
// "gitCloneDepth": number,
// "gitSubmodulesConfig": {
// "fetchSubmodules": boolean
// },
// "insecureSsl": boolean,
// "location": "string",
// "reportBuildStatus": boolean,
// "sourceIdentifier": "string",
// "type": "string"
// },
// "sourceVersion": "string",
// "startTime": number,
// "vpcConfig": {
// "securityGroupIds": [
// "string"
// ],
// "subnets": [
// "string"
// ],
// "vpcId": "string"
// }
// }
// ],
// "buildBatchesNotFound": [
// "string"
// ]
// }
End_Procedure