Skip to content

Commit

Permalink
add get build (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
smile37773 authored and yuwzho committed Dec 3, 2021
1 parent 9c13de5 commit b955729
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1339,6 +1339,52 @@
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/builds/{buildName}": {
"get": {
"tags": [
"AppPlatform"
],
"description": "Get a KPack build.",
"operationId": "BuildService_GetBuild",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/ServiceNameParameter"
},
{
"$ref": "#/parameters/BuildServiceNameParameter"
},
{
"$ref": "#/parameters/BuildNameParameter"
}
],
"responses": {
"200": {
"description": "Success. The response describes the Build.",
"schema": {
"$ref": "#/definitions/Build"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"BuildService_GetBuild": {
"$ref": "./examples/BuildService_GetBuild.json"
}
}
},
"put": {
"tags": [
"AppPlatform"
Expand Down Expand Up @@ -6711,10 +6757,6 @@
"id": {
"description": "The id of this resource",
"type": "string"
},
"version": {
"description": "The version of this resource",
"type": "string"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2022-01-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"serviceName": "myservice",
"buildServiceName": "default",
"buildName": "mybuild"
},
"responses": {
"200": {
"body": {
"properties": {
"builder": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builders/default",
"agentPool": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/agentPools/default",
"provisioningState": "Succeeded",
"relativePath": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855-20210601-3ed9f4a2-986b-4bbd-b833-a42dccb2f777",
"env": {
"environmentVariable": "test"
}
},
"systemData": {
"createdBy": "sample-user",
"createdByType": "User",
"createdAt": "2021-08-11T03:16:03.944Z",
"lastModifiedBy": "sample-user",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-11T03:17:03.944Z"
},
"type": "Microsoft.AppPlatform/Spring/buildServices/builds/results",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/buildServices/default/builds/mybuild/results/123",
"name": "123"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,22 @@
"body": {
"buildpacks": [
{
"id": "tanzu-buildpacks/java-azure",
"version": "6.6.0"
"id": "tanzu-buildpacks/java-azure"
},
{
"id": "tanzu-buildpacks/java-native-image",
"version": "4.10.0"
"id": "tanzu-buildpacks/java-native-image"
},
{
"id": "tanzu-buildpacks/dotnet-core",
"version": "1.9.0"
"id": "tanzu-buildpacks/dotnet-core"
},
{
"id": "tanzu-buildpacks/go",
"version": "1.10.0"
"id": "tanzu-buildpacks/go"
},
{
"id": "tanzu-buildpacks/nodejs",
"version": "1.11.0"
"id": "tanzu-buildpacks/nodejs"
},
{
"id": "tanzu-buildpacks/python",
"version": "1.1.0"
"id": "tanzu-buildpacks/python"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
"body": {
"stacks": [
{
"id": "io.buildpacks.stacks.bionic",
"version": "1.3.31-base"
"id": "io.buildpacks.stacks.bionic-base"
},
{
"id": "io.buildpacks.stacks.bionic",
"version": "1.2.43-full"
"id": "io.buildpacks.stacks.bionic-full"
}
]
}
Expand Down

0 comments on commit b955729

Please sign in to comment.