Skip to content

Commit 21c4955

Browse files
authored
feat(google/cloud/networkservices/v1beta1): add networkservices (#14407)
Onboard google/cloud/networkservices/v1beta1 API (networkservices). Internal tracking bug http://b/561920907 ## Debug Info ### System Details - JDK version: javac 17.0.20.1 - Maven version: �[1mApache Maven 3.9.12�[m - OS: Linux 6.18.14-1rodete4-amd64 x86_64 - Librarian version: v0.44.0 ### Commands Executed - `MAVEN_SKIP_RC=true go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 install` - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 add google/cloud/networkservices/v1beta1` - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 generate networkservices` - `mvn -B -ntp compile -pl :google-cloud-networkservices-parent -am` - `go run github.com/googleapis/librarian/cmd/librarian@v0.44.0 tidy` - `git add .` - `git commit -m "feat(google/cloud/networkservices/v1beta1): add networkservices"`
1 parent f7d3506 commit 21c4955

249 files changed

Lines changed: 106592 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎java-networkservices/google-cloud-networkservices-bom/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@
3434
<artifactId>grpc-google-cloud-networkservices-v1</artifactId>
3535
<version>0.54.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-networkservices-v1:current} -->
3636
</dependency>
37+
<dependency>
38+
<groupId>com.google.api.grpc</groupId>
39+
<artifactId>grpc-google-cloud-networkservices-v1beta1</artifactId>
40+
<version>0.54.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-networkservices-v1beta1:current} -->
41+
</dependency>
3742
<dependency>
3843
<groupId>com.google.api.grpc</groupId>
3944
<artifactId>proto-google-cloud-networkservices-v1</artifactId>
4045
<version>0.54.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-networkservices-v1:current} -->
4146
</dependency>
47+
<dependency>
48+
<groupId>com.google.api.grpc</groupId>
49+
<artifactId>proto-google-cloud-networkservices-v1beta1</artifactId>
50+
<version>0.54.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-networkservices-v1beta1:current} -->
51+
</dependency>
4252
<!-- {x-generated-dependencies-end} -->
4353
</dependencies>
4454
</dependencyManagement>

‎java-networkservices/google-cloud-networkservices/pom.xml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646
<groupId>com.google.api.grpc</groupId>
4747
<artifactId>proto-google-cloud-networkservices-v1</artifactId>
4848
</dependency>
49+
<dependency>
50+
<groupId>com.google.api.grpc</groupId>
51+
<artifactId>proto-google-cloud-networkservices-v1beta1</artifactId>
52+
</dependency>
4953
<!-- {x-generated-proto-dependencies-end} -->
5054
<dependency>
5155
<groupId>com.google.guava</groupId>
@@ -95,6 +99,11 @@
9599
<artifactId>grpc-google-cloud-networkservices-v1</artifactId>
96100
<scope>test</scope>
97101
</dependency>
102+
<dependency>
103+
<groupId>com.google.api.grpc</groupId>
104+
<artifactId>grpc-google-cloud-networkservices-v1beta1</artifactId>
105+
<scope>test</scope>
106+
</dependency>
98107
<!-- {x-generated-grpc-dependencies-end} -->
99108
<!-- Need testing utility classes for generated gRPC clients tests -->
100109
<dependency>

‎java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1beta1/DepServiceClient.java‎

Lines changed: 3629 additions & 0 deletions
Large diffs are not rendered by default.

‎java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1beta1/DepServiceSettings.java‎

Lines changed: 620 additions & 0 deletions
Large diffs are not rendered by default.

‎java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1beta1/NetworkServicesClient.java‎

Lines changed: 1716 additions & 0 deletions
Large diffs are not rendered by default.

‎java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1beta1/NetworkServicesSettings.java‎

Lines changed: 410 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"schema": "1.0",
3+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
4+
"language": "java",
5+
"protoPackage": "google.cloud.networkservices.v1beta1",
6+
"libraryPackage": "com.google.cloud.networkservices.v1beta1",
7+
"services": {
8+
"DepService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "DepServiceClient",
12+
"rpcs": {
13+
"CreateExtensionBinding": {
14+
"methods": ["createExtensionBindingAsync", "createExtensionBindingAsync", "createExtensionBindingAsync", "createExtensionBindingOperationCallable", "createExtensionBindingCallable"]
15+
},
16+
"CreateLbRouteExtension": {
17+
"methods": ["createLbRouteExtensionAsync", "createLbRouteExtensionAsync", "createLbRouteExtensionAsync", "createLbRouteExtensionOperationCallable", "createLbRouteExtensionCallable"]
18+
},
19+
"CreateLbTrafficExtension": {
20+
"methods": ["createLbTrafficExtensionAsync", "createLbTrafficExtensionAsync", "createLbTrafficExtensionAsync", "createLbTrafficExtensionOperationCallable", "createLbTrafficExtensionCallable"]
21+
},
22+
"DeleteExtensionBinding": {
23+
"methods": ["deleteExtensionBindingAsync", "deleteExtensionBindingAsync", "deleteExtensionBindingAsync", "deleteExtensionBindingOperationCallable", "deleteExtensionBindingCallable"]
24+
},
25+
"DeleteLbRouteExtension": {
26+
"methods": ["deleteLbRouteExtensionAsync", "deleteLbRouteExtensionAsync", "deleteLbRouteExtensionAsync", "deleteLbRouteExtensionOperationCallable", "deleteLbRouteExtensionCallable"]
27+
},
28+
"DeleteLbTrafficExtension": {
29+
"methods": ["deleteLbTrafficExtensionAsync", "deleteLbTrafficExtensionAsync", "deleteLbTrafficExtensionAsync", "deleteLbTrafficExtensionOperationCallable", "deleteLbTrafficExtensionCallable"]
30+
},
31+
"GetExtensionBinding": {
32+
"methods": ["getExtensionBinding", "getExtensionBinding", "getExtensionBinding", "getExtensionBindingCallable"]
33+
},
34+
"GetIamPolicy": {
35+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
36+
},
37+
"GetLbRouteExtension": {
38+
"methods": ["getLbRouteExtension", "getLbRouteExtension", "getLbRouteExtension", "getLbRouteExtensionCallable"]
39+
},
40+
"GetLbTrafficExtension": {
41+
"methods": ["getLbTrafficExtension", "getLbTrafficExtension", "getLbTrafficExtension", "getLbTrafficExtensionCallable"]
42+
},
43+
"GetLocation": {
44+
"methods": ["getLocation", "getLocationCallable"]
45+
},
46+
"ListExtensionBindings": {
47+
"methods": ["listExtensionBindings", "listExtensionBindings", "listExtensionBindings", "listExtensionBindingsPagedCallable", "listExtensionBindingsCallable"]
48+
},
49+
"ListLbRouteExtensions": {
50+
"methods": ["listLbRouteExtensions", "listLbRouteExtensions", "listLbRouteExtensions", "listLbRouteExtensionsPagedCallable", "listLbRouteExtensionsCallable"]
51+
},
52+
"ListLbTrafficExtensions": {
53+
"methods": ["listLbTrafficExtensions", "listLbTrafficExtensions", "listLbTrafficExtensions", "listLbTrafficExtensionsPagedCallable", "listLbTrafficExtensionsCallable"]
54+
},
55+
"ListLocations": {
56+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
57+
},
58+
"SetIamPolicy": {
59+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
60+
},
61+
"TestIamPermissions": {
62+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
63+
},
64+
"UpdateExtensionBinding": {
65+
"methods": ["updateExtensionBindingAsync", "updateExtensionBindingAsync", "updateExtensionBindingOperationCallable", "updateExtensionBindingCallable"]
66+
},
67+
"UpdateLbRouteExtension": {
68+
"methods": ["updateLbRouteExtensionAsync", "updateLbRouteExtensionAsync", "updateLbRouteExtensionOperationCallable", "updateLbRouteExtensionCallable"]
69+
},
70+
"UpdateLbTrafficExtension": {
71+
"methods": ["updateLbTrafficExtensionAsync", "updateLbTrafficExtensionAsync", "updateLbTrafficExtensionOperationCallable", "updateLbTrafficExtensionCallable"]
72+
}
73+
}
74+
}
75+
}
76+
},
77+
"NetworkServices": {
78+
"clients": {
79+
"grpc": {
80+
"libraryClient": "NetworkServicesClient",
81+
"rpcs": {
82+
"CreateEndpointPolicy": {
83+
"methods": ["createEndpointPolicyAsync", "createEndpointPolicyAsync", "createEndpointPolicyAsync", "createEndpointPolicyOperationCallable", "createEndpointPolicyCallable"]
84+
},
85+
"DeleteEndpointPolicy": {
86+
"methods": ["deleteEndpointPolicyAsync", "deleteEndpointPolicyAsync", "deleteEndpointPolicyAsync", "deleteEndpointPolicyOperationCallable", "deleteEndpointPolicyCallable"]
87+
},
88+
"GetEndpointPolicy": {
89+
"methods": ["getEndpointPolicy", "getEndpointPolicy", "getEndpointPolicy", "getEndpointPolicyCallable"]
90+
},
91+
"GetIamPolicy": {
92+
"methods": ["getIamPolicy", "getIamPolicyCallable"]
93+
},
94+
"GetLocation": {
95+
"methods": ["getLocation", "getLocationCallable"]
96+
},
97+
"ListEndpointPolicies": {
98+
"methods": ["listEndpointPolicies", "listEndpointPolicies", "listEndpointPolicies", "listEndpointPoliciesPagedCallable", "listEndpointPoliciesCallable"]
99+
},
100+
"ListLocations": {
101+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
102+
},
103+
"SetIamPolicy": {
104+
"methods": ["setIamPolicy", "setIamPolicyCallable"]
105+
},
106+
"TestIamPermissions": {
107+
"methods": ["testIamPermissions", "testIamPermissionsCallable"]
108+
},
109+
"UpdateEndpointPolicy": {
110+
"methods": ["updateEndpointPolicyAsync", "updateEndpointPolicyAsync", "updateEndpointPolicyOperationCallable", "updateEndpointPolicyCallable"]
111+
}
112+
}
113+
}
114+
}
115+
}
116+
}
117+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/*
2+
* Copyright 2026 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/**
18+
* A client to Network Services API
19+
*
20+
* <p>The interfaces provided are listed below, along with usage samples.
21+
*
22+
* <p>======================= DepServiceClient =======================
23+
*
24+
* <p>Service Description: Service describing handlers for resources.
25+
*
26+
* <p>Sample for DepServiceClient:
27+
*
28+
* <pre>{@code
29+
* // This snippet has been automatically generated and should be regarded as a code template only.
30+
* // It will require modifications to work:
31+
* // - It may require correct/in-range values for request initialization.
32+
* // - It may require specifying regional endpoints when creating the service client as shown in
33+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
34+
* try (DepServiceClient depServiceClient = DepServiceClient.create()) {
35+
* LbTrafficExtensionName name =
36+
* LbTrafficExtensionName.of("[PROJECT]", "[LOCATION]", "[LB_TRAFFIC_EXTENSION]");
37+
* LbTrafficExtension response = depServiceClient.getLbTrafficExtension(name);
38+
* }
39+
* }</pre>
40+
*
41+
* <p>======================= NetworkServicesClient =======================
42+
*
43+
* <p>Service Description: Service describing handlers for resources.
44+
*
45+
* <p>Sample for NetworkServicesClient:
46+
*
47+
* <pre>{@code
48+
* // This snippet has been automatically generated and should be regarded as a code template only.
49+
* // It will require modifications to work:
50+
* // - It may require correct/in-range values for request initialization.
51+
* // - It may require specifying regional endpoints when creating the service client as shown in
52+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
53+
* try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
54+
* EndpointPolicyName name =
55+
* EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]");
56+
* EndpointPolicy response = networkServicesClient.getEndpointPolicy(name);
57+
* }
58+
* }</pre>
59+
*/
60+
@Generated("by gapic-generator-java")
61+
package com.google.cloud.networkservices.v1beta1;
62+
63+
import javax.annotation.Generated;

0 commit comments

Comments
 (0)