CreateProject Xojo Example
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Dim rest As New Chilkat.Rest
Dim success As Boolean
Dim authAws As New Chilkat.AuthAws
authAws.AccessKey = "AWS_ACCESS_KEY"
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.)
authAws.Region = "us-west-2"
authAws.ServiceName = "codebuild"
// SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
success = rest.SetAuthAws(authAws)
// URL: https://codebuild.us-west-2.amazonaws.com/
// Use the same region as specified above.
success = rest.Connect("codebuild.us-west-2.amazonaws.com",443,True,True)
If (success <> True) Then
System.DebugLog("ConnectFailReason: " + Str(rest.ConnectFailReason))
System.DebugLog(rest.LastErrorText)
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
Dim json As New Chilkat.JsonObject
success = json.UpdateString("artifacts.artifactIdentifier","string")
success = json.UpdateString("artifacts.bucketOwnerAccess","string")
success = json.UpdateInt("artifacts.encryptionDisabled",123)
success = json.UpdateString("artifacts.location","string")
success = json.UpdateString("artifacts.name","string")
success = json.UpdateString("artifacts.namespaceType","string")
success = json.UpdateInt("artifacts.overrideArtifactName",123)
success = json.UpdateString("artifacts.packaging","string")
success = json.UpdateString("artifacts.path","string")
success = json.UpdateString("artifacts.type","string")
success = json.UpdateInt("badgeEnabled",123)
success = json.UpdateString("buildBatchConfig.batchReportMode","string")
success = json.UpdateInt("buildBatchConfig.combineArtifacts",123)
success = json.UpdateString("buildBatchConfig.restrictions.computeTypesAllowed[0]","string")
success = json.UpdateInt("buildBatchConfig.restrictions.maximumBuildsAllowed",123)
success = json.UpdateString("buildBatchConfig.serviceRole","string")
success = json.UpdateInt("buildBatchConfig.timeoutInMins",123)
success = json.UpdateString("cache.location","string")
success = json.UpdateString("cache.modes[0]","string")
success = json.UpdateString("cache.type","string")
success = json.UpdateInt("concurrentBuildLimit",123)
success = json.UpdateString("description","string")
success = json.UpdateString("encryptionKey","string")
success = json.UpdateString("environment.certificate","string")
success = json.UpdateString("environment.computeType","string")
success = json.UpdateString("environment.environmentVariables[0].name","string")
success = json.UpdateString("environment.environmentVariables[0].type","string")
success = json.UpdateString("environment.environmentVariables[0].value","string")
success = json.UpdateString("environment.image","string")
success = json.UpdateString("environment.imagePullCredentialsType","string")
success = json.UpdateInt("environment.privilegedMode",123)
success = json.UpdateString("environment.registryCredential.credential","string")
success = json.UpdateString("environment.registryCredential.credentialProvider","string")
success = json.UpdateString("environment.type","string")
success = json.UpdateString("fileSystemLocations[0].identifier","string")
success = json.UpdateString("fileSystemLocations[0].location","string")
success = json.UpdateString("fileSystemLocations[0].mountOptions","string")
success = json.UpdateString("fileSystemLocations[0].mountPoint","string")
success = json.UpdateString("fileSystemLocations[0].type","string")
success = json.UpdateString("logsConfig.cloudWatchLogs.groupName","string")
success = json.UpdateString("logsConfig.cloudWatchLogs.status","string")
success = json.UpdateString("logsConfig.cloudWatchLogs.streamName","string")
success = json.UpdateString("logsConfig.s3Logs.bucketOwnerAccess","string")
success = json.UpdateInt("logsConfig.s3Logs.encryptionDisabled",123)
success = json.UpdateString("logsConfig.s3Logs.location","string")
success = json.UpdateString("logsConfig.s3Logs.status","string")
success = json.UpdateString("name","string")
success = json.UpdateInt("queuedTimeoutInMinutes",123)
success = json.UpdateString("secondaryArtifacts[0].artifactIdentifier","string")
success = json.UpdateString("secondaryArtifacts[0].bucketOwnerAccess","string")
success = json.UpdateInt("secondaryArtifacts[0].encryptionDisabled",123)
success = json.UpdateString("secondaryArtifacts[0].location","string")
success = json.UpdateString("secondaryArtifacts[0].name","string")
success = json.UpdateString("secondaryArtifacts[0].namespaceType","string")
success = json.UpdateInt("secondaryArtifacts[0].overrideArtifactName",123)
success = json.UpdateString("secondaryArtifacts[0].packaging","string")
success = json.UpdateString("secondaryArtifacts[0].path","string")
success = json.UpdateString("secondaryArtifacts[0].type","string")
success = json.UpdateString("secondarySources[0].auth.resource","string")
success = json.UpdateString("secondarySources[0].auth.type","string")
success = json.UpdateString("secondarySources[0].buildspec","string")
success = json.UpdateString("secondarySources[0].buildStatusConfig.context","string")
success = json.UpdateString("secondarySources[0].buildStatusConfig.targetUrl","string")
success = json.UpdateInt("secondarySources[0].gitCloneDepth",123)
success = json.UpdateInt("secondarySources[0].gitSubmodulesConfig.fetchSubmodules",123)
success = json.UpdateInt("secondarySources[0].insecureSsl",123)
success = json.UpdateString("secondarySources[0].location","string")
success = json.UpdateInt("secondarySources[0].reportBuildStatus",123)
success = json.UpdateString("secondarySources[0].sourceIdentifier","string")
success = json.UpdateString("secondarySources[0].type","string")
success = json.UpdateString("secondarySourceVersions[0].sourceIdentifier","string")
success = json.UpdateString("secondarySourceVersions[0].sourceVersion","string")
success = json.UpdateString("serviceRole","string")
success = json.UpdateString("source.auth.resource","string")
success = json.UpdateString("source.auth.type","string")
success = json.UpdateString("source.buildspec","string")
success = json.UpdateString("source.buildStatusConfig.context","string")
success = json.UpdateString("source.buildStatusConfig.targetUrl","string")
success = json.UpdateInt("source.gitCloneDepth",123)
success = json.UpdateInt("source.gitSubmodulesConfig.fetchSubmodules",123)
success = json.UpdateInt("source.insecureSsl",123)
success = json.UpdateString("source.location","string")
success = json.UpdateInt("source.reportBuildStatus",123)
success = json.UpdateString("source.sourceIdentifier","string")
success = json.UpdateString("source.type","string")
success = json.UpdateString("sourceVersion","string")
success = json.UpdateString("tags[0].key","string")
success = json.UpdateString("tags[0].value","string")
success = json.UpdateInt("timeoutInMinutes",123)
success = json.UpdateString("vpcConfig.securityGroupIds[0]","string")
success = json.UpdateString("vpcConfig.subnets[0]","string")
success = 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"
// }
// }
success = rest.AddHeader("Content-Type","application/x-amz-json-1.1")
success = rest.AddHeader("X-Amz-Target","CodeBuild_20161006.CreateProject")
Dim sbRequestBody As New Chilkat.StringBuilder
success = json.EmitSb(sbRequestBody)
Dim sbResponseBody As New Chilkat.StringBuilder
success = rest.FullRequestSb("POST","/",sbRequestBody,sbResponseBody)
If (success <> True) Then
System.DebugLog(rest.LastErrorText)
Return
End If
Dim respStatusCode As Int32
respStatusCode = rest.ResponseStatusCode
System.DebugLog("response status code = " + Str(respStatusCode))
If (respStatusCode <> 200) Then
System.DebugLog("Response Header:")
System.DebugLog(rest.ResponseHeader)
System.DebugLog("Response Body:")
System.DebugLog(sbResponseBody.GetAsString())
Return
End If
Dim jResp As New Chilkat.JsonObject
success = jResp.LoadSb(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
Dim strVal As String
Dim name As String
Dim v_type As String
Dim value As String
Dim identifier As String
Dim location As String
Dim mountOptions As String
Dim mountPoint As String
Dim artifactIdentifier As String
Dim bucketOwnerAccess As String
Dim encryptionDisabled As Int32
Dim namespaceType As String
Dim overrideArtifactName As Int32
Dim packaging As String
Dim path As String
Dim authResource As String
Dim authType As String
Dim buildspec As String
Dim buildStatusConfigContext As String
Dim buildStatusConfigTargetUrl As String
Dim gitCloneDepth As Int32
Dim gitSubmodulesConfigFetchSubmodules As Int32
Dim insecureSsl As Int32
Dim reportBuildStatus As Int32
Dim sourceIdentifier As String
Dim sourceVersion As String
Dim key As String
Dim j As Int32
Dim count_j As Int32
Dim excludeMatchedPattern As Int32
Dim pattern As String
Dim Arn As String
Arn = jResp.StringOf("project.arn")
Dim ArtifactIdentifier As String
ArtifactIdentifier = jResp.StringOf("project.artifacts.artifactIdentifier")
Dim BucketOwnerAccess As String
BucketOwnerAccess = jResp.StringOf("project.artifacts.bucketOwnerAccess")
Dim EncryptionDisabled As Int32
EncryptionDisabled = jResp.IntOf("project.artifacts.encryptionDisabled")
Dim Location As String
Location = jResp.StringOf("project.artifacts.location")
Dim Name As String
Name = jResp.StringOf("project.artifacts.name")
Dim NamespaceType As String
NamespaceType = jResp.StringOf("project.artifacts.namespaceType")
Dim OverrideArtifactName As Int32
OverrideArtifactName = jResp.IntOf("project.artifacts.overrideArtifactName")
Dim Packaging As String
Packaging = jResp.StringOf("project.artifacts.packaging")
Dim Path As String
Path = jResp.StringOf("project.artifacts.path")
Dim v_Type As String
v_Type = jResp.StringOf("project.artifacts.type")
Dim BadgeEnabled As Int32
BadgeEnabled = jResp.IntOf("project.badge.badgeEnabled")
Dim BadgeRequestUrl As String
BadgeRequestUrl = jResp.StringOf("project.badge.badgeRequestUrl")
Dim BatchReportMode As String
BatchReportMode = jResp.StringOf("project.buildBatchConfig.batchReportMode")
Dim CombineArtifacts As Int32
CombineArtifacts = jResp.IntOf("project.buildBatchConfig.combineArtifacts")
Dim MaximumBuildsAllowed As Int32
MaximumBuildsAllowed = jResp.IntOf("project.buildBatchConfig.restrictions.maximumBuildsAllowed")
Dim ServiceRole As String
ServiceRole = jResp.StringOf("project.buildBatchConfig.serviceRole")
Dim TimeoutInMins As Int32
TimeoutInMins = jResp.IntOf("project.buildBatchConfig.timeoutInMins")
Dim CacheLocation As String
CacheLocation = jResp.StringOf("project.cache.location")
Dim CacheType As String
CacheType = jResp.StringOf("project.cache.type")
Dim ConcurrentBuildLimit As Int32
ConcurrentBuildLimit = jResp.IntOf("project.concurrentBuildLimit")
Dim Created As Int32
Created = jResp.IntOf("project.created")
Dim Description As String
Description = jResp.StringOf("project.description")
Dim EncryptionKey As String
EncryptionKey = jResp.StringOf("project.encryptionKey")
Dim Certificate As String
Certificate = jResp.StringOf("project.environment.certificate")
Dim ComputeType As String
ComputeType = jResp.StringOf("project.environment.computeType")
Dim Image As String
Image = jResp.StringOf("project.environment.image")
Dim ImagePullCredentialsType As String
ImagePullCredentialsType = jResp.StringOf("project.environment.imagePullCredentialsType")
Dim PrivilegedMode As Int32
PrivilegedMode = jResp.IntOf("project.environment.privilegedMode")
Dim Credential As String
Credential = jResp.StringOf("project.environment.registryCredential.credential")
Dim CredentialProvider As String
CredentialProvider = jResp.StringOf("project.environment.registryCredential.credentialProvider")
Dim EnvironmentType As String
EnvironmentType = jResp.StringOf("project.environment.type")
Dim LastModified As Int32
LastModified = jResp.IntOf("project.lastModified")
Dim GroupName As String
GroupName = jResp.StringOf("project.logsConfig.cloudWatchLogs.groupName")
Dim Status As String
Status = jResp.StringOf("project.logsConfig.cloudWatchLogs.status")
Dim StreamName As String
StreamName = jResp.StringOf("project.logsConfig.cloudWatchLogs.streamName")
Dim S3LogsBucketOwnerAccess As String
S3LogsBucketOwnerAccess = jResp.StringOf("project.logsConfig.s3Logs.bucketOwnerAccess")
Dim S3LogsEncryptionDisabled As Int32
S3LogsEncryptionDisabled = jResp.IntOf("project.logsConfig.s3Logs.encryptionDisabled")
Dim S3LogsLocation As String
S3LogsLocation = jResp.StringOf("project.logsConfig.s3Logs.location")
Dim S3LogsStatus As String
S3LogsStatus = jResp.StringOf("project.logsConfig.s3Logs.status")
Dim projectName As String
projectName = jResp.StringOf("project.name")
Dim ProjectVisibility As String
ProjectVisibility = jResp.StringOf("project.projectVisibility")
Dim PublicProjectAlias As String
PublicProjectAlias = jResp.StringOf("project.publicProjectAlias")
Dim QueuedTimeoutInMinutes As Int32
QueuedTimeoutInMinutes = jResp.IntOf("project.queuedTimeoutInMinutes")
Dim ResourceAccessRole As String
ResourceAccessRole = jResp.StringOf("project.resourceAccessRole")
Dim projectServiceRole As String
projectServiceRole = jResp.StringOf("project.serviceRole")
Dim Resource As String
Resource = jResp.StringOf("project.source.auth.resource")
Dim AuthType As String
AuthType = jResp.StringOf("project.source.auth.type")
Dim Buildspec As String
Buildspec = jResp.StringOf("project.source.buildspec")
Dim Context As String
Context = jResp.StringOf("project.source.buildStatusConfig.context")
Dim TargetUrl As String
TargetUrl = jResp.StringOf("project.source.buildStatusConfig.targetUrl")
Dim GitCloneDepth As Int32
GitCloneDepth = jResp.IntOf("project.source.gitCloneDepth")
Dim FetchSubmodules As Int32
FetchSubmodules = jResp.IntOf("project.source.gitSubmodulesConfig.fetchSubmodules")
Dim InsecureSsl As Int32
InsecureSsl = jResp.IntOf("project.source.insecureSsl")
Dim SourceLocation As String
SourceLocation = jResp.StringOf("project.source.location")
Dim ReportBuildStatus As Int32
ReportBuildStatus = jResp.IntOf("project.source.reportBuildStatus")
Dim SourceIdentifier As String
SourceIdentifier = jResp.StringOf("project.source.sourceIdentifier")
Dim SourceType As String
SourceType = jResp.StringOf("project.source.type")
Dim SourceVersion As String
SourceVersion = jResp.StringOf("project.sourceVersion")
Dim TimeoutInMinutes As Int32
TimeoutInMinutes = jResp.IntOf("project.timeoutInMinutes")
Dim VpcId As String
VpcId = jResp.StringOf("project.vpcConfig.vpcId")
Dim BranchFilter As String
BranchFilter = jResp.StringOf("project.webhook.branchFilter")
Dim BuildType As String
BuildType = jResp.StringOf("project.webhook.buildType")
Dim LastModifiedSecret As Int32
LastModifiedSecret = jResp.IntOf("project.webhook.lastModifiedSecret")
Dim PayloadUrl As String
PayloadUrl = jResp.StringOf("project.webhook.payloadUrl")
Dim Secret As String
Secret = jResp.StringOf("project.webhook.secret")
Dim v_Url As String
v_Url = jResp.StringOf("project.webhook.url")
Dim i As Int32
i = 0
Dim count_i As Int32
count_i = jResp.SizeOfArray("project.buildBatchConfig.restrictions.computeTypesAllowed")
While i < count_i
jResp.I = i
strVal = jResp.StringOf("project.buildBatchConfig.restrictions.computeTypesAllowed[i]")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.cache.modes")
While i < count_i
jResp.I = i
strVal = jResp.StringOf("project.cache.modes[i]")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.environment.environmentVariables")
While i < count_i
jResp.I = i
name = jResp.StringOf("project.environment.environmentVariables[i].name")
v_type = jResp.StringOf("project.environment.environmentVariables[i].type")
value = jResp.StringOf("project.environment.environmentVariables[i].value")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.fileSystemLocations")
While i < count_i
jResp.I = i
identifier = jResp.StringOf("project.fileSystemLocations[i].identifier")
location = jResp.StringOf("project.fileSystemLocations[i].location")
mountOptions = jResp.StringOf("project.fileSystemLocations[i].mountOptions")
mountPoint = jResp.StringOf("project.fileSystemLocations[i].mountPoint")
v_type = jResp.StringOf("project.fileSystemLocations[i].type")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.secondaryArtifacts")
While i < count_i
jResp.I = i
artifactIdentifier = jResp.StringOf("project.secondaryArtifacts[i].artifactIdentifier")
bucketOwnerAccess = jResp.StringOf("project.secondaryArtifacts[i].bucketOwnerAccess")
encryptionDisabled = jResp.IntOf("project.secondaryArtifacts[i].encryptionDisabled")
location = jResp.StringOf("project.secondaryArtifacts[i].location")
name = jResp.StringOf("project.secondaryArtifacts[i].name")
namespaceType = jResp.StringOf("project.secondaryArtifacts[i].namespaceType")
overrideArtifactName = jResp.IntOf("project.secondaryArtifacts[i].overrideArtifactName")
packaging = jResp.StringOf("project.secondaryArtifacts[i].packaging")
path = jResp.StringOf("project.secondaryArtifacts[i].path")
v_type = jResp.StringOf("project.secondaryArtifacts[i].type")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.secondarySources")
While i < count_i
jResp.I = i
authResource = jResp.StringOf("project.secondarySources[i].auth.resource")
authType = jResp.StringOf("project.secondarySources[i].auth.type")
buildspec = jResp.StringOf("project.secondarySources[i].buildspec")
buildStatusConfigContext = jResp.StringOf("project.secondarySources[i].buildStatusConfig.context")
buildStatusConfigTargetUrl = jResp.StringOf("project.secondarySources[i].buildStatusConfig.targetUrl")
gitCloneDepth = jResp.IntOf("project.secondarySources[i].gitCloneDepth")
gitSubmodulesConfigFetchSubmodules = jResp.IntOf("project.secondarySources[i].gitSubmodulesConfig.fetchSubmodules")
insecureSsl = jResp.IntOf("project.secondarySources[i].insecureSsl")
location = jResp.StringOf("project.secondarySources[i].location")
reportBuildStatus = jResp.IntOf("project.secondarySources[i].reportBuildStatus")
sourceIdentifier = jResp.StringOf("project.secondarySources[i].sourceIdentifier")
v_type = jResp.StringOf("project.secondarySources[i].type")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.secondarySourceVersions")
While i < count_i
jResp.I = i
sourceIdentifier = jResp.StringOf("project.secondarySourceVersions[i].sourceIdentifier")
sourceVersion = jResp.StringOf("project.secondarySourceVersions[i].sourceVersion")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.tags")
While i < count_i
jResp.I = i
key = jResp.StringOf("project.tags[i].key")
value = jResp.StringOf("project.tags[i].value")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.vpcConfig.securityGroupIds")
While i < count_i
jResp.I = i
strVal = jResp.StringOf("project.vpcConfig.securityGroupIds[i]")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.vpcConfig.subnets")
While i < count_i
jResp.I = i
strVal = jResp.StringOf("project.vpcConfig.subnets[i]")
i = i + 1
Wend
i = 0
count_i = jResp.SizeOfArray("project.webhook.filterGroups")
While i < count_i
jResp.I = i
j = 0
count_j = jResp.SizeOfArray("project.webhook.filterGroups[i]")
While j < count_j
jResp.J = j
excludeMatchedPattern = jResp.IntOf("project.webhook.filterGroups[i][j].excludeMatchedPattern")
pattern = jResp.StringOf("project.webhook.filterGroups[i][j].pattern")
v_type = jResp.StringOf("project.webhook.filterGroups[i][j].type")
j = j + 1
Wend
i = i + 1
Wend
// 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"
// }
// }
// }