This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from functools import lru_cache | |
import requests | |
import time | |
class AutomationClient: | |
""" | |
Low level Aria Automation/Orchestration client. | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nu.rydin.enchante.utils; | |
import net.minecraft.core.BlockPos; | |
import net.minecraft.world.level.LevelReader; | |
import net.minecraft.world.level.block.Block; | |
import net.minecraft.world.level.block.state.BlockState; | |
import net.minecraft.world.level.block.state.properties.Property; | |
import javax.annotation.Nullable; | |
import java.util.Collection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def handler(context, inputs): | |
# We only care about updates | |
if inputs["eventType"] != "UPDATE_DEPLOYMENT": | |
return inputs | |
result = context.request("/blueprint/api/blueprint-requests/%s/resources-plan?expand=true" % inputs["id"], "GET", "") | |
if result["status"] != 200: | |
raise Exception(result["content"]) | |
envelope = json.loads(result["content"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
def handler(context, inputs): | |
payload = { | |
"key": "enable.custom.resource.user-defined-schema", | |
"value": "true" | |
} | |
print(context.request("/provisioning/config/toggles", "POST", json.dumps(payload))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"resources": [ | |
{ | |
"metrics": [ | |
{ | |
"name": "virtualDisk:scsi0:1|totalReadLatency_average", | |
"samples": [ | |
{ | |
"t": 1616713319999, | |
"v": 0.7333333492279053 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for io.jenkins.plugins:vrealize-automation-8:hpi:1.1-SNAPSHOT | |
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.jenkinsci.plugins:pipeline-model-definition:jar -> duplicate declaration of version ${pipeline-model-definition-plugin.version} @ line 154, column 21 | |
[WARNING] | |
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. | |
[WARNING] | |
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects. | |
[WARNING] | |
[INFO] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings> | |
<pluginGroups> | |
<pluginGroup>org.jenkins-ci.tools</pluginGroup> | |
</pluginGroups> | |
<profiles> | |
<!-- Give access to Jenkins plugins --> | |
<profile> | |
<id>jenkins</id> | |
<activation> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-08-21T11:09:58.029-04:00 vra7_client.go:56 DoRequest ▶ INFO 001 Check the status of the request https://vra7-01.pontus.lab/identity/api/tokens | |
The response is: 200 | |
2020-08-21T11:09:58.045-04:00 resource_vra7_deployment.go:389 resourceVra7DeploymentRead ▶ INFO 002 Reading the resource vra7_deployment with request id 2ae51624-30c4-48a5-a85e-f697c0b995b1 | |
2020-08-21T11:09:58.139-04:00 vra7_client.go:56 DoRequest ▶ INFO 003 Check the status of the request https://vra7-01.pontus.lab/identity/api/tokens | |
The response is: 200 | |
2020-08-21T11:09:58.647-04:00 vra7_client.go:56 DoRequest ▶ INFO 004 Check the status of the request https://vra7-01.pontus.lab/catalog-service/api/consumer/requests/2ae51624-30c4-48a5-a85e-f697c0b995b1/resourceViews | |
The response is: 200 | |
2020-08-21T11:09:58.657-04:00 resource_vra7_deployment.go:487 resourceVra7DeploymentRead ▶ INFO 005 Finished reading the resource vra7_deployment with request id 2ae51624-30c4-48a5-a85e-f697c0b995b1. Resources found: 1 | |
2020-08-21T11:09:58.885-04:00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 4, | |
"terraform_version": "0.12.24", | |
"serial": 4, | |
"lineage": "9edec340-c628-cc69-9151-74d3434fc461", | |
"outputs": { | |
"test3": { | |
"value": { | |
"ip": "192.168.1.9" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 4, | |
"terraform_version": "0.12.24", | |
"serial": 4, | |
"lineage": "bd18c211-d319-82a0-4c37-92cd785fe908", | |
"outputs": { | |
"test3": { | |
"value": {}, | |
"type": [ | |
"object", |