Skip to content

Commit

Permalink
docs: regenerate java-gke-connect-gateway generated samples (googleap…
Browse files Browse the repository at this point in the history
  • Loading branch information
suztomo committed Oct 11, 2022
1 parent 1582b23 commit f6506b9
Show file tree
Hide file tree
Showing 27 changed files with 686 additions and 813 deletions.
84 changes: 0 additions & 84 deletions java-assured-workloads/samples/install-without-bom/pom.xml

This file was deleted.

56 changes: 0 additions & 56 deletions java-assured-workloads/samples/pom.xml

This file was deleted.

83 changes: 0 additions & 83 deletions java-assured-workloads/samples/snapshot/pom.xml

This file was deleted.

47 changes: 0 additions & 47 deletions java-assured-workloads/samples/snippets/pom.xml

This file was deleted.

6 changes: 3 additions & 3 deletions java-gke-connect-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-gke-connect-gateway</artifactId>
<version>0.4.5</version>
<version>0.4.6</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.4.5'
implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.4.6'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.4.5"
libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.4.6"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.gkeconnect.gateway.v1beta1.samples;

// [START gateway_v1beta1_generated_gatewayserviceclient_create_setcredentialsprovider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceClient;
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceSettings;
import com.google.cloud.gkeconnect.gateway.v1beta1.myCredentials;

public class SyncCreateSetCredentialsProvider {

public static void main(String[] args) throws Exception {
syncCreateSetCredentialsProvider();
}

public static void syncCreateSetCredentialsProvider() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
GatewayServiceSettings gatewayServiceSettings =
GatewayServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create(gatewayServiceSettings);
}
}
// [END gateway_v1beta1_generated_gatewayserviceclient_create_setcredentialsprovider_sync]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.google.cloud.gkeconnect.gateway.v1beta1.samples;

// [START gateway_v1beta1_generated_gatewayserviceclient_create_setendpoint_sync]
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceClient;
import com.google.cloud.gkeconnect.gateway.v1beta1.GatewayServiceSettings;
import com.google.cloud.gkeconnect.gateway.v1beta1.myEndpoint;

public class SyncCreateSetEndpoint {

public static void main(String[] args) throws Exception {
syncCreateSetEndpoint();
}

public static void syncCreateSetEndpoint() throws Exception {
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
GatewayServiceSettings gatewayServiceSettings =
GatewayServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
GatewayServiceClient gatewayServiceClient = GatewayServiceClient.create(gatewayServiceSettings);
}
}
// [END gateway_v1beta1_generated_gatewayserviceclient_create_setendpoint_sync]

0 comments on commit f6506b9

Please sign in to comment.