CreateProject 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 sStrVal
String sName
String sV_type
String sValue
String sIdentifier
String sLocation
String sMountOptions
String sMountPoint
String sArtifactIdentifier
String sBucketOwnerAccess
Integer iEncryptionDisabled
String sNamespaceType
Integer iOverrideArtifactName
String sPackaging
String sPath
String sAuthResource
String sAuthType
String sBuildspec
String sBuildStatusConfigContext
String sBuildStatusConfigTargetUrl
Integer iGitCloneDepth
Integer iGitSubmodulesConfigFetchSubmodules
Integer iInsecureSsl
Integer iReportBuildStatus
String sSourceIdentifier
String sSourceVersion
String sKey
Integer j
Integer iCount_j
Integer iExcludeMatchedPattern
String sPattern
String sArn
String sArtifactIdentifier
String sBucketOwnerAccess
Integer iEncryptionDisabled
String sLocation
String sName
String sNamespaceType
Integer iOverrideArtifactName
String sPackaging
String sPath
String sV_Type
Integer iBadgeEnabled
String sBadgeRequestUrl
String sBatchReportMode
Integer iCombineArtifacts
Integer iMaximumBuildsAllowed
String sServiceRole
Integer iTimeoutInMins
String sCacheLocation
String sCacheType
Integer iConcurrentBuildLimit
Integer iCreated
String sDescription
String sEncryptionKey
String sCertificate
String sComputeType
String sImage
String sImagePullCredentialsType
Integer iPrivilegedMode
String sCredential
String sCredentialProvider
String sEnvironmentType
Integer iLastModified
String sGroupName
String sStatus
String sStreamName
String sS3LogsBucketOwnerAccess
Integer iS3LogsEncryptionDisabled
String sS3LogsLocation
String sS3LogsStatus
String sProjectName
String sProjectVisibility
String sPublicProjectAlias
Integer iQueuedTimeoutInMinutes
String sResourceAccessRole
String sProjectServiceRole
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 iTimeoutInMinutes
String sVpcId
String sBranchFilter
String sBuildType
Integer iLastModifiedSecret
String sPayloadUrl
String sSecret
String sV_Url
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 "artifacts.artifactIdentifier" "string" To iSuccess
Get ComUpdateString Of hoJson "artifacts.bucketOwnerAccess" "string" To iSuccess
Get ComUpdateInt Of hoJson "artifacts.encryptionDisabled" 123 To iSuccess
Get ComUpdateString Of hoJson "artifacts.location" "string" To iSuccess
Get ComUpdateString Of hoJson "artifacts.name" "string" To iSuccess
Get ComUpdateString Of hoJson "artifacts.namespaceType" "string" To iSuccess
Get ComUpdateInt Of hoJson "artifacts.overrideArtifactName" 123 To iSuccess
Get ComUpdateString Of hoJson "artifacts.packaging" "string" To iSuccess
Get ComUpdateString Of hoJson "artifacts.path" "string" To iSuccess
Get ComUpdateString Of hoJson "artifacts.type" "string" To iSuccess
Get ComUpdateInt Of hoJson "badgeEnabled" 123 To iSuccess
Get ComUpdateString Of hoJson "buildBatchConfig.batchReportMode" "string" To iSuccess
Get ComUpdateInt Of hoJson "buildBatchConfig.combineArtifacts" 123 To iSuccess
Get ComUpdateString Of hoJson "buildBatchConfig.restrictions.computeTypesAllowed[0]" "string" To iSuccess
Get ComUpdateInt Of hoJson "buildBatchConfig.restrictions.maximumBuildsAllowed" 123 To iSuccess
Get ComUpdateString Of hoJson "buildBatchConfig.serviceRole" "string" To iSuccess
Get ComUpdateInt Of hoJson "buildBatchConfig.timeoutInMins" 123 To iSuccess
Get ComUpdateString Of hoJson "cache.location" "string" To iSuccess
Get ComUpdateString Of hoJson "cache.modes[0]" "string" To iSuccess
Get ComUpdateString Of hoJson "cache.type" "string" To iSuccess
Get ComUpdateInt Of hoJson "concurrentBuildLimit" 123 To iSuccess
Get ComUpdateString Of hoJson "description" "string" To iSuccess
Get ComUpdateString Of hoJson "encryptionKey" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.certificate" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.computeType" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.environmentVariables[0].name" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.environmentVariables[0].type" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.environmentVariables[0].value" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.image" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.imagePullCredentialsType" "string" To iSuccess
Get ComUpdateInt Of hoJson "environment.privilegedMode" 123 To iSuccess
Get ComUpdateString Of hoJson "environment.registryCredential.credential" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.registryCredential.credentialProvider" "string" To iSuccess
Get ComUpdateString Of hoJson "environment.type" "string" To iSuccess
Get ComUpdateString Of hoJson "fileSystemLocations[0].identifier" "string" To iSuccess
Get ComUpdateString Of hoJson "fileSystemLocations[0].location" "string" To iSuccess
Get ComUpdateString Of hoJson "fileSystemLocations[0].mountOptions" "string" To iSuccess
Get ComUpdateString Of hoJson "fileSystemLocations[0].mountPoint" "string" To iSuccess
Get ComUpdateString Of hoJson "fileSystemLocations[0].type" "string" To iSuccess
Get ComUpdateString Of hoJson "logsConfig.cloudWatchLogs.groupName" "string" To iSuccess
Get ComUpdateString Of hoJson "logsConfig.cloudWatchLogs.status" "string" To iSuccess
Get ComUpdateString Of hoJson "logsConfig.cloudWatchLogs.streamName" "string" To iSuccess
Get ComUpdateString Of hoJson "logsConfig.s3Logs.bucketOwnerAccess" "string" To iSuccess
Get ComUpdateInt Of hoJson "logsConfig.s3Logs.encryptionDisabled" 123 To iSuccess
Get ComUpdateString Of hoJson "logsConfig.s3Logs.location" "string" To iSuccess
Get ComUpdateString Of hoJson "logsConfig.s3Logs.status" "string" To iSuccess
Get ComUpdateString Of hoJson "name" "string" To iSuccess
Get ComUpdateInt Of hoJson "queuedTimeoutInMinutes" 123 To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].artifactIdentifier" "string" To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].bucketOwnerAccess" "string" To iSuccess
Get ComUpdateInt Of hoJson "secondaryArtifacts[0].encryptionDisabled" 123 To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].location" "string" To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].name" "string" To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].namespaceType" "string" To iSuccess
Get ComUpdateInt Of hoJson "secondaryArtifacts[0].overrideArtifactName" 123 To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].packaging" "string" To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].path" "string" To iSuccess
Get ComUpdateString Of hoJson "secondaryArtifacts[0].type" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].auth.resource" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].auth.type" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].buildspec" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].buildStatusConfig.context" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].buildStatusConfig.targetUrl" "string" To iSuccess
Get ComUpdateInt Of hoJson "secondarySources[0].gitCloneDepth" 123 To iSuccess
Get ComUpdateInt Of hoJson "secondarySources[0].gitSubmodulesConfig.fetchSubmodules" 123 To iSuccess
Get ComUpdateInt Of hoJson "secondarySources[0].insecureSsl" 123 To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].location" "string" To iSuccess
Get ComUpdateInt Of hoJson "secondarySources[0].reportBuildStatus" 123 To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].sourceIdentifier" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySources[0].type" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySourceVersions[0].sourceIdentifier" "string" To iSuccess
Get ComUpdateString Of hoJson "secondarySourceVersions[0].sourceVersion" "string" To iSuccess
Get ComUpdateString Of hoJson "serviceRole" "string" To iSuccess
Get ComUpdateString Of hoJson "source.auth.resource" "string" To iSuccess
Get ComUpdateString Of hoJson "source.auth.type" "string" To iSuccess
Get ComUpdateString Of hoJson "source.buildspec" "string" To iSuccess
Get ComUpdateString Of hoJson "source.buildStatusConfig.context" "string" To iSuccess
Get ComUpdateString Of hoJson "source.buildStatusConfig.targetUrl" "string" To iSuccess
Get ComUpdateInt Of hoJson "source.gitCloneDepth" 123 To iSuccess
Get ComUpdateInt Of hoJson "source.gitSubmodulesConfig.fetchSubmodules" 123 To iSuccess
Get ComUpdateInt Of hoJson "source.insecureSsl" 123 To iSuccess
Get ComUpdateString Of hoJson "source.location" "string" To iSuccess
Get ComUpdateInt Of hoJson "source.reportBuildStatus" 123 To iSuccess
Get ComUpdateString Of hoJson "source.sourceIdentifier" "string" To iSuccess
Get ComUpdateString Of hoJson "source.type" "string" To iSuccess
Get ComUpdateString Of hoJson "sourceVersion" "string" To iSuccess
Get ComUpdateString Of hoJson "tags[0].key" "string" To iSuccess
Get ComUpdateString Of hoJson "tags[0].value" "string" To iSuccess
Get ComUpdateInt Of hoJson "timeoutInMinutes" 123 To iSuccess
Get ComUpdateString Of hoJson "vpcConfig.securityGroupIds[0]" "string" To iSuccess
Get ComUpdateString Of hoJson "vpcConfig.subnets[0]" "string" To iSuccess
Get ComUpdateString Of hoJson "vpcConfig.vpcId" "string" To iSuccess
// The JSON request body created by the above code:
// {
// "artifacts": {
// "artifactIdentifier": "string",
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "name": "string",
// "namespaceType": "string",
// "overrideArtifactName": boolean,
// "packaging": "string",
// "path": "string",
// "type": "string"
// },
// "badgeEnabled": boolean,
// "buildBatchConfig": {
// "batchReportMode": "string",
// "combineArtifacts": boolean,
// "restrictions": {
// "computeTypesAllowed": [
// "string"
// ],
// "maximumBuildsAllowed": number
// },
// "serviceRole": "string",
// "timeoutInMins": number
// },
// "cache": {
// "location": "string",
// "modes": [
// "string"
// ],
// "type": "string"
// },
// "concurrentBuildLimit": number,
// "description": "string",
// "encryptionKey": "string",
// "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"
// }
// ],
// "logsConfig": {
// "cloudWatchLogs": {
// "groupName": "string",
// "status": "string",
// "streamName": "string"
// },
// "s3Logs": {
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "status": "string"
// }
// },
// "name": "string",
// "queuedTimeoutInMinutes": number,
// "secondaryArtifacts": [
// {
// "artifactIdentifier": "string",
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "name": "string",
// "namespaceType": "string",
// "overrideArtifactName": boolean,
// "packaging": "string",
// "path": "string",
// "type": "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",
// "tags": [
// {
// "key": "string",
// "value": "string"
// }
// ],
// "timeoutInMinutes": number,
// "vpcConfig": {
// "securityGroupIds": [
// "string"
// ],
// "subnets": [
// "string"
// ],
// "vpcId": "string"
// }
// }
Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
Get ComAddHeader Of hoRest "X-Amz-Target" "CodeBuild_20161006.CreateProject" 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
Get ComStringOf Of hoJResp "project.arn" To sArn
Get ComStringOf Of hoJResp "project.artifacts.artifactIdentifier" To sArtifactIdentifier
Get ComStringOf Of hoJResp "project.artifacts.bucketOwnerAccess" To sBucketOwnerAccess
Get ComIntOf Of hoJResp "project.artifacts.encryptionDisabled" To iEncryptionDisabled
Get ComStringOf Of hoJResp "project.artifacts.location" To sLocation
Get ComStringOf Of hoJResp "project.artifacts.name" To sName
Get ComStringOf Of hoJResp "project.artifacts.namespaceType" To sNamespaceType
Get ComIntOf Of hoJResp "project.artifacts.overrideArtifactName" To iOverrideArtifactName
Get ComStringOf Of hoJResp "project.artifacts.packaging" To sPackaging
Get ComStringOf Of hoJResp "project.artifacts.path" To sPath
Get ComStringOf Of hoJResp "project.artifacts.type" To sV_Type
Get ComIntOf Of hoJResp "project.badge.badgeEnabled" To iBadgeEnabled
Get ComStringOf Of hoJResp "project.badge.badgeRequestUrl" To sBadgeRequestUrl
Get ComStringOf Of hoJResp "project.buildBatchConfig.batchReportMode" To sBatchReportMode
Get ComIntOf Of hoJResp "project.buildBatchConfig.combineArtifacts" To iCombineArtifacts
Get ComIntOf Of hoJResp "project.buildBatchConfig.restrictions.maximumBuildsAllowed" To iMaximumBuildsAllowed
Get ComStringOf Of hoJResp "project.buildBatchConfig.serviceRole" To sServiceRole
Get ComIntOf Of hoJResp "project.buildBatchConfig.timeoutInMins" To iTimeoutInMins
Get ComStringOf Of hoJResp "project.cache.location" To sCacheLocation
Get ComStringOf Of hoJResp "project.cache.type" To sCacheType
Get ComIntOf Of hoJResp "project.concurrentBuildLimit" To iConcurrentBuildLimit
Get ComIntOf Of hoJResp "project.created" To iCreated
Get ComStringOf Of hoJResp "project.description" To sDescription
Get ComStringOf Of hoJResp "project.encryptionKey" To sEncryptionKey
Get ComStringOf Of hoJResp "project.environment.certificate" To sCertificate
Get ComStringOf Of hoJResp "project.environment.computeType" To sComputeType
Get ComStringOf Of hoJResp "project.environment.image" To sImage
Get ComStringOf Of hoJResp "project.environment.imagePullCredentialsType" To sImagePullCredentialsType
Get ComIntOf Of hoJResp "project.environment.privilegedMode" To iPrivilegedMode
Get ComStringOf Of hoJResp "project.environment.registryCredential.credential" To sCredential
Get ComStringOf Of hoJResp "project.environment.registryCredential.credentialProvider" To sCredentialProvider
Get ComStringOf Of hoJResp "project.environment.type" To sEnvironmentType
Get ComIntOf Of hoJResp "project.lastModified" To iLastModified
Get ComStringOf Of hoJResp "project.logsConfig.cloudWatchLogs.groupName" To sGroupName
Get ComStringOf Of hoJResp "project.logsConfig.cloudWatchLogs.status" To sStatus
Get ComStringOf Of hoJResp "project.logsConfig.cloudWatchLogs.streamName" To sStreamName
Get ComStringOf Of hoJResp "project.logsConfig.s3Logs.bucketOwnerAccess" To sS3LogsBucketOwnerAccess
Get ComIntOf Of hoJResp "project.logsConfig.s3Logs.encryptionDisabled" To iS3LogsEncryptionDisabled
Get ComStringOf Of hoJResp "project.logsConfig.s3Logs.location" To sS3LogsLocation
Get ComStringOf Of hoJResp "project.logsConfig.s3Logs.status" To sS3LogsStatus
Get ComStringOf Of hoJResp "project.name" To sProjectName
Get ComStringOf Of hoJResp "project.projectVisibility" To sProjectVisibility
Get ComStringOf Of hoJResp "project.publicProjectAlias" To sPublicProjectAlias
Get ComIntOf Of hoJResp "project.queuedTimeoutInMinutes" To iQueuedTimeoutInMinutes
Get ComStringOf Of hoJResp "project.resourceAccessRole" To sResourceAccessRole
Get ComStringOf Of hoJResp "project.serviceRole" To sProjectServiceRole
Get ComStringOf Of hoJResp "project.source.auth.resource" To sResource
Get ComStringOf Of hoJResp "project.source.auth.type" To sAuthType
Get ComStringOf Of hoJResp "project.source.buildspec" To sBuildspec
Get ComStringOf Of hoJResp "project.source.buildStatusConfig.context" To sContext
Get ComStringOf Of hoJResp "project.source.buildStatusConfig.targetUrl" To sTargetUrl
Get ComIntOf Of hoJResp "project.source.gitCloneDepth" To iGitCloneDepth
Get ComIntOf Of hoJResp "project.source.gitSubmodulesConfig.fetchSubmodules" To iFetchSubmodules
Get ComIntOf Of hoJResp "project.source.insecureSsl" To iInsecureSsl
Get ComStringOf Of hoJResp "project.source.location" To sSourceLocation
Get ComIntOf Of hoJResp "project.source.reportBuildStatus" To iReportBuildStatus
Get ComStringOf Of hoJResp "project.source.sourceIdentifier" To sSourceIdentifier
Get ComStringOf Of hoJResp "project.source.type" To sSourceType
Get ComStringOf Of hoJResp "project.sourceVersion" To sSourceVersion
Get ComIntOf Of hoJResp "project.timeoutInMinutes" To iTimeoutInMinutes
Get ComStringOf Of hoJResp "project.vpcConfig.vpcId" To sVpcId
Get ComStringOf Of hoJResp "project.webhook.branchFilter" To sBranchFilter
Get ComStringOf Of hoJResp "project.webhook.buildType" To sBuildType
Get ComIntOf Of hoJResp "project.webhook.lastModifiedSecret" To iLastModifiedSecret
Get ComStringOf Of hoJResp "project.webhook.payloadUrl" To sPayloadUrl
Get ComStringOf Of hoJResp "project.webhook.secret" To sSecret
Get ComStringOf Of hoJResp "project.webhook.url" To sV_Url
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.buildBatchConfig.restrictions.computeTypesAllowed" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.buildBatchConfig.restrictions.computeTypesAllowed[i]" To sStrVal
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.cache.modes" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.cache.modes[i]" To sStrVal
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.environment.environmentVariables" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.environment.environmentVariables[i].name" To sName
Get ComStringOf Of hoJResp "project.environment.environmentVariables[i].type" To sV_type
Get ComStringOf Of hoJResp "project.environment.environmentVariables[i].value" To sValue
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.fileSystemLocations" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.fileSystemLocations[i].identifier" To sIdentifier
Get ComStringOf Of hoJResp "project.fileSystemLocations[i].location" To sLocation
Get ComStringOf Of hoJResp "project.fileSystemLocations[i].mountOptions" To sMountOptions
Get ComStringOf Of hoJResp "project.fileSystemLocations[i].mountPoint" To sMountPoint
Get ComStringOf Of hoJResp "project.fileSystemLocations[i].type" To sV_type
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.secondaryArtifacts" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].artifactIdentifier" To sArtifactIdentifier
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].bucketOwnerAccess" To sBucketOwnerAccess
Get ComIntOf Of hoJResp "project.secondaryArtifacts[i].encryptionDisabled" To iEncryptionDisabled
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].location" To sLocation
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].name" To sName
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].namespaceType" To sNamespaceType
Get ComIntOf Of hoJResp "project.secondaryArtifacts[i].overrideArtifactName" To iOverrideArtifactName
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].packaging" To sPackaging
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].path" To sPath
Get ComStringOf Of hoJResp "project.secondaryArtifacts[i].type" To sV_type
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.secondarySources" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.secondarySources[i].auth.resource" To sAuthResource
Get ComStringOf Of hoJResp "project.secondarySources[i].auth.type" To sAuthType
Get ComStringOf Of hoJResp "project.secondarySources[i].buildspec" To sBuildspec
Get ComStringOf Of hoJResp "project.secondarySources[i].buildStatusConfig.context" To sBuildStatusConfigContext
Get ComStringOf Of hoJResp "project.secondarySources[i].buildStatusConfig.targetUrl" To sBuildStatusConfigTargetUrl
Get ComIntOf Of hoJResp "project.secondarySources[i].gitCloneDepth" To iGitCloneDepth
Get ComIntOf Of hoJResp "project.secondarySources[i].gitSubmodulesConfig.fetchSubmodules" To iGitSubmodulesConfigFetchSubmodules
Get ComIntOf Of hoJResp "project.secondarySources[i].insecureSsl" To iInsecureSsl
Get ComStringOf Of hoJResp "project.secondarySources[i].location" To sLocation
Get ComIntOf Of hoJResp "project.secondarySources[i].reportBuildStatus" To iReportBuildStatus
Get ComStringOf Of hoJResp "project.secondarySources[i].sourceIdentifier" To sSourceIdentifier
Get ComStringOf Of hoJResp "project.secondarySources[i].type" To sV_type
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.secondarySourceVersions" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.secondarySourceVersions[i].sourceIdentifier" To sSourceIdentifier
Get ComStringOf Of hoJResp "project.secondarySourceVersions[i].sourceVersion" To sSourceVersion
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.tags" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.tags[i].key" To sKey
Get ComStringOf Of hoJResp "project.tags[i].value" To sValue
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.vpcConfig.securityGroupIds" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.vpcConfig.securityGroupIds[i]" To sStrVal
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.vpcConfig.subnets" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Get ComStringOf Of hoJResp "project.vpcConfig.subnets[i]" To sStrVal
Move (i + 1) To i
Loop
Move 0 To i
Get ComSizeOfArray Of hoJResp "project.webhook.filterGroups" To iCount_i
While (i < iCount_i)
Set ComI Of hoJResp To i
Move 0 To j
Get ComSizeOfArray Of hoJResp "project.webhook.filterGroups[i]" To iCount_j
While (j < iCount_j)
Set ComJ Of hoJResp To j
Get ComIntOf Of hoJResp "project.webhook.filterGroups[i][j].excludeMatchedPattern" To iExcludeMatchedPattern
Get ComStringOf Of hoJResp "project.webhook.filterGroups[i][j].pattern" To sPattern
Get ComStringOf Of hoJResp "project.webhook.filterGroups[i][j].type" To sV_type
Move (j + 1) To j
Loop
Move (i + 1) To i
Loop
// A sample JSON response body parsed by the above code:
// {
// "project": {
// "arn": "string",
// "artifacts": {
// "artifactIdentifier": "string",
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "name": "string",
// "namespaceType": "string",
// "overrideArtifactName": boolean,
// "packaging": "string",
// "path": "string",
// "type": "string"
// },
// "badge": {
// "badgeEnabled": boolean,
// "badgeRequestUrl": "string"
// },
// "buildBatchConfig": {
// "batchReportMode": "string",
// "combineArtifacts": boolean,
// "restrictions": {
// "computeTypesAllowed": [
// "string"
// ],
// "maximumBuildsAllowed": number
// },
// "serviceRole": "string",
// "timeoutInMins": number
// },
// "cache": {
// "location": "string",
// "modes": [
// "string"
// ],
// "type": "string"
// },
// "concurrentBuildLimit": number,
// "created": number,
// "description": "string",
// "encryptionKey": "string",
// "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"
// }
// ],
// "lastModified": number,
// "logsConfig": {
// "cloudWatchLogs": {
// "groupName": "string",
// "status": "string",
// "streamName": "string"
// },
// "s3Logs": {
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "status": "string"
// }
// },
// "name": "string",
// "projectVisibility": "string",
// "publicProjectAlias": "string",
// "queuedTimeoutInMinutes": number,
// "resourceAccessRole": "string",
// "secondaryArtifacts": [
// {
// "artifactIdentifier": "string",
// "bucketOwnerAccess": "string",
// "encryptionDisabled": boolean,
// "location": "string",
// "name": "string",
// "namespaceType": "string",
// "overrideArtifactName": boolean,
// "packaging": "string",
// "path": "string",
// "type": "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",
// "tags": [
// {
// "key": "string",
// "value": "string"
// }
// ],
// "timeoutInMinutes": number,
// "vpcConfig": {
// "securityGroupIds": [
// "string"
// ],
// "subnets": [
// "string"
// ],
// "vpcId": "string"
// },
// "webhook": {
// "branchFilter": "string",
// "buildType": "string",
// "filterGroups": [
// [
// {
// "excludeMatchedPattern": boolean,
// "pattern": "string",
// "type": "string"
// }
// ]
// ],
// "lastModifiedSecret": number,
// "payloadUrl": "string",
// "secret": "string",
// "url": "string"
// }
// }
// }
End_Procedure