Chilkat Online Tools

BatchGetDeploymentGroups DataFlex Example

AWS CodeDeploy

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
    Integer iEnabled
    Integer iIgnorePollAlarmFailure
    String sApplicationName
    Integer iAutoRollbackConfigurationEnabled
    String sActionOnTimeout
    Integer iWaitTimeInMinutes
    String sAction
    String sTerminateBlueInstancesOnDeploymentSuccessAction
    Integer iTerminationWaitTimeInMinutes
    String sComputePlatform
    String sDeploymentConfigName
    String sDeploymentGroupId
    String sDeploymentGroupName
    String sDeploymentOption
    String sDeploymentType
    Integer iCreateTime
    String sDeploymentId
    Integer iEndTime
    String sStatus
    Integer iLastSuccessfulDeploymentCreateTime
    String sLastSuccessfulDeploymentDeploymentId
    Integer iLastSuccessfulDeploymentEndTime
    String sLastSuccessfulDeploymentStatus
    String sOutdatedInstancesStrategy
    String sServiceRoleArn
    String sContent
    String sSha256
    String sCommitId
    String sRepository
    String sRevisionType
    String sBucket
    String sBundleType
    String sETag
    String sKey
    String sVersion
    String sStringContent
    String sStringSha256
    Integer j
    Integer iCount_j
    String sName
    String sStrVal
    String sHook
    String sV_Type
    String sValue
    Integer k
    Integer iCount_k
    String sClusterName
    String sServiceName
    String sTriggerName
    String sTriggerTargetArn
    String sErrorMessage
    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 "codedeploy"
    // 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://codedeploy.us-west-2.amazonaws.com/
    // Use the same region as specified above.
    Get ComConnect Of hoRest "codedeploy.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 "applicationName" "string" To iSuccess
    Get ComUpdateString Of hoJson "deploymentGroupNames[0]" "string" To iSuccess

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

    // {
    //   "applicationName": "string",
    //   "deploymentGroupNames": [
    //     "string"
    //   ]
    // }

    Get ComAddHeader Of hoRest "Content-Type" "application/x-amz-json-1.1" To iSuccess
    Get ComAddHeader Of hoRest "X-Amz-Target" "CodeDeploy_20141006.BatchGetDeploymentGroups" 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 "errorMessage" To sErrorMessage
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].alarmConfiguration.enabled" To iEnabled
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].alarmConfiguration.ignorePollAlarmFailure" To iIgnorePollAlarmFailure
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].applicationName" To sApplicationName
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].autoRollbackConfiguration.enabled" To iAutoRollbackConfigurationEnabled
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].blueGreenDeploymentConfiguration.deploymentReadyOption.actionOnTimeout" To sActionOnTimeout
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].blueGreenDeploymentConfiguration.deploymentReadyOption.waitTimeInMinutes" To iWaitTimeInMinutes
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].blueGreenDeploymentConfiguration.greenFleetProvisioningOption.action" To sAction
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].blueGreenDeploymentConfiguration.terminateBlueInstancesOnDeploymentSuccess.action" To sTerminateBlueInstancesOnDeploymentSuccessAction
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].blueGreenDeploymentConfiguration.terminateBlueInstancesOnDeploymentSuccess.terminationWaitTimeInMinutes" To iTerminationWaitTimeInMinutes
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].computePlatform" To sComputePlatform
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].deploymentConfigName" To sDeploymentConfigName
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].deploymentGroupId" To sDeploymentGroupId
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].deploymentGroupName" To sDeploymentGroupName
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].deploymentStyle.deploymentOption" To sDeploymentOption
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].deploymentStyle.deploymentType" To sDeploymentType
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].lastAttemptedDeployment.createTime" To iCreateTime
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].lastAttemptedDeployment.deploymentId" To sDeploymentId
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].lastAttemptedDeployment.endTime" To iEndTime
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].lastAttemptedDeployment.status" To sStatus
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].lastSuccessfulDeployment.createTime" To iLastSuccessfulDeploymentCreateTime
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].lastSuccessfulDeployment.deploymentId" To sLastSuccessfulDeploymentDeploymentId
        Get ComIntOf Of hoJResp "deploymentGroupsInfo[i].lastSuccessfulDeployment.endTime" To iLastSuccessfulDeploymentEndTime
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].lastSuccessfulDeployment.status" To sLastSuccessfulDeploymentStatus
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].outdatedInstancesStrategy" To sOutdatedInstancesStrategy
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].serviceRoleArn" To sServiceRoleArn
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.appSpecContent.content" To sContent
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.appSpecContent.sha256" To sSha256
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.gitHubLocation.commitId" To sCommitId
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.gitHubLocation.repository" To sRepository
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.revisionType" To sRevisionType
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.s3Location.bucket" To sBucket
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.s3Location.bundleType" To sBundleType
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.s3Location.eTag" To sETag
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.s3Location.key" To sKey
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.s3Location.version" To sVersion
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.string.content" To sStringContent
        Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].targetRevision.string.sha256" To sStringSha256
        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].alarmConfiguration.alarms" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].alarmConfiguration.alarms[j].name" To sName
            Move (j + 1) To j
        Loop

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

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].autoScalingGroups" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].autoScalingGroups[j].hook" To sHook
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].autoScalingGroups[j].name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].ec2TagFilters" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ec2TagFilters[j].Key" To sKey
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ec2TagFilters[j].Type" To sV_Type
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ec2TagFilters[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].ec2TagSet.ec2TagSetList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].ec2TagSet.ec2TagSetList[j]" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ec2TagSet.ec2TagSetList[j][k].Key" To sKey
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ec2TagSet.ec2TagSetList[j][k].Type" To sV_Type
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ec2TagSet.ec2TagSetList[j][k].Value" To sValue
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].ecsServices" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ecsServices[j].clusterName" To sClusterName
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].ecsServices[j].serviceName" To sServiceName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.elbInfoList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.elbInfoList[j].name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupInfoList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupInfoList[j].name" To sName
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList[j].prodTrafficRoute.listenerArns" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList[j].prodTrafficRoute.listenerArns[k]" To sStrVal
                Move (k + 1) To k
            Loop

            Move 0 To k
            Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList[j].targetGroups" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList[j].targetGroups[k].name" To sName
                Move (k + 1) To k
            Loop

            Move 0 To k
            Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList[j].testTrafficRoute.listenerArns" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].loadBalancerInfo.targetGroupPairInfoList[j].testTrafficRoute.listenerArns[k]" To sStrVal
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].onPremisesInstanceTagFilters" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].onPremisesInstanceTagFilters[j].Key" To sKey
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].onPremisesInstanceTagFilters[j].Type" To sV_Type
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].onPremisesInstanceTagFilters[j].Value" To sValue
            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].onPremisesTagSet.onPremisesTagSetList" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].onPremisesTagSet.onPremisesTagSetList[j]" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].onPremisesTagSet.onPremisesTagSetList[j][k].Key" To sKey
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].onPremisesTagSet.onPremisesTagSetList[j][k].Type" To sV_Type
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].onPremisesTagSet.onPremisesTagSetList[j][k].Value" To sValue
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move 0 To j
        Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].triggerConfigurations" To iCount_j
        While (j < iCount_j)
            Set ComJ Of hoJResp To j
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].triggerConfigurations[j].triggerName" To sTriggerName
            Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].triggerConfigurations[j].triggerTargetArn" To sTriggerTargetArn
            Move 0 To k
            Get ComSizeOfArray Of hoJResp "deploymentGroupsInfo[i].triggerConfigurations[j].triggerEvents" To iCount_k
            While (k < iCount_k)
                Set ComK Of hoJResp To k
                Get ComStringOf Of hoJResp "deploymentGroupsInfo[i].triggerConfigurations[j].triggerEvents[k]" To sStrVal
                Move (k + 1) To k
            Loop

            Move (j + 1) To j
        Loop

        Move (i + 1) To i
    Loop

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

    // {
    //   "deploymentGroupsInfo": [
    //     {
    //       "alarmConfiguration": {
    //         "alarms": [
    //           {
    //             "name": "string"
    //           }
    //         ],
    //         "enabled": boolean,
    //         "ignorePollAlarmFailure": boolean
    //       },
    //       "applicationName": "string",
    //       "autoRollbackConfiguration": {
    //         "enabled": boolean,
    //         "events": [
    //           "string"
    //         ]
    //       },
    //       "autoScalingGroups": [
    //         {
    //           "hook": "string",
    //           "name": "string"
    //         }
    //       ],
    //       "blueGreenDeploymentConfiguration": {
    //         "deploymentReadyOption": {
    //           "actionOnTimeout": "string",
    //           "waitTimeInMinutes": number
    //         },
    //         "greenFleetProvisioningOption": {
    //           "action": "string"
    //         },
    //         "terminateBlueInstancesOnDeploymentSuccess": {
    //           "action": "string",
    //           "terminationWaitTimeInMinutes": number
    //         }
    //       },
    //       "computePlatform": "string",
    //       "deploymentConfigName": "string",
    //       "deploymentGroupId": "string",
    //       "deploymentGroupName": "string",
    //       "deploymentStyle": {
    //         "deploymentOption": "string",
    //         "deploymentType": "string"
    //       },
    //       "ec2TagFilters": [
    //         {
    //           "Key": "string",
    //           "Type": "string",
    //           "Value": "string"
    //         }
    //       ],
    //       "ec2TagSet": {
    //         "ec2TagSetList": [
    //           [
    //             {
    //               "Key": "string",
    //               "Type": "string",
    //               "Value": "string"
    //             }
    //           ]
    //         ]
    //       },
    //       "ecsServices": [
    //         {
    //           "clusterName": "string",
    //           "serviceName": "string"
    //         }
    //       ],
    //       "lastAttemptedDeployment": {
    //         "createTime": number,
    //         "deploymentId": "string",
    //         "endTime": number,
    //         "status": "string"
    //       },
    //       "lastSuccessfulDeployment": {
    //         "createTime": number,
    //         "deploymentId": "string",
    //         "endTime": number,
    //         "status": "string"
    //       },
    //       "loadBalancerInfo": {
    //         "elbInfoList": [
    //           {
    //             "name": "string"
    //           }
    //         ],
    //         "targetGroupInfoList": [
    //           {
    //             "name": "string"
    //           }
    //         ],
    //         "targetGroupPairInfoList": [
    //           {
    //             "prodTrafficRoute": {
    //               "listenerArns": [
    //                 "string"
    //               ]
    //             },
    //             "targetGroups": [
    //               {
    //                 "name": "string"
    //               }
    //             ],
    //             "testTrafficRoute": {
    //               "listenerArns": [
    //                 "string"
    //               ]
    //             }
    //           }
    //         ]
    //       },
    //       "onPremisesInstanceTagFilters": [
    //         {
    //           "Key": "string",
    //           "Type": "string",
    //           "Value": "string"
    //         }
    //       ],
    //       "onPremisesTagSet": {
    //         "onPremisesTagSetList": [
    //           [
    //             {
    //               "Key": "string",
    //               "Type": "string",
    //               "Value": "string"
    //             }
    //           ]
    //         ]
    //       },
    //       "outdatedInstancesStrategy": "string",
    //       "serviceRoleArn": "string",
    //       "targetRevision": {
    //         "appSpecContent": {
    //           "content": "string",
    //           "sha256": "string"
    //         },
    //         "gitHubLocation": {
    //           "commitId": "string",
    //           "repository": "string"
    //         },
    //         "revisionType": "string",
    //         "s3Location": {
    //           "bucket": "string",
    //           "bundleType": "string",
    //           "eTag": "string",
    //           "key": "string",
    //           "version": "string"
    //         },
    //         "string": {
    //           "content": "string",
    //           "sha256": "string"
    //         }
    //       },
    //       "triggerConfigurations": [
    //         {
    //           "triggerEvents": [
    //             "string"
    //           ],
    //           "triggerName": "string",
    //           "triggerTargetArn": "string"
    //         }
    //       ]
    //     }
    //   ],
    //   "errorMessage": "string"
    // }


End_Procedure