Chilkat Online Tools

BatchGetProjects DataFlex Example

AWS CodeBuild

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 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 sName
    String sProjectVisibility
    String sPublicProjectAlias
    Integer iQueuedTimeoutInMinutes
    String sResourceAccessRole
    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 iTimeoutInMinutes
    String sVpcId
    String sBranchFilter
    String sBuildType
    Integer iLastModifiedSecret
    String sPayloadUrl
    String sSecret
    String sV_Url
    Integer j
    Integer iCount_j
    String sStrVal
    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 sKey
    Integer k
    Integer iCount_k
    Integer iExcludeMatchedPattern
    String sPattern
    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 "names[0]" "string" To iSuccess

    // The JSON request body created by the above code:

    // {
    //   "names": [
    //     "string"
    //   ]
    // }

    Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
    Get ComAddHeader Of hoRest "X-Amz-Target" "CodeBuild_20161006.BatchGetProjects" 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 "projects" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "projects[i].arn" To sArn
        Get ComStringOf Of hoJResp "projects[i].artifacts.artifactIdentifier" To sArtifactIdentifier
        Get ComStringOf Of hoJResp "projects[i].artifacts.bucketOwnerAccess" To sBucketOwnerAccess
        Get ComIntOf Of hoJResp "projects[i].artifacts.encryptionDisabled" To iEncryptionDisabled
        Get ComStringOf Of hoJResp "projects[i].artifacts.location" To sLocation
        Get ComStringOf Of hoJResp "projects[i].artifacts.name" To sName
        Get ComStringOf Of hoJResp "projects[i].artifacts.namespaceType" To sNamespaceType
        Get ComIntOf Of hoJResp "projects[i].artifacts.overrideArtifactName" To iOverrideArtifactName
        Get ComStringOf Of hoJResp "projects[i].artifacts.packaging" To sPackaging
        Get ComStringOf Of hoJResp "projects[i].artifacts.path" To sPath
        Get ComStringOf Of hoJResp "projects[i].artifacts.type" To sV_Type
        Get ComIntOf Of hoJResp "projects[i].badge.badgeEnabled" To iBadgeEnabled
        Get ComStringOf Of hoJResp "projects[i].badge.badgeRequestUrl" To sBadgeRequestUrl
        Get ComStringOf Of hoJResp "projects[i].buildBatchConfig.batchReportMode" To sBatchReportMode
        Get ComIntOf Of hoJResp "projects[i].buildBatchConfig.combineArtifacts" To iCombineArtifacts
        Get ComIntOf Of hoJResp "projects[i].buildBatchConfig.restrictions.maximumBuildsAllowed" To iMaximumBuildsAllowed
        Get ComStringOf Of hoJResp "projects[i].buildBatchConfig.serviceRole" To sServiceRole
        Get ComIntOf Of hoJResp "projects[i].buildBatchConfig.timeoutInMins" To iTimeoutInMins
        Get ComStringOf Of hoJResp "projects[i].cache.location" To sCacheLocation
        Get ComStringOf Of hoJResp "projects[i].cache.type" To sCacheType
        Get ComIntOf Of hoJResp "projects[i].concurrentBuildLimit" To iConcurrentBuildLimit
        Get ComIntOf Of hoJResp "projects[i].created" To iCreated
        Get ComStringOf Of hoJResp "projects[i].description" To sDescription
        Get ComStringOf Of hoJResp "projects[i].encryptionKey" To sEncryptionKey
        Get ComStringOf Of hoJResp "projects[i].environment.certificate" To sCertificate
        Get ComStringOf Of hoJResp "projects[i].environment.computeType" To sComputeType
        Get ComStringOf Of hoJResp "projects[i].environment.image" To sImage
        Get ComStringOf Of hoJResp "projects[i].environment.imagePullCredentialsType" To sImagePullCredentialsType
        Get ComIntOf Of hoJResp "projects[i].environment.privilegedMode" To iPrivilegedMode
        Get ComStringOf Of hoJResp "projects[i].environment.registryCredential.credential" To sCredential
        Get ComStringOf Of hoJResp "projects[i].environment.registryCredential.credentialProvider" To sCredentialProvider
        Get ComStringOf Of hoJResp "projects[i].environment.type" To sEnvironmentType
        Get ComIntOf Of hoJResp "projects[i].lastModified" To iLastModified
        Get ComStringOf Of hoJResp "projects[i].logsConfig.cloudWatchLogs.groupName" To sGroupName
        Get ComStringOf Of hoJResp "projects[i].logsConfig.cloudWatchLogs.status" To sStatus
        Get ComStringOf Of hoJResp "projects[i].logsConfig.cloudWatchLogs.streamName" To sStreamName
        Get ComStringOf Of hoJResp "projects[i].logsConfig.s3Logs.bucketOwnerAccess" To sS3LogsBucketOwnerAccess
        Get ComIntOf Of hoJResp "projects[i].logsConfig.s3Logs.encryptionDisabled" To iS3LogsEncryptionDisabled
        Get ComStringOf Of hoJResp "projects[i].logsConfig.s3Logs.location" To sS3LogsLocation
        Get ComStringOf Of hoJResp "projects[i].logsConfig.s3Logs.status" To sS3LogsStatus
        Get ComStringOf Of hoJResp "projects[i].name" To sName
        Get ComStringOf Of hoJResp "projects[i].projectVisibility" To sProjectVisibility
        Get ComStringOf Of hoJResp "projects[i].publicProjectAlias" To sPublicProjectAlias
        Get ComIntOf Of hoJResp "projects[i].queuedTimeoutInMinutes" To iQueuedTimeoutInMinutes
        Get ComStringOf Of hoJResp "projects[i].resourceAccessRole" To sResourceAccessRole
        Get ComStringOf Of hoJResp "projects[i].serviceRole" To sServiceRole
        Get ComStringOf Of hoJResp "projects[i].source.auth.resource" To sResource
        Get ComStringOf Of hoJResp "projects[i].source.auth.type" To sAuthType
        Get ComStringOf Of hoJResp "projects[i].source.buildspec" To sBuildspec
        Get ComStringOf Of hoJResp "projects[i].source.buildStatusConfig.context" To sContext
        Get ComStringOf Of hoJResp "projects[i].source.buildStatusConfig.targetUrl" To sTargetUrl
        Get ComIntOf Of hoJResp "projects[i].source.gitCloneDepth" To iGitCloneDepth
        Get ComIntOf Of hoJResp "projects[i].source.gitSubmodulesConfig.fetchSubmodules" To iFetchSubmodules
        Get ComIntOf Of hoJResp "projects[i].source.insecureSsl" To iInsecureSsl
        Get ComStringOf Of hoJResp "projects[i].source.location" To sSourceLocation
        Get ComIntOf Of hoJResp "projects[i].source.reportBuildStatus" To iReportBuildStatus
        Get ComStringOf Of hoJResp "projects[i].source.sourceIdentifier" To sSourceIdentifier
        Get ComStringOf Of hoJResp "projects[i].source.type" To sSourceType
        Get ComStringOf Of hoJResp "projects[i].sourceVersion" To sSourceVersion
        Get ComIntOf Of hoJResp "projects[i].timeoutInMinutes" To iTimeoutInMinutes
        Get ComStringOf Of hoJResp "projects[i].vpcConfig.vpcId" To sVpcId
        Get ComStringOf Of hoJResp "projects[i].webhook.branchFilter" To sBranchFilter
        Get ComStringOf Of hoJResp "projects[i].webhook.buildType" To sBuildType
        Get ComIntOf Of hoJResp "projects[i].webhook.lastModifiedSecret" To iLastModifiedSecret
        Get ComStringOf Of hoJResp "projects[i].webhook.payloadUrl" To sPayloadUrl
        Get ComStringOf Of hoJResp "projects[i].webhook.secret" To sSecret
        Get ComStringOf Of hoJResp "projects[i].webhook.url" To sV_Url
        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].buildBatchConfig.restrictions.computeTypesAllowed" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].buildBatchConfig.restrictions.computeTypesAllowed[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].cache.modes" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].cache.modes[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].environment.environmentVariables" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].environment.environmentVariables[j].name" To sName
            Get ComStringOf Of hoJResp "projects[i].environment.environmentVariables[j].type" To sV_type
            Get ComStringOf Of hoJResp "projects[i].environment.environmentVariables[j].value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].fileSystemLocations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].fileSystemLocations[j].identifier" To sIdentifier
            Get ComStringOf Of hoJResp "projects[i].fileSystemLocations[j].location" To sLocation
            Get ComStringOf Of hoJResp "projects[i].fileSystemLocations[j].mountOptions" To sMountOptions
            Get ComStringOf Of hoJResp "projects[i].fileSystemLocations[j].mountPoint" To sMountPoint
            Get ComStringOf Of hoJResp "projects[i].fileSystemLocations[j].type" To sV_type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].secondaryArtifacts" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].artifactIdentifier" To sArtifactIdentifier
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].bucketOwnerAccess" To sBucketOwnerAccess
            Get ComIntOf Of hoJResp "projects[i].secondaryArtifacts[j].encryptionDisabled" To iEncryptionDisabled
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].location" To sLocation
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].name" To sName
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].namespaceType" To sNamespaceType
            Get ComIntOf Of hoJResp "projects[i].secondaryArtifacts[j].overrideArtifactName" To iOverrideArtifactName
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].packaging" To sPackaging
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].path" To sPath
            Get ComStringOf Of hoJResp "projects[i].secondaryArtifacts[j].type" To sV_type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].secondarySources" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].auth.resource" To sAuthResource
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].auth.type" To sAuthType
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].buildspec" To sBuildspec
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].buildStatusConfig.context" To sBuildStatusConfigContext
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].buildStatusConfig.targetUrl" To sBuildStatusConfigTargetUrl
            Get ComIntOf Of hoJResp "projects[i].secondarySources[j].gitCloneDepth" To iGitCloneDepth
            Get ComIntOf Of hoJResp "projects[i].secondarySources[j].gitSubmodulesConfig.fetchSubmodules" To iGitSubmodulesConfigFetchSubmodules
            Get ComIntOf Of hoJResp "projects[i].secondarySources[j].insecureSsl" To iInsecureSsl
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].location" To sLocation
            Get ComIntOf Of hoJResp "projects[i].secondarySources[j].reportBuildStatus" To iReportBuildStatus
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].sourceIdentifier" To sSourceIdentifier
            Get ComStringOf Of hoJResp "projects[i].secondarySources[j].type" To sV_type
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].secondarySourceVersions" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].secondarySourceVersions[j].sourceIdentifier" To sSourceIdentifier
            Get ComStringOf Of hoJResp "projects[i].secondarySourceVersions[j].sourceVersion" To sSourceVersion
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].tags" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].tags[j].key" To sKey
            Get ComStringOf Of hoJResp "projects[i].tags[j].value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].vpcConfig.securityGroupIds" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].vpcConfig.securityGroupIds[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].vpcConfig.subnets" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "projects[i].vpcConfig.subnets[j]" To sStrVal
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "projects[i].webhook.filterGroups" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "projects[i].webhook.filterGroups[j]" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComIntOf Of hoJResp "projects[i].webhook.filterGroups[j][k].excludeMatchedPattern" To iExcludeMatchedPattern
                Get ComStringOf Of hoJResp "projects[i].webhook.filterGroups[j][k].pattern" To sPattern
                Get ComStringOf Of hoJResp "projects[i].webhook.filterGroups[j][k].type" To sV_type
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "projectsNotFound" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "projectsNotFound[i]" To sStrVal
        Move (i + 1) To i
    Loop

    // A sample JSON response body parsed by the above code:

    // {
    //   "projects": [
    //     {
    //       "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"
    //       }
    //     }
    //   ],
    //   "projectsNotFound": [
    //     "string"
    //   ]
    // }


End_Procedure