Skip to content

Commit c3db8e1

Browse files
1 parent dfcdd4a commit c3db8e1

File tree

4 files changed

+296
-6
lines changed

4 files changed

+296
-6
lines changed

clients/google-api-services-analyticshub/v1/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-analyticshub</artifactId>
25-
<version>v1-rev20230923-2.0.0</version>
25+
<version>v1-rev20231106-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-analyticshub:v1-rev20230923-2.0.0'
38+
implementation 'com.google.apis:google-api-services-analyticshub:v1-rev20231106-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-analyticshub/v1/2.0.0/com/google/api/services/analyticshub/v1/AnalyticsHub.java

Lines changed: 290 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3938,6 +3938,151 @@ public Get set(String parameterName, Object value) {
39383938
return (Get) super.set(parameterName, value);
39393939
}
39403940
}
3941+
/**
3942+
* Gets the IAM policy.
3943+
*
3944+
* Create a request for the method "subscriptions.getIamPolicy".
3945+
*
3946+
* This request holds the parameters needed by the analyticshub server. After setting any optional
3947+
* parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.
3948+
*
3949+
* @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
3950+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
3951+
* this field.
3952+
* @param content the {@link com.google.api.services.analyticshub.v1.model.GetIamPolicyRequest}
3953+
* @return the request
3954+
*/
3955+
public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.analyticshub.v1.model.GetIamPolicyRequest content) throws java.io.IOException {
3956+
GetIamPolicy result = new GetIamPolicy(resource, content);
3957+
initialize(result);
3958+
return result;
3959+
}
3960+
3961+
public class GetIamPolicy extends AnalyticsHubRequest<com.google.api.services.analyticshub.v1.model.Policy> {
3962+
3963+
private static final String REST_PATH = "v1/{+resource}:getIamPolicy";
3964+
3965+
private final java.util.regex.Pattern RESOURCE_PATTERN =
3966+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/subscriptions/[^/]+$");
3967+
3968+
/**
3969+
* Gets the IAM policy.
3970+
*
3971+
* Create a request for the method "subscriptions.getIamPolicy".
3972+
*
3973+
* This request holds the parameters needed by the the analyticshub server. After setting any
3974+
* optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote
3975+
* operation. <p> {@link
3976+
* GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
3977+
* must be called to initialize this instance immediately after invoking the constructor. </p>
3978+
*
3979+
* @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
3980+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
3981+
* this field.
3982+
* @param content the {@link com.google.api.services.analyticshub.v1.model.GetIamPolicyRequest}
3983+
* @since 1.13
3984+
*/
3985+
protected GetIamPolicy(java.lang.String resource, com.google.api.services.analyticshub.v1.model.GetIamPolicyRequest content) {
3986+
super(AnalyticsHub.this, "POST", REST_PATH, content, com.google.api.services.analyticshub.v1.model.Policy.class);
3987+
this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified.");
3988+
if (!getSuppressPatternChecks()) {
3989+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
3990+
"Parameter resource must conform to the pattern " +
3991+
"^projects/[^/]+/locations/[^/]+/subscriptions/[^/]+$");
3992+
}
3993+
}
3994+
3995+
@Override
3996+
public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) {
3997+
return (GetIamPolicy) super.set$Xgafv($Xgafv);
3998+
}
3999+
4000+
@Override
4001+
public GetIamPolicy setAccessToken(java.lang.String accessToken) {
4002+
return (GetIamPolicy) super.setAccessToken(accessToken);
4003+
}
4004+
4005+
@Override
4006+
public GetIamPolicy setAlt(java.lang.String alt) {
4007+
return (GetIamPolicy) super.setAlt(alt);
4008+
}
4009+
4010+
@Override
4011+
public GetIamPolicy setCallback(java.lang.String callback) {
4012+
return (GetIamPolicy) super.setCallback(callback);
4013+
}
4014+
4015+
@Override
4016+
public GetIamPolicy setFields(java.lang.String fields) {
4017+
return (GetIamPolicy) super.setFields(fields);
4018+
}
4019+
4020+
@Override
4021+
public GetIamPolicy setKey(java.lang.String key) {
4022+
return (GetIamPolicy) super.setKey(key);
4023+
}
4024+
4025+
@Override
4026+
public GetIamPolicy setOauthToken(java.lang.String oauthToken) {
4027+
return (GetIamPolicy) super.setOauthToken(oauthToken);
4028+
}
4029+
4030+
@Override
4031+
public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
4032+
return (GetIamPolicy) super.setPrettyPrint(prettyPrint);
4033+
}
4034+
4035+
@Override
4036+
public GetIamPolicy setQuotaUser(java.lang.String quotaUser) {
4037+
return (GetIamPolicy) super.setQuotaUser(quotaUser);
4038+
}
4039+
4040+
@Override
4041+
public GetIamPolicy setUploadType(java.lang.String uploadType) {
4042+
return (GetIamPolicy) super.setUploadType(uploadType);
4043+
}
4044+
4045+
@Override
4046+
public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) {
4047+
return (GetIamPolicy) super.setUploadProtocol(uploadProtocol);
4048+
}
4049+
4050+
/**
4051+
* REQUIRED: The resource for which the policy is being requested. See [Resource
4052+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
4053+
* for this field.
4054+
*/
4055+
@com.google.api.client.util.Key
4056+
private java.lang.String resource;
4057+
4058+
/** REQUIRED: The resource for which the policy is being requested. See [Resource
4059+
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
4060+
field.
4061+
*/
4062+
public java.lang.String getResource() {
4063+
return resource;
4064+
}
4065+
4066+
/**
4067+
* REQUIRED: The resource for which the policy is being requested. See [Resource
4068+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
4069+
* for this field.
4070+
*/
4071+
public GetIamPolicy setResource(java.lang.String resource) {
4072+
if (!getSuppressPatternChecks()) {
4073+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
4074+
"Parameter resource must conform to the pattern " +
4075+
"^projects/[^/]+/locations/[^/]+/subscriptions/[^/]+$");
4076+
}
4077+
this.resource = resource;
4078+
return this;
4079+
}
4080+
4081+
@Override
4082+
public GetIamPolicy set(String parameterName, Object value) {
4083+
return (GetIamPolicy) super.set(parameterName, value);
4084+
}
4085+
}
39414086
/**
39424087
* Lists all subscriptions in a given project and location.
39434088
*
@@ -4412,6 +4557,151 @@ public Revoke set(String parameterName, Object value) {
44124557
return (Revoke) super.set(parameterName, value);
44134558
}
44144559
}
4560+
/**
4561+
* Sets the IAM policy.
4562+
*
4563+
* Create a request for the method "subscriptions.setIamPolicy".
4564+
*
4565+
* This request holds the parameters needed by the analyticshub server. After setting any optional
4566+
* parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.
4567+
*
4568+
* @param resource REQUIRED: The resource for which the policy is being specified. See [Resource
4569+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
4570+
* this field.
4571+
* @param content the {@link com.google.api.services.analyticshub.v1.model.SetIamPolicyRequest}
4572+
* @return the request
4573+
*/
4574+
public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.analyticshub.v1.model.SetIamPolicyRequest content) throws java.io.IOException {
4575+
SetIamPolicy result = new SetIamPolicy(resource, content);
4576+
initialize(result);
4577+
return result;
4578+
}
4579+
4580+
public class SetIamPolicy extends AnalyticsHubRequest<com.google.api.services.analyticshub.v1.model.Policy> {
4581+
4582+
private static final String REST_PATH = "v1/{+resource}:setIamPolicy";
4583+
4584+
private final java.util.regex.Pattern RESOURCE_PATTERN =
4585+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/subscriptions/[^/]+$");
4586+
4587+
/**
4588+
* Sets the IAM policy.
4589+
*
4590+
* Create a request for the method "subscriptions.setIamPolicy".
4591+
*
4592+
* This request holds the parameters needed by the the analyticshub server. After setting any
4593+
* optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote
4594+
* operation. <p> {@link
4595+
* SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
4596+
* must be called to initialize this instance immediately after invoking the constructor. </p>
4597+
*
4598+
* @param resource REQUIRED: The resource for which the policy is being specified. See [Resource
4599+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
4600+
* this field.
4601+
* @param content the {@link com.google.api.services.analyticshub.v1.model.SetIamPolicyRequest}
4602+
* @since 1.13
4603+
*/
4604+
protected SetIamPolicy(java.lang.String resource, com.google.api.services.analyticshub.v1.model.SetIamPolicyRequest content) {
4605+
super(AnalyticsHub.this, "POST", REST_PATH, content, com.google.api.services.analyticshub.v1.model.Policy.class);
4606+
this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified.");
4607+
if (!getSuppressPatternChecks()) {
4608+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
4609+
"Parameter resource must conform to the pattern " +
4610+
"^projects/[^/]+/locations/[^/]+/subscriptions/[^/]+$");
4611+
}
4612+
}
4613+
4614+
@Override
4615+
public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) {
4616+
return (SetIamPolicy) super.set$Xgafv($Xgafv);
4617+
}
4618+
4619+
@Override
4620+
public SetIamPolicy setAccessToken(java.lang.String accessToken) {
4621+
return (SetIamPolicy) super.setAccessToken(accessToken);
4622+
}
4623+
4624+
@Override
4625+
public SetIamPolicy setAlt(java.lang.String alt) {
4626+
return (SetIamPolicy) super.setAlt(alt);
4627+
}
4628+
4629+
@Override
4630+
public SetIamPolicy setCallback(java.lang.String callback) {
4631+
return (SetIamPolicy) super.setCallback(callback);
4632+
}
4633+
4634+
@Override
4635+
public SetIamPolicy setFields(java.lang.String fields) {
4636+
return (SetIamPolicy) super.setFields(fields);
4637+
}
4638+
4639+
@Override
4640+
public SetIamPolicy setKey(java.lang.String key) {
4641+
return (SetIamPolicy) super.setKey(key);
4642+
}
4643+
4644+
@Override
4645+
public SetIamPolicy setOauthToken(java.lang.String oauthToken) {
4646+
return (SetIamPolicy) super.setOauthToken(oauthToken);
4647+
}
4648+
4649+
@Override
4650+
public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
4651+
return (SetIamPolicy) super.setPrettyPrint(prettyPrint);
4652+
}
4653+
4654+
@Override
4655+
public SetIamPolicy setQuotaUser(java.lang.String quotaUser) {
4656+
return (SetIamPolicy) super.setQuotaUser(quotaUser);
4657+
}
4658+
4659+
@Override
4660+
public SetIamPolicy setUploadType(java.lang.String uploadType) {
4661+
return (SetIamPolicy) super.setUploadType(uploadType);
4662+
}
4663+
4664+
@Override
4665+
public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) {
4666+
return (SetIamPolicy) super.setUploadProtocol(uploadProtocol);
4667+
}
4668+
4669+
/**
4670+
* REQUIRED: The resource for which the policy is being specified. See [Resource
4671+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
4672+
* for this field.
4673+
*/
4674+
@com.google.api.client.util.Key
4675+
private java.lang.String resource;
4676+
4677+
/** REQUIRED: The resource for which the policy is being specified. See [Resource
4678+
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
4679+
field.
4680+
*/
4681+
public java.lang.String getResource() {
4682+
return resource;
4683+
}
4684+
4685+
/**
4686+
* REQUIRED: The resource for which the policy is being specified. See [Resource
4687+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
4688+
* for this field.
4689+
*/
4690+
public SetIamPolicy setResource(java.lang.String resource) {
4691+
if (!getSuppressPatternChecks()) {
4692+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
4693+
"Parameter resource must conform to the pattern " +
4694+
"^projects/[^/]+/locations/[^/]+/subscriptions/[^/]+$");
4695+
}
4696+
this.resource = resource;
4697+
return this;
4698+
}
4699+
4700+
@Override
4701+
public SetIamPolicy set(String parameterName, Object value) {
4702+
return (SetIamPolicy) super.set(parameterName, value);
4703+
}
4704+
}
44154705

44164706
}
44174707
}

clients/google-api-services-analyticshub/v1/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-analyticshub</artifactId>
11-
<version>v1-rev20230923-2.0.0</version>
12-
<name>Analytics Hub API v1-rev20230923-2.0.0</name>
11+
<version>v1-rev20231106-2.0.0</version>
12+
<name>Analytics Hub API v1-rev20231106-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-analyticshub/v1/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-analyticshub</artifactId>
25-
<version>v1-rev20230923-2.0.0</version>
25+
<version>v1-rev20231106-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-analyticshub:v1-rev20230923-2.0.0'
38+
implementation 'com.google.apis:google-api-services-analyticshub:v1-rev20231106-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)