Skip to content

Commit 55e0959

Browse files
1 parent 54005a4 commit 55e0959

File tree

5 files changed

+316
-6
lines changed

5 files changed

+316
-6
lines changed

clients/google-api-services-apim/v1alpha/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-apim</artifactId>
25-
<version>v1alpha-rev20250521-2.0.0</version>
25+
<version>v1alpha-rev20250730-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-apim:v1alpha-rev20250521-2.0.0'
38+
implementation 'com.google.apis:google-api-services-apim:v1alpha-rev20250730-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-apim/v1alpha/2.0.0/com/google/api/services/apim/v1alpha/APIManagement.java

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,151 @@ public Get set(String parameterName, Object value) {
311311
return (Get) super.set(parameterName, value);
312312
}
313313
}
314+
/**
315+
* GetEntitlement returns the entitlement for the provided project.
316+
*
317+
* Create a request for the method "locations.getEntitlement".
318+
*
319+
* This request holds the parameters needed by the apim server. After setting any optional
320+
* parameters, call the {@link GetEntitlement#execute()} method to invoke the remote operation.
321+
*
322+
* @param name Required. The entitlement resource name Format: projects/{project}/locations/{location}/entitlement
323+
* @return the request
324+
*/
325+
public GetEntitlement getEntitlement(java.lang.String name) throws java.io.IOException {
326+
GetEntitlement result = new GetEntitlement(name);
327+
initialize(result);
328+
return result;
329+
}
330+
331+
public class GetEntitlement extends APIManagementRequest<com.google.api.services.apim.v1alpha.model.Entitlement> {
332+
333+
private static final String REST_PATH = "v1alpha/{+name}";
334+
335+
private final java.util.regex.Pattern NAME_PATTERN =
336+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/entitlement$");
337+
338+
/**
339+
* GetEntitlement returns the entitlement for the provided project.
340+
*
341+
* Create a request for the method "locations.getEntitlement".
342+
*
343+
* This request holds the parameters needed by the the apim server. After setting any optional
344+
* parameters, call the {@link GetEntitlement#execute()} method to invoke the remote operation.
345+
* <p> {@link GetEntitlement#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl
346+
* ientRequest)} must be called to initialize this instance immediately after invoking the
347+
* constructor. </p>
348+
*
349+
* @param name Required. The entitlement resource name Format: projects/{project}/locations/{location}/entitlement
350+
* @since 1.13
351+
*/
352+
protected GetEntitlement(java.lang.String name) {
353+
super(APIManagement.this, "GET", REST_PATH, null, com.google.api.services.apim.v1alpha.model.Entitlement.class);
354+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
355+
if (!getSuppressPatternChecks()) {
356+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
357+
"Parameter name must conform to the pattern " +
358+
"^projects/[^/]+/locations/[^/]+/entitlement$");
359+
}
360+
}
361+
362+
@Override
363+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
364+
return super.executeUsingHead();
365+
}
366+
367+
@Override
368+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
369+
return super.buildHttpRequestUsingHead();
370+
}
371+
372+
@Override
373+
public GetEntitlement set$Xgafv(java.lang.String $Xgafv) {
374+
return (GetEntitlement) super.set$Xgafv($Xgafv);
375+
}
376+
377+
@Override
378+
public GetEntitlement setAccessToken(java.lang.String accessToken) {
379+
return (GetEntitlement) super.setAccessToken(accessToken);
380+
}
381+
382+
@Override
383+
public GetEntitlement setAlt(java.lang.String alt) {
384+
return (GetEntitlement) super.setAlt(alt);
385+
}
386+
387+
@Override
388+
public GetEntitlement setCallback(java.lang.String callback) {
389+
return (GetEntitlement) super.setCallback(callback);
390+
}
391+
392+
@Override
393+
public GetEntitlement setFields(java.lang.String fields) {
394+
return (GetEntitlement) super.setFields(fields);
395+
}
396+
397+
@Override
398+
public GetEntitlement setKey(java.lang.String key) {
399+
return (GetEntitlement) super.setKey(key);
400+
}
401+
402+
@Override
403+
public GetEntitlement setOauthToken(java.lang.String oauthToken) {
404+
return (GetEntitlement) super.setOauthToken(oauthToken);
405+
}
406+
407+
@Override
408+
public GetEntitlement setPrettyPrint(java.lang.Boolean prettyPrint) {
409+
return (GetEntitlement) super.setPrettyPrint(prettyPrint);
410+
}
411+
412+
@Override
413+
public GetEntitlement setQuotaUser(java.lang.String quotaUser) {
414+
return (GetEntitlement) super.setQuotaUser(quotaUser);
415+
}
416+
417+
@Override
418+
public GetEntitlement setUploadType(java.lang.String uploadType) {
419+
return (GetEntitlement) super.setUploadType(uploadType);
420+
}
421+
422+
@Override
423+
public GetEntitlement setUploadProtocol(java.lang.String uploadProtocol) {
424+
return (GetEntitlement) super.setUploadProtocol(uploadProtocol);
425+
}
426+
427+
/**
428+
* Required. The entitlement resource name Format:
429+
* projects/{project}/locations/{location}/entitlement
430+
*/
431+
@com.google.api.client.util.Key
432+
private java.lang.String name;
433+
434+
/** Required. The entitlement resource name Format: projects/{project}/locations/{location}/entitlement
435+
*/
436+
public java.lang.String getName() {
437+
return name;
438+
}
439+
440+
/**
441+
* Required. The entitlement resource name Format:
442+
* projects/{project}/locations/{location}/entitlement
443+
*/
444+
public GetEntitlement setName(java.lang.String name) {
445+
if (!getSuppressPatternChecks()) {
446+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
447+
"Parameter name must conform to the pattern " +
448+
"^projects/[^/]+/locations/[^/]+/entitlement$");
449+
}
450+
this.name = name;
451+
return this;
452+
}
453+
454+
@Override
455+
public GetEntitlement set(String parameterName, Object value) {
456+
return (GetEntitlement) super.set(parameterName, value);
457+
}
458+
}
314459
/**
315460
* Lists information about the supported locations for this service.
316461
*
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.apim.v1alpha.model;
18+
19+
/**
20+
* Entitlement stores data related to API Observation entitlement for a given project
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the API Management API. For a detailed explanation see:
24+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class Entitlement extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Whether API Observation is entitled.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.Boolean apiObservationEntitled;
38+
39+
/**
40+
* Project number of associated billing project that has Apigee and Advanced API Security
41+
* entitled.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
45+
private java.lang.Long billingProjectNumber;
46+
47+
/**
48+
* Output only. The time of the entitlement creation.
49+
* The value may be {@code null}.
50+
*/
51+
@com.google.api.client.util.Key
52+
private String createTime;
53+
54+
/**
55+
* Identifier. The entitlement resource name `projects/{project}/locations/{location}/entitlement`
56+
* The value may be {@code null}.
57+
*/
58+
@com.google.api.client.util.Key
59+
private java.lang.String name;
60+
61+
/**
62+
* Output only. The time of the entitlement update.
63+
* The value may be {@code null}.
64+
*/
65+
@com.google.api.client.util.Key
66+
private String updateTime;
67+
68+
/**
69+
* Whether API Observation is entitled.
70+
* @return value or {@code null} for none
71+
*/
72+
public java.lang.Boolean getApiObservationEntitled() {
73+
return apiObservationEntitled;
74+
}
75+
76+
/**
77+
* Whether API Observation is entitled.
78+
* @param apiObservationEntitled apiObservationEntitled or {@code null} for none
79+
*/
80+
public Entitlement setApiObservationEntitled(java.lang.Boolean apiObservationEntitled) {
81+
this.apiObservationEntitled = apiObservationEntitled;
82+
return this;
83+
}
84+
85+
/**
86+
* Project number of associated billing project that has Apigee and Advanced API Security
87+
* entitled.
88+
* @return value or {@code null} for none
89+
*/
90+
public java.lang.Long getBillingProjectNumber() {
91+
return billingProjectNumber;
92+
}
93+
94+
/**
95+
* Project number of associated billing project that has Apigee and Advanced API Security
96+
* entitled.
97+
* @param billingProjectNumber billingProjectNumber or {@code null} for none
98+
*/
99+
public Entitlement setBillingProjectNumber(java.lang.Long billingProjectNumber) {
100+
this.billingProjectNumber = billingProjectNumber;
101+
return this;
102+
}
103+
104+
/**
105+
* Output only. The time of the entitlement creation.
106+
* @return value or {@code null} for none
107+
*/
108+
public String getCreateTime() {
109+
return createTime;
110+
}
111+
112+
/**
113+
* Output only. The time of the entitlement creation.
114+
* @param createTime createTime or {@code null} for none
115+
*/
116+
public Entitlement setCreateTime(String createTime) {
117+
this.createTime = createTime;
118+
return this;
119+
}
120+
121+
/**
122+
* Identifier. The entitlement resource name `projects/{project}/locations/{location}/entitlement`
123+
* @return value or {@code null} for none
124+
*/
125+
public java.lang.String getName() {
126+
return name;
127+
}
128+
129+
/**
130+
* Identifier. The entitlement resource name `projects/{project}/locations/{location}/entitlement`
131+
* @param name name or {@code null} for none
132+
*/
133+
public Entitlement setName(java.lang.String name) {
134+
this.name = name;
135+
return this;
136+
}
137+
138+
/**
139+
* Output only. The time of the entitlement update.
140+
* @return value or {@code null} for none
141+
*/
142+
public String getUpdateTime() {
143+
return updateTime;
144+
}
145+
146+
/**
147+
* Output only. The time of the entitlement update.
148+
* @param updateTime updateTime or {@code null} for none
149+
*/
150+
public Entitlement setUpdateTime(String updateTime) {
151+
this.updateTime = updateTime;
152+
return this;
153+
}
154+
155+
@Override
156+
public Entitlement set(String fieldName, Object value) {
157+
return (Entitlement) super.set(fieldName, value);
158+
}
159+
160+
@Override
161+
public Entitlement clone() {
162+
return (Entitlement) super.clone();
163+
}
164+
165+
}

clients/google-api-services-apim/v1alpha/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-apim</artifactId>
11-
<version>v1alpha-rev20250521-2.0.0</version>
12-
<name>API Management API v1alpha-rev20250521-2.0.0</name>
11+
<version>v1alpha-rev20250730-2.0.0</version>
12+
<name>API Management API v1alpha-rev20250730-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-apim/v1alpha/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-apim</artifactId>
25-
<version>v1alpha-rev20250521-2.0.0</version>
25+
<version>v1alpha-rev20250730-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-apim:v1alpha-rev20250521-2.0.0'
38+
implementation 'com.google.apis:google-api-services-apim:v1alpha-rev20250730-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)