From 8ee304978eb5c2f47bfe3061b013cd554728765d Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Thu, 9 Jan 2025 07:13:33 +0000 Subject: [PATCH] make build_sdks --- sdk/java/build.gradle | 16 +++++++++------- sdk/nodejs/authorization/getRoleDefinition.ts | 4 ++-- sdk/nodejs/lb/backendAddressPoolAddress.ts | 2 +- sdk/nodejs/role/getRoleDefinition.ts | 4 ++-- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 7bc48a3ce7..13104cb36a 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.20.0") + implementation("com.pulumi:pulumi:1.0.0") } task sourcesJar(type: Jar) { @@ -65,11 +65,13 @@ def genPulumiResources = tasks.register('genPulumiResources') { def outDir = file("$resourcesDir/$subDir") outDir.mkdirs() new File(outDir, "version.txt").text = resolvedVersion - def info = new Object() - info.metaClass.resource = true - info.metaClass.name = "azure" - info.metaClass.version = resolvedVersion - def infoJson = new groovy.json.JsonBuilder(info).toPrettyString() + def builder = new groovy.json.JsonBuilder() + builder { + resource true + name "azure" + version resolvedVersion + } + def infoJson = builder.toPrettyString() new File(outDir, "plugin.json").text = infoJson } } @@ -150,4 +152,4 @@ if (signingKey) { useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mainPublication } -} +} \ No newline at end of file diff --git a/sdk/nodejs/authorization/getRoleDefinition.ts b/sdk/nodejs/authorization/getRoleDefinition.ts index 78d897bff6..e702cb019b 100644 --- a/sdk/nodejs/authorization/getRoleDefinition.ts +++ b/sdk/nodejs/authorization/getRoleDefinition.ts @@ -25,7 +25,7 @@ import * as utilities from "../utilities"; * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * })); @@ -115,7 +115,7 @@ export interface GetRoleDefinitionResult { * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * })); diff --git a/sdk/nodejs/lb/backendAddressPoolAddress.ts b/sdk/nodejs/lb/backendAddressPoolAddress.ts index dcd0875d26..dff1c56283 100644 --- a/sdk/nodejs/lb/backendAddressPoolAddress.ts +++ b/sdk/nodejs/lb/backendAddressPoolAddress.ts @@ -35,7 +35,7 @@ import * as utilities from "../utilities"; * virtualNetworkId: example.then(example => example.id), * ipAddress: "10.0.0.1", * }); - * const backend-pool-cr = exampleGetLB.then(exampleGetLB => azure.lb.getBackendAddressPool({ + * const backend_pool_cr = exampleGetLB.then(exampleGetLB => azure.lb.getBackendAddressPool({ * name: "globalLBBackendPool", * loadbalancerId: exampleGetLB.id, * })); diff --git a/sdk/nodejs/role/getRoleDefinition.ts b/sdk/nodejs/role/getRoleDefinition.ts index 72c5d374cf..74422be241 100644 --- a/sdk/nodejs/role/getRoleDefinition.ts +++ b/sdk/nodejs/role/getRoleDefinition.ts @@ -25,7 +25,7 @@ import * as utilities from "../utilities"; * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * })); @@ -117,7 +117,7 @@ export interface GetRoleDefinitionResult { * roleDefinitionId: roleDefinitionId, * scope: primary.id, * })); - * const custom-byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ + * const custom_byname = pulumi.all([customRoleDefinition.name, primary]).apply(([name, primary]) => azure.authorization.getRoleDefinitionOutput({ * name: name, * scope: primary.id, * }));