Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
guineveresaenger committed Sep 20, 2023
1 parent 7a40d88 commit 13eb435
Show file tree
Hide file tree
Showing 15 changed files with 104 additions and 100 deletions.
17 changes: 11 additions & 6 deletions sdk/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ java {

compileJava {
options.fork = true
options.forkOptions.jvmArgs.addAll(["-Xmx4g"])
options.forkOptions.jvmArgs.addAll(["-Xmx16g"])
}

repositories {
Expand All @@ -43,17 +43,18 @@ 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.5.4")
implementation("com.pulumi:pulumi:0.9.5")
}

task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
archiveClassifier.set('sources')
}

task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
archiveClassifier.set('javadoc')
zip64 = true
}

def genPulumiResources = tasks.register('genPulumiResources') {
Expand Down Expand Up @@ -123,7 +124,11 @@ javadoc {
if (JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
options.jFlags("-Xmx2g", "-Xms512m")
options.jFlags("-Xmx8g", "-Xms512m")
}

jar {
zip64 = true
}

if (publishRepoUsername) {
Expand All @@ -144,4 +149,4 @@ if (signingKey) {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mainPublication
}
}
}
8 changes: 4 additions & 4 deletions sdk/java/src/main/java/com/pulumi/kong/Certificate.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class Certificate extends com.pulumi.resources.CustomResource {
* should be the public key of your certificate it is mapped to the `Cert` parameter on the Kong API.
*
*/
@Export(name="certificate", type=String.class, parameters={})
@Export(name="certificate", refs={String.class}, tree="[0]")
private Output<String> certificate;

/**
Expand All @@ -84,7 +84,7 @@ public Output<String> certificate() {
* should be the private key of your certificate it is mapped to the `Key` parameter on the Kong API.
*
*/
@Export(name="privateKey", type=String.class, parameters={})
@Export(name="privateKey", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> privateKey;

/**
Expand All @@ -98,7 +98,7 @@ public Output<Optional<String>> privateKey() {
* A list of strings associated with the Certificate for grouping and filtering
*
*/
@Export(name="snis", type=List.class, parameters={String.class})
@Export(name="snis", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> snis;

/**
Expand All @@ -108,7 +108,7 @@ public Output<Optional<String>> privateKey() {
public Output<Optional<List<String>>> snis() {
return Codegen.optional(this.snis);
}
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

public Output<Optional<List<String>>> tags() {
Expand Down
6 changes: 3 additions & 3 deletions sdk/java/src/main/java/com/pulumi/kong/Consumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class Consumer extends com.pulumi.resources.CustomResource {
* A custom id for the consumer, you must set either the username or custom_id
*
*/
@Export(name="customId", type=String.class, parameters={})
@Export(name="customId", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> customId;

/**
Expand All @@ -81,7 +81,7 @@ public Output<Optional<String>> customId() {
* A list of strings associated with the Consumer for grouping and filtering
*
*/
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

/**
Expand All @@ -95,7 +95,7 @@ public Output<Optional<List<String>>> tags() {
* The username to use, you must set either the username or custom_id
*
*/
@Export(name="username", type=String.class, parameters={})
@Export(name="username", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> username;

/**
Expand Down
6 changes: 3 additions & 3 deletions sdk/java/src/main/java/com/pulumi/kong/ConsumerAcl.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class ConsumerAcl extends com.pulumi.resources.CustomResource {
* the id of the consumer to be configured
*
*/
@Export(name="consumerId", type=String.class, parameters={})
@Export(name="consumerId", refs={String.class}, tree="[0]")
private Output<String> consumerId;

/**
Expand All @@ -93,7 +93,7 @@ public Output<String> consumerId() {
* the acl group
*
*/
@Export(name="group", type=String.class, parameters={})
@Export(name="group", refs={String.class}, tree="[0]")
private Output<String> group;

/**
Expand All @@ -107,7 +107,7 @@ public Output<String> group() {
* A list of strings associated with the consumer acl for grouping and filtering
*
*/
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

/**
Expand Down
8 changes: 4 additions & 4 deletions sdk/java/src/main/java/com/pulumi/kong/ConsumerBasicAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class ConsumerBasicAuth extends com.pulumi.resources.CustomResource {
* the id of the consumer to be configured with basic auth
*
*/
@Export(name="consumerId", type=String.class, parameters={})
@Export(name="consumerId", refs={String.class}, tree="[0]")
private Output<String> consumerId;

/**
Expand All @@ -86,7 +86,7 @@ public Output<String> consumerId() {
* password to be used for basic auth
*
*/
@Export(name="password", type=String.class, parameters={})
@Export(name="password", refs={String.class}, tree="[0]")
private Output<String> password;

/**
Expand All @@ -100,7 +100,7 @@ public Output<String> password() {
* A list of strings associated with the consumer basic auth for grouping and filtering
*
*/
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

/**
Expand All @@ -114,7 +114,7 @@ public Output<Optional<List<String>>> tags() {
* username to be used for basic auth
*
*/
@Export(name="username", type=String.class, parameters={})
@Export(name="username", refs={String.class}, tree="[0]")
private Output<String> username;

/**
Expand Down
12 changes: 6 additions & 6 deletions sdk/java/src/main/java/com/pulumi/kong/ConsumerJwtAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class ConsumerJwtAuth extends com.pulumi.resources.CustomResource {
* The algorithm used to verify the token’s signature. Can be HS256, HS384, HS512, RS256, or ES256, Default is `HS256`
*
*/
@Export(name="algorithm", type=String.class, parameters={})
@Export(name="algorithm", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> algorithm;

/**
Expand All @@ -93,7 +93,7 @@ public Output<Optional<String>> algorithm() {
* the id of the consumer to be configured with jwt auth
*
*/
@Export(name="consumerId", type=String.class, parameters={})
@Export(name="consumerId", refs={String.class}, tree="[0]")
private Output<String> consumerId;

/**
Expand All @@ -107,7 +107,7 @@ public Output<String> consumerId() {
* A unique string identifying the credential. If left out, it will be auto-generated.
*
*/
@Export(name="key", type=String.class, parameters={})
@Export(name="key", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> key;

/**
Expand All @@ -121,7 +121,7 @@ public Output<Optional<String>> key() {
* If algorithm is `RS256` or `ES256`, the public key (in PEM format) to use to verify the token’s signature
*
*/
@Export(name="rsaPublicKey", type=String.class, parameters={})
@Export(name="rsaPublicKey", refs={String.class}, tree="[0]")
private Output<String> rsaPublicKey;

/**
Expand All @@ -135,7 +135,7 @@ public Output<String> rsaPublicKey() {
* If algorithm is `HS256` or `ES256`, the secret used to sign JWTs for this credential. If left out, will be auto-generated
*
*/
@Export(name="secret", type=String.class, parameters={})
@Export(name="secret", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> secret;

/**
Expand All @@ -149,7 +149,7 @@ public Output<Optional<String>> secret() {
* A list of strings associated with the consumer JWT auth for grouping and filtering
*
*/
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

/**
Expand Down
6 changes: 3 additions & 3 deletions sdk/java/src/main/java/com/pulumi/kong/ConsumerKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class ConsumerKeyAuth extends com.pulumi.resources.CustomResource {
* the id of the consumer to associate the credentials to
*
*/
@Export(name="consumerId", type=String.class, parameters={})
@Export(name="consumerId", refs={String.class}, tree="[0]")
private Output<String> consumerId;

/**
Expand All @@ -85,7 +85,7 @@ public Output<String> consumerId() {
* Unique key to authenticate the client; if omitted the plugin will generate one
*
*/
@Export(name="key", type=String.class, parameters={})
@Export(name="key", refs={String.class}, tree="[0]")
private Output<String> key;

/**
Expand All @@ -99,7 +99,7 @@ public Output<String> key() {
* A list of strings associated with the consumer key auth for grouping and filtering
*
*/
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

/**
Expand Down
14 changes: 7 additions & 7 deletions sdk/java/src/main/java/com/pulumi/kong/ConsumerOauth2.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class ConsumerOauth2 extends com.pulumi.resources.CustomResource {
* Unique oauth2 client id. If not set, the oauth2 plugin will generate one
*
*/
@Export(name="clientId", type=String.class, parameters={})
@Export(name="clientId", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> clientId;

/**
Expand All @@ -100,7 +100,7 @@ public Output<Optional<String>> clientId() {
* Unique oauth2 client secret. If not set, the oauth2 plugin will generate one
*
*/
@Export(name="clientSecret", type=String.class, parameters={})
@Export(name="clientSecret", refs={String.class}, tree="[0]")
private Output</* @Nullable */ String> clientSecret;

/**
Expand All @@ -114,7 +114,7 @@ public Output<Optional<String>> clientSecret() {
* The id of the consumer to be configured with oauth2.
*
*/
@Export(name="consumerId", type=String.class, parameters={})
@Export(name="consumerId", refs={String.class}, tree="[0]")
private Output<String> consumerId;

/**
Expand All @@ -128,7 +128,7 @@ public Output<String> consumerId() {
* A boolean flag that indicates whether the client_secret field will be stored in hashed form. If enabled on existing plugin instances, client secrets are hashed on the fly upon first usage. Default: `false`.
*
*/
@Export(name="hashSecret", type=Boolean.class, parameters={})
@Export(name="hashSecret", refs={Boolean.class}, tree="[0]")
private Output</* @Nullable */ Boolean> hashSecret;

/**
Expand All @@ -142,7 +142,7 @@ public Output<Optional<Boolean>> hashSecret() {
* The name associated with the credential.
*
*/
@Export(name="name", type=String.class, parameters={})
@Export(name="name", refs={String.class}, tree="[0]")
private Output<String> name;

/**
Expand All @@ -156,7 +156,7 @@ public Output<String> name() {
* An array with one or more URLs in your app where users will be sent after authorization ([RFC 6742 Section 3.1.2](https://tools.ietf.org/html/rfc6749#section-3.1.2)).
*
*/
@Export(name="redirectUris", type=List.class, parameters={String.class})
@Export(name="redirectUris", refs={List.class,String.class}, tree="[0,1]")
private Output<List<String>> redirectUris;

/**
Expand All @@ -170,7 +170,7 @@ public Output<List<String>> redirectUris() {
* A list of strings associated with the consumer for grouping and filtering.
*
*/
@Export(name="tags", type=List.class, parameters={String.class})
@Export(name="tags", refs={List.class,String.class}, tree="[0,1]")
private Output</* @Nullable */ List<String>> tags;

/**
Expand Down
Loading

0 comments on commit 13eb435

Please sign in to comment.