UpdateProject PowerBuilder Example
integer li_rc
oleobject loo_Rest
integer li_Success
oleobject loo_AuthAws
oleobject loo_Json
oleobject loo_SbRequestBody
oleobject loo_SbResponseBody
integer li_RespStatusCode
oleobject loo_JResp
string ls_StrVal
string ls_Name
string ls_V_type
string ls_Value
string ls_Identifier
string ls_Location
string ls_MountOptions
string ls_MountPoint
string ls_ArtifactIdentifier
string ls_BucketOwnerAccess
integer li_EncryptionDisabled
string ls_NamespaceType
integer li_OverrideArtifactName
string ls_Packaging
string ls_Path
string ls_AuthResource
string ls_AuthType
string ls_Buildspec
string ls_BuildStatusConfigContext
string ls_BuildStatusConfigTargetUrl
integer li_GitCloneDepth
integer li_GitSubmodulesConfigFetchSubmodules
integer li_InsecureSsl
integer li_ReportBuildStatus
string ls_SourceIdentifier
string ls_SourceVersion
string ls_Key
integer j
integer li_Count_j
integer li_ExcludeMatchedPattern
string ls_Pattern
string ls_Arn
string ls_ArtifactIdentifier
string ls_BucketOwnerAccess
integer li_EncryptionDisabled
string ls_Location
string ls_Name
string ls_NamespaceType
integer li_OverrideArtifactName
string ls_Packaging
string ls_Path
string ls_V_Type
integer li_BadgeEnabled
string ls_BadgeRequestUrl
string ls_BatchReportMode
integer li_CombineArtifacts
integer li_MaximumBuildsAllowed
string ls_ServiceRole
integer li_TimeoutInMins
string ls_CacheLocation
string ls_CacheType
integer li_ConcurrentBuildLimit
integer li_Created
string ls_Description
string ls_EncryptionKey
string ls_Certificate
string ls_ComputeType
string ls_Image
string ls_ImagePullCredentialsType
integer li_PrivilegedMode
string ls_Credential
string ls_CredentialProvider
string ls_EnvironmentType
integer li_LastModified
string ls_GroupName
string ls_Status
string ls_StreamName
string ls_S3LogsBucketOwnerAccess
integer li_S3LogsEncryptionDisabled
string ls_S3LogsLocation
string ls_S3LogsStatus
string ls_ProjectName
string ls_ProjectVisibility
string ls_PublicProjectAlias
integer li_QueuedTimeoutInMinutes
string ls_ResourceAccessRole
string ls_ProjectServiceRole
string ls_Resource
string ls_AuthType
string ls_Buildspec
string ls_Context
string ls_TargetUrl
integer li_GitCloneDepth
integer li_FetchSubmodules
integer li_InsecureSsl
string ls_SourceLocation
integer li_ReportBuildStatus
string ls_SourceIdentifier
string ls_SourceType
string ls_SourceVersion
integer li_TimeoutInMinutes
string ls_VpcId
string ls_BranchFilter
string ls_BuildType
integer li_LastModifiedSecret
string ls_PayloadUrl
string ls_Secret
string ls_V_Url
integer i
integer li_Count_i
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loo_Rest = create oleobject
li_rc = loo_Rest.ConnectToNewObject("Chilkat_9_5_0.Rest")
if li_rc < 0 then
destroy loo_Rest
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_AuthAws = create oleobject
li_rc = loo_AuthAws.ConnectToNewObject("Chilkat_9_5_0.AuthAws")
loo_AuthAws.AccessKey = "AWS_ACCESS_KEY"
loo_AuthAws.SecretKey = "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.)
loo_AuthAws.Region = "us-west-2"
loo_AuthAws.ServiceName = "codebuild"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
loo_Rest.SetAuthAws(loo_AuthAws)
// URL: https://codebuild.us-west-2.amazonaws.com/
// Use the same region as specified above.
li_Success = loo_Rest.Connect("codebuild.us-west-2.amazonaws.com",443,1,1)
if li_Success <> 1 then
Write-Debug "ConnectFailReason: " + string(loo_Rest.ConnectFailReason)
Write-Debug loo_Rest.LastErrorText
destroy loo_Rest
destroy loo_AuthAws
return
end if
// 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
loo_Json = create oleobject
li_rc = loo_Json.ConnectToNewObject("Chilkat_9_5_0.JsonObject")
loo_Json.UpdateString("artifacts.artifactIdentifier","string")
loo_Json.UpdateString("artifacts.bucketOwnerAccess","string")
loo_Json.UpdateInt("artifacts.encryptionDisabled",123)
loo_Json.UpdateString("artifacts.location","string")
loo_Json.UpdateString("artifacts.name","string")
loo_Json.UpdateString("artifacts.namespaceType","string")
loo_Json.UpdateInt("artifacts.overrideArtifactName",123)
loo_Json.UpdateString("artifacts.packaging","string")
loo_Json.UpdateString("artifacts.path","string")
loo_Json.UpdateString("artifacts.type","string")
loo_Json.UpdateInt("badgeEnabled",123)
loo_Json.UpdateString("buildBatchConfig.batchReportMode","string")
loo_Json.UpdateInt("buildBatchConfig.combineArtifacts",123)
loo_Json.UpdateString("buildBatchConfig.restrictions.computeTypesAllowed[0]","string")
loo_Json.UpdateInt("buildBatchConfig.restrictions.maximumBuildsAllowed",123)
loo_Json.UpdateString("buildBatchConfig.serviceRole","string")
loo_Json.UpdateInt("buildBatchConfig.timeoutInMins",123)
loo_Json.UpdateString("cache.location","string")
loo_Json.UpdateString("cache.modes[0]","string")
loo_Json.UpdateString("cache.type","string")
loo_Json.UpdateInt("concurrentBuildLimit",123)
loo_Json.UpdateString("description","string")
loo_Json.UpdateString("encryptionKey","string")
loo_Json.UpdateString("environment.certificate","string")
loo_Json.UpdateString("environment.computeType","string")
loo_Json.UpdateString("environment.environmentVariables[0].name","string")
loo_Json.UpdateString("environment.environmentVariables[0].type","string")
loo_Json.UpdateString("environment.environmentVariables[0].value","string")
loo_Json.UpdateString("environment.image","string")
loo_Json.UpdateString("environment.imagePullCredentialsType","string")
loo_Json.UpdateInt("environment.privilegedMode",123)
loo_Json.UpdateString("environment.registryCredential.credential","string")
loo_Json.UpdateString("environment.registryCredential.credentialProvider","string")
loo_Json.UpdateString("environment.type","string")
loo_Json.UpdateString("fileSystemLocations[0].identifier","string")
loo_Json.UpdateString("fileSystemLocations[0].location","string")
loo_Json.UpdateString("fileSystemLocations[0].mountOptions","string")
loo_Json.UpdateString("fileSystemLocations[0].mountPoint","string")
loo_Json.UpdateString("fileSystemLocations[0].type","string")
loo_Json.UpdateString("logsConfig.cloudWatchLogs.groupName","string")
loo_Json.UpdateString("logsConfig.cloudWatchLogs.status","string")
loo_Json.UpdateString("logsConfig.cloudWatchLogs.streamName","string")
loo_Json.UpdateString("logsConfig.s3Logs.bucketOwnerAccess","string")
loo_Json.UpdateInt("logsConfig.s3Logs.encryptionDisabled",123)
loo_Json.UpdateString("logsConfig.s3Logs.location","string")
loo_Json.UpdateString("logsConfig.s3Logs.status","string")
loo_Json.UpdateString("name","string")
loo_Json.UpdateInt("queuedTimeoutInMinutes",123)
loo_Json.UpdateString("secondaryArtifacts[0].artifactIdentifier","string")
loo_Json.UpdateString("secondaryArtifacts[0].bucketOwnerAccess","string")
loo_Json.UpdateInt("secondaryArtifacts[0].encryptionDisabled",123)
loo_Json.UpdateString("secondaryArtifacts[0].location","string")
loo_Json.UpdateString("secondaryArtifacts[0].name","string")
loo_Json.UpdateString("secondaryArtifacts[0].namespaceType","string")
loo_Json.UpdateInt("secondaryArtifacts[0].overrideArtifactName",123)
loo_Json.UpdateString("secondaryArtifacts[0].packaging","string")
loo_Json.UpdateString("secondaryArtifacts[0].path","string")
loo_Json.UpdateString("secondaryArtifacts[0].type","string")
loo_Json.UpdateString("secondarySources[0].auth.resource","string")
loo_Json.UpdateString("secondarySources[0].auth.type","string")
loo_Json.UpdateString("secondarySources[0].buildspec","string")
loo_Json.UpdateString("secondarySources[0].buildStatusConfig.context","string")
loo_Json.UpdateString("secondarySources[0].buildStatusConfig.targetUrl","string")
loo_Json.UpdateInt("secondarySources[0].gitCloneDepth",123)
loo_Json.UpdateInt("secondarySources[0].gitSubmodulesConfig.fetchSubmodules",123)
loo_Json.UpdateInt("secondarySources[0].insecureSsl",123)
loo_Json.UpdateString("secondarySources[0].location","string")
loo_Json.UpdateInt("secondarySources[0].reportBuildStatus",123)
loo_Json.UpdateString("secondarySources[0].sourceIdentifier","string")
loo_Json.UpdateString("secondarySources[0].type","string")
loo_Json.UpdateString("secondarySourceVersions[0].sourceIdentifier","string")
loo_Json.UpdateString("secondarySourceVersions[0].sourceVersion","string")
loo_Json.UpdateString("serviceRole","string")
loo_Json.UpdateString("source.auth.resource","string")
loo_Json.UpdateString("source.auth.type","string")
loo_Json.UpdateString("source.buildspec","string")
loo_Json.UpdateString("source.buildStatusConfig.context","string")
loo_Json.UpdateString("source.buildStatusConfig.targetUrl","string")
loo_Json.UpdateInt("source.gitCloneDepth",123)
loo_Json.UpdateInt("source.gitSubmodulesConfig.fetchSubmodules",123)
loo_Json.UpdateInt("source.insecureSsl",123)
loo_Json.UpdateString("source.location","string")
loo_Json.UpdateInt("source.reportBuildStatus",123)
loo_Json.UpdateString("source.sourceIdentifier","string")
loo_Json.UpdateString("source.type","string")
loo_Json.UpdateString("sourceVersion","string")
loo_Json.UpdateString("tags[0].key","string")
loo_Json.UpdateString("tags[0].value","string")
loo_Json.UpdateInt("timeoutInMinutes",123)
loo_Json.UpdateString("vpcConfig.securityGroupIds[0]","string")
loo_Json.UpdateString("vpcConfig.subnets[0]","string")
loo_Json.UpdateString("vpcConfig.vpcId","string")
// 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"
// }
// }
loo_Rest.AddHeader("Content-Type","application/x-amz-json-1.1")
loo_Rest.AddHeader("X-Amz-Target","CodeBuild_20161006.UpdateProject")
loo_SbRequestBody = create oleobject
li_rc = loo_SbRequestBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")
loo_Json.EmitSb(loo_SbRequestBody)
loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")
li_Success = loo_Rest.FullRequestSb("POST","/",loo_SbRequestBody,loo_SbResponseBody)
if li_Success <> 1 then
Write-Debug loo_Rest.LastErrorText
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
return
end if
li_RespStatusCode = loo_Rest.ResponseStatusCode
Write-Debug "response status code = " + string(li_RespStatusCode)
if li_RespStatusCode <> 200 then
Write-Debug "Response Header:"
Write-Debug loo_Rest.ResponseHeader
Write-Debug "Response Body:"
Write-Debug loo_SbResponseBody.GetAsString()
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
return
end if
loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")
loo_JResp.LoadSb(loo_SbResponseBody)
// 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
ls_Arn = loo_JResp.StringOf("project.arn")
ls_ArtifactIdentifier = loo_JResp.StringOf("project.artifacts.artifactIdentifier")
ls_BucketOwnerAccess = loo_JResp.StringOf("project.artifacts.bucketOwnerAccess")
li_EncryptionDisabled = loo_JResp.IntOf("project.artifacts.encryptionDisabled")
ls_Location = loo_JResp.StringOf("project.artifacts.location")
ls_Name = loo_JResp.StringOf("project.artifacts.name")
ls_NamespaceType = loo_JResp.StringOf("project.artifacts.namespaceType")
li_OverrideArtifactName = loo_JResp.IntOf("project.artifacts.overrideArtifactName")
ls_Packaging = loo_JResp.StringOf("project.artifacts.packaging")
ls_Path = loo_JResp.StringOf("project.artifacts.path")
ls_V_Type = loo_JResp.StringOf("project.artifacts.type")
li_BadgeEnabled = loo_JResp.IntOf("project.badge.badgeEnabled")
ls_BadgeRequestUrl = loo_JResp.StringOf("project.badge.badgeRequestUrl")
ls_BatchReportMode = loo_JResp.StringOf("project.buildBatchConfig.batchReportMode")
li_CombineArtifacts = loo_JResp.IntOf("project.buildBatchConfig.combineArtifacts")
li_MaximumBuildsAllowed = loo_JResp.IntOf("project.buildBatchConfig.restrictions.maximumBuildsAllowed")
ls_ServiceRole = loo_JResp.StringOf("project.buildBatchConfig.serviceRole")
li_TimeoutInMins = loo_JResp.IntOf("project.buildBatchConfig.timeoutInMins")
ls_CacheLocation = loo_JResp.StringOf("project.cache.location")
ls_CacheType = loo_JResp.StringOf("project.cache.type")
li_ConcurrentBuildLimit = loo_JResp.IntOf("project.concurrentBuildLimit")
li_Created = loo_JResp.IntOf("project.created")
ls_Description = loo_JResp.StringOf("project.description")
ls_EncryptionKey = loo_JResp.StringOf("project.encryptionKey")
ls_Certificate = loo_JResp.StringOf("project.environment.certificate")
ls_ComputeType = loo_JResp.StringOf("project.environment.computeType")
ls_Image = loo_JResp.StringOf("project.environment.image")
ls_ImagePullCredentialsType = loo_JResp.StringOf("project.environment.imagePullCredentialsType")
li_PrivilegedMode = loo_JResp.IntOf("project.environment.privilegedMode")
ls_Credential = loo_JResp.StringOf("project.environment.registryCredential.credential")
ls_CredentialProvider = loo_JResp.StringOf("project.environment.registryCredential.credentialProvider")
ls_EnvironmentType = loo_JResp.StringOf("project.environment.type")
li_LastModified = loo_JResp.IntOf("project.lastModified")
ls_GroupName = loo_JResp.StringOf("project.logsConfig.cloudWatchLogs.groupName")
ls_Status = loo_JResp.StringOf("project.logsConfig.cloudWatchLogs.status")
ls_StreamName = loo_JResp.StringOf("project.logsConfig.cloudWatchLogs.streamName")
ls_S3LogsBucketOwnerAccess = loo_JResp.StringOf("project.logsConfig.s3Logs.bucketOwnerAccess")
li_S3LogsEncryptionDisabled = loo_JResp.IntOf("project.logsConfig.s3Logs.encryptionDisabled")
ls_S3LogsLocation = loo_JResp.StringOf("project.logsConfig.s3Logs.location")
ls_S3LogsStatus = loo_JResp.StringOf("project.logsConfig.s3Logs.status")
ls_ProjectName = loo_JResp.StringOf("project.name")
ls_ProjectVisibility = loo_JResp.StringOf("project.projectVisibility")
ls_PublicProjectAlias = loo_JResp.StringOf("project.publicProjectAlias")
li_QueuedTimeoutInMinutes = loo_JResp.IntOf("project.queuedTimeoutInMinutes")
ls_ResourceAccessRole = loo_JResp.StringOf("project.resourceAccessRole")
ls_ProjectServiceRole = loo_JResp.StringOf("project.serviceRole")
ls_Resource = loo_JResp.StringOf("project.source.auth.resource")
ls_AuthType = loo_JResp.StringOf("project.source.auth.type")
ls_Buildspec = loo_JResp.StringOf("project.source.buildspec")
ls_Context = loo_JResp.StringOf("project.source.buildStatusConfig.context")
ls_TargetUrl = loo_JResp.StringOf("project.source.buildStatusConfig.targetUrl")
li_GitCloneDepth = loo_JResp.IntOf("project.source.gitCloneDepth")
li_FetchSubmodules = loo_JResp.IntOf("project.source.gitSubmodulesConfig.fetchSubmodules")
li_InsecureSsl = loo_JResp.IntOf("project.source.insecureSsl")
ls_SourceLocation = loo_JResp.StringOf("project.source.location")
li_ReportBuildStatus = loo_JResp.IntOf("project.source.reportBuildStatus")
ls_SourceIdentifier = loo_JResp.StringOf("project.source.sourceIdentifier")
ls_SourceType = loo_JResp.StringOf("project.source.type")
ls_SourceVersion = loo_JResp.StringOf("project.sourceVersion")
li_TimeoutInMinutes = loo_JResp.IntOf("project.timeoutInMinutes")
ls_VpcId = loo_JResp.StringOf("project.vpcConfig.vpcId")
ls_BranchFilter = loo_JResp.StringOf("project.webhook.branchFilter")
ls_BuildType = loo_JResp.StringOf("project.webhook.buildType")
li_LastModifiedSecret = loo_JResp.IntOf("project.webhook.lastModifiedSecret")
ls_PayloadUrl = loo_JResp.StringOf("project.webhook.payloadUrl")
ls_Secret = loo_JResp.StringOf("project.webhook.secret")
ls_V_Url = loo_JResp.StringOf("project.webhook.url")
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.buildBatchConfig.restrictions.computeTypesAllowed")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("project.buildBatchConfig.restrictions.computeTypesAllowed[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.cache.modes")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("project.cache.modes[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.environment.environmentVariables")
do while i < li_Count_i
loo_JResp.I = i
ls_Name = loo_JResp.StringOf("project.environment.environmentVariables[i].name")
ls_V_type = loo_JResp.StringOf("project.environment.environmentVariables[i].type")
ls_Value = loo_JResp.StringOf("project.environment.environmentVariables[i].value")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.fileSystemLocations")
do while i < li_Count_i
loo_JResp.I = i
ls_Identifier = loo_JResp.StringOf("project.fileSystemLocations[i].identifier")
ls_Location = loo_JResp.StringOf("project.fileSystemLocations[i].location")
ls_MountOptions = loo_JResp.StringOf("project.fileSystemLocations[i].mountOptions")
ls_MountPoint = loo_JResp.StringOf("project.fileSystemLocations[i].mountPoint")
ls_V_type = loo_JResp.StringOf("project.fileSystemLocations[i].type")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.secondaryArtifacts")
do while i < li_Count_i
loo_JResp.I = i
ls_ArtifactIdentifier = loo_JResp.StringOf("project.secondaryArtifacts[i].artifactIdentifier")
ls_BucketOwnerAccess = loo_JResp.StringOf("project.secondaryArtifacts[i].bucketOwnerAccess")
li_EncryptionDisabled = loo_JResp.IntOf("project.secondaryArtifacts[i].encryptionDisabled")
ls_Location = loo_JResp.StringOf("project.secondaryArtifacts[i].location")
ls_Name = loo_JResp.StringOf("project.secondaryArtifacts[i].name")
ls_NamespaceType = loo_JResp.StringOf("project.secondaryArtifacts[i].namespaceType")
li_OverrideArtifactName = loo_JResp.IntOf("project.secondaryArtifacts[i].overrideArtifactName")
ls_Packaging = loo_JResp.StringOf("project.secondaryArtifacts[i].packaging")
ls_Path = loo_JResp.StringOf("project.secondaryArtifacts[i].path")
ls_V_type = loo_JResp.StringOf("project.secondaryArtifacts[i].type")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.secondarySources")
do while i < li_Count_i
loo_JResp.I = i
ls_AuthResource = loo_JResp.StringOf("project.secondarySources[i].auth.resource")
ls_AuthType = loo_JResp.StringOf("project.secondarySources[i].auth.type")
ls_Buildspec = loo_JResp.StringOf("project.secondarySources[i].buildspec")
ls_BuildStatusConfigContext = loo_JResp.StringOf("project.secondarySources[i].buildStatusConfig.context")
ls_BuildStatusConfigTargetUrl = loo_JResp.StringOf("project.secondarySources[i].buildStatusConfig.targetUrl")
li_GitCloneDepth = loo_JResp.IntOf("project.secondarySources[i].gitCloneDepth")
li_GitSubmodulesConfigFetchSubmodules = loo_JResp.IntOf("project.secondarySources[i].gitSubmodulesConfig.fetchSubmodules")
li_InsecureSsl = loo_JResp.IntOf("project.secondarySources[i].insecureSsl")
ls_Location = loo_JResp.StringOf("project.secondarySources[i].location")
li_ReportBuildStatus = loo_JResp.IntOf("project.secondarySources[i].reportBuildStatus")
ls_SourceIdentifier = loo_JResp.StringOf("project.secondarySources[i].sourceIdentifier")
ls_V_type = loo_JResp.StringOf("project.secondarySources[i].type")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.secondarySourceVersions")
do while i < li_Count_i
loo_JResp.I = i
ls_SourceIdentifier = loo_JResp.StringOf("project.secondarySourceVersions[i].sourceIdentifier")
ls_SourceVersion = loo_JResp.StringOf("project.secondarySourceVersions[i].sourceVersion")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.tags")
do while i < li_Count_i
loo_JResp.I = i
ls_Key = loo_JResp.StringOf("project.tags[i].key")
ls_Value = loo_JResp.StringOf("project.tags[i].value")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.vpcConfig.securityGroupIds")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("project.vpcConfig.securityGroupIds[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.vpcConfig.subnets")
do while i < li_Count_i
loo_JResp.I = i
ls_StrVal = loo_JResp.StringOf("project.vpcConfig.subnets[i]")
i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("project.webhook.filterGroups")
do while i < li_Count_i
loo_JResp.I = i
j = 0
li_Count_j = loo_JResp.SizeOfArray("project.webhook.filterGroups[i]")
do while j < li_Count_j
loo_JResp.J = j
li_ExcludeMatchedPattern = loo_JResp.IntOf("project.webhook.filterGroups[i][j].excludeMatchedPattern")
ls_Pattern = loo_JResp.StringOf("project.webhook.filterGroups[i][j].pattern")
ls_V_type = loo_JResp.StringOf("project.webhook.filterGroups[i][j].type")
j = j + 1
loop
i = i + 1
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"
// }
// }
// }
destroy loo_Rest
destroy loo_AuthAws
destroy loo_Json
destroy loo_SbRequestBody
destroy loo_SbResponseBody
destroy loo_JResp