Skip to content

Commit 917c897

Browse files
1 parent 786a79e commit 917c897

31 files changed

+494
-136
lines changed

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

clients/google-api-services-cloudasset/v1/2.0.0/com/google/api/services/cloudasset/v1/CloudAsset.java

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3839,14 +3839,36 @@ public AnalyzeOrgPolicies set(String parameterName, Object value) {
38393839
}
38403840
/**
38413841
* Analyzes organization policies governed assets (Google Cloud resources or policies) under a
3842-
* scope. This RPC supports custom constraints and the following 10 canned constraints: *
3843-
* storage.uniformBucketLevelAccess * iam.disableServiceAccountKeyCreation *
3844-
* iam.allowedPolicyMemberDomains * compute.vmExternalIpAccess *
3845-
* appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations * compute.trustedImageProjects
3846-
* * compute.skipDefaultNetworkCreation * compute.requireOsLogin *
3847-
* compute.disableNestedVirtualization This RPC only returns either resources of types [supported by
3848-
* search APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) or IAM
3849-
* policies.
3842+
* scope. This RPC supports custom constraints and the following canned constraints: *
3843+
* constraints/ainotebooks.accessMode * constraints/ainotebooks.disableFileDownloads *
3844+
* constraints/ainotebooks.disableRootAccess * constraints/ainotebooks.disableTerminal *
3845+
* constraints/ainotebooks.environmentOptions * constraints/ainotebooks.requireAutoUpgradeSchedule *
3846+
* constraints/ainotebooks.restrictVpcNetworks * constraints/compute.disableGuestAttributesAccess *
3847+
* constraints/compute.disableInstanceDataAccessApis *
3848+
* constraints/compute.disableNestedVirtualization * constraints/compute.disableSerialPortAccess *
3849+
* constraints/compute.disableSerialPortLogging * constraints/compute.disableVpcExternalIpv6 *
3850+
* constraints/compute.requireOsLogin * constraints/compute.requireShieldedVm *
3851+
* constraints/compute.restrictLoadBalancerCreationForTypes *
3852+
* constraints/compute.restrictProtocolForwardingCreationForTypes *
3853+
* constraints/compute.restrictXpnProjectLienRemoval *
3854+
* constraints/compute.setNewProjectDefaultToZonalDNSOnly *
3855+
* constraints/compute.skipDefaultNetworkCreation * constraints/compute.trustedImageProjects *
3856+
* constraints/compute.vmCanIpForward * constraints/compute.vmExternalIpAccess *
3857+
* constraints/gcp.detailedAuditLoggingMode * constraints/gcp.resourceLocations *
3858+
* constraints/iam.allowedPolicyMemberDomains *
3859+
* constraints/iam.automaticIamGrantsForDefaultServiceAccounts *
3860+
* constraints/iam.disableServiceAccountCreation * constraints/iam.disableServiceAccountKeyCreation
3861+
* * constraints/iam.disableServiceAccountKeyUpload *
3862+
* constraints/iam.restrictCrossProjectServiceAccountLienRemoval *
3863+
* constraints/iam.serviceAccountKeyExpiryHours * constraints/resourcemanager.accessBoundaries *
3864+
* constraints/resourcemanager.allowedExportDestinations *
3865+
* constraints/sql.restrictAuthorizedNetworks *
3866+
* constraints/sql.restrictNoncompliantDiagnosticDataAccess *
3867+
* constraints/sql.restrictNoncompliantResourceCreation * constraints/sql.restrictPublicIp *
3868+
* constraints/storage.publicAccessPrevention * constraints/storage.restrictAuthTypes *
3869+
* constraints/storage.uniformBucketLevelAccess This RPC only returns either resources of types
3870+
* [supported by search APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
3871+
* or IAM policies.
38503872
*
38513873
* Create a request for the method "v1.analyzeOrgPolicyGovernedAssets".
38523874
*
@@ -3875,14 +3897,38 @@ public class AnalyzeOrgPolicyGovernedAssets extends CloudAssetRequest<com.google
38753897

38763898
/**
38773899
* Analyzes organization policies governed assets (Google Cloud resources or policies) under a
3878-
* scope. This RPC supports custom constraints and the following 10 canned constraints: *
3879-
* storage.uniformBucketLevelAccess * iam.disableServiceAccountKeyCreation *
3880-
* iam.allowedPolicyMemberDomains * compute.vmExternalIpAccess *
3881-
* appengine.enforceServiceAccountActAsCheck * gcp.resourceLocations *
3882-
* compute.trustedImageProjects * compute.skipDefaultNetworkCreation * compute.requireOsLogin *
3883-
* compute.disableNestedVirtualization This RPC only returns either resources of types [supported
3884-
* by search APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types) or IAM
3885-
* policies.
3900+
* scope. This RPC supports custom constraints and the following canned constraints: *
3901+
* constraints/ainotebooks.accessMode * constraints/ainotebooks.disableFileDownloads *
3902+
* constraints/ainotebooks.disableRootAccess * constraints/ainotebooks.disableTerminal *
3903+
* constraints/ainotebooks.environmentOptions * constraints/ainotebooks.requireAutoUpgradeSchedule
3904+
* * constraints/ainotebooks.restrictVpcNetworks *
3905+
* constraints/compute.disableGuestAttributesAccess *
3906+
* constraints/compute.disableInstanceDataAccessApis *
3907+
* constraints/compute.disableNestedVirtualization * constraints/compute.disableSerialPortAccess *
3908+
* constraints/compute.disableSerialPortLogging * constraints/compute.disableVpcExternalIpv6 *
3909+
* constraints/compute.requireOsLogin * constraints/compute.requireShieldedVm *
3910+
* constraints/compute.restrictLoadBalancerCreationForTypes *
3911+
* constraints/compute.restrictProtocolForwardingCreationForTypes *
3912+
* constraints/compute.restrictXpnProjectLienRemoval *
3913+
* constraints/compute.setNewProjectDefaultToZonalDNSOnly *
3914+
* constraints/compute.skipDefaultNetworkCreation * constraints/compute.trustedImageProjects *
3915+
* constraints/compute.vmCanIpForward * constraints/compute.vmExternalIpAccess *
3916+
* constraints/gcp.detailedAuditLoggingMode * constraints/gcp.resourceLocations *
3917+
* constraints/iam.allowedPolicyMemberDomains *
3918+
* constraints/iam.automaticIamGrantsForDefaultServiceAccounts *
3919+
* constraints/iam.disableServiceAccountCreation *
3920+
* constraints/iam.disableServiceAccountKeyCreation *
3921+
* constraints/iam.disableServiceAccountKeyUpload *
3922+
* constraints/iam.restrictCrossProjectServiceAccountLienRemoval *
3923+
* constraints/iam.serviceAccountKeyExpiryHours * constraints/resourcemanager.accessBoundaries *
3924+
* constraints/resourcemanager.allowedExportDestinations *
3925+
* constraints/sql.restrictAuthorizedNetworks *
3926+
* constraints/sql.restrictNoncompliantDiagnosticDataAccess *
3927+
* constraints/sql.restrictNoncompliantResourceCreation * constraints/sql.restrictPublicIp *
3928+
* constraints/storage.publicAccessPrevention * constraints/storage.restrictAuthTypes *
3929+
* constraints/storage.uniformBucketLevelAccess This RPC only returns either resources of types
3930+
* [supported by search APIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
3931+
* or IAM policies.
38863932
*
38873933
* Create a request for the method "v1.analyzeOrgPolicyGovernedAssets".
38883934
*

clients/google-api-services-cloudasset/v1/2.0.0/com/google/api/services/cloudasset/v1/model/GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy.java

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* The asset type of the
35+
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource. Example:
36+
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
37+
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
38+
* asset types.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.lang.String assetType;
43+
3344
/**
3445
* The full resource name of the resource on which this IAM policy is set. Example:
3546
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud
@@ -73,6 +84,31 @@ public final class GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGover
7384
@com.google.api.client.util.Key
7485
private java.lang.String project;
7586

87+
/**
88+
* The asset type of the
89+
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource. Example:
90+
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
91+
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
92+
* asset types.
93+
* @return value or {@code null} for none
94+
*/
95+
public java.lang.String getAssetType() {
96+
return assetType;
97+
}
98+
99+
/**
100+
* The asset type of the
101+
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedIamPolicy.attached_resource. Example:
102+
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
103+
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
104+
* asset types.
105+
* @param assetType assetType or {@code null} for none
106+
*/
107+
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedIamPolicy setAssetType(java.lang.String assetType) {
108+
this.assetType = assetType;
109+
return this;
110+
}
111+
76112
/**
77113
* The full resource name of the resource on which this IAM policy is set. Example:
78114
* `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`. See [Cloud

clients/google-api-services-cloudasset/v1/2.0.0/com/google/api/services/cloudasset/v1/model/GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource.java

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@
3030
@SuppressWarnings("javadoc")
3131
public final class GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* The asset type of the
35+
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name Example:
36+
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
37+
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
38+
* asset types.
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.lang.String assetType;
43+
44+
/**
45+
* The effective tags on this resource.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.util.List<EffectiveTagDetails> effectiveTags;
50+
51+
static {
52+
// hack to force ProGuard to consider EffectiveTagDetails used, since otherwise it would be stripped out
53+
// see https://github.com/google/google-api-java-client/issues/543
54+
com.google.api.client.util.Data.nullOf(EffectiveTagDetails.class);
55+
}
56+
3357
/**
3458
* The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This
3559
* field is available when the resource belongs (directly or cascadingly) to one or more folders.
@@ -71,6 +95,48 @@ public final class GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGover
7195
@com.google.api.client.util.Key
7296
private java.lang.String project;
7397

98+
/**
99+
* The asset type of the
100+
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name Example:
101+
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
102+
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
103+
* asset types.
104+
* @return value or {@code null} for none
105+
*/
106+
public java.lang.String getAssetType() {
107+
return assetType;
108+
}
109+
110+
/**
111+
* The asset type of the
112+
* AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name Example:
113+
* `cloudresourcemanager.googleapis.com/Project` See [Cloud Asset Inventory Supported Asset
114+
* Types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) for all supported
115+
* asset types.
116+
* @param assetType assetType or {@code null} for none
117+
*/
118+
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource setAssetType(java.lang.String assetType) {
119+
this.assetType = assetType;
120+
return this;
121+
}
122+
123+
/**
124+
* The effective tags on this resource.
125+
* @return value or {@code null} for none
126+
*/
127+
public java.util.List<EffectiveTagDetails> getEffectiveTags() {
128+
return effectiveTags;
129+
}
130+
131+
/**
132+
* The effective tags on this resource.
133+
* @param effectiveTags effectiveTags or {@code null} for none
134+
*/
135+
public GoogleCloudAssetV1AnalyzeOrgPolicyGovernedAssetsResponseGovernedResource setEffectiveTags(java.util.List<EffectiveTagDetails> effectiveTags) {
136+
this.effectiveTags = effectiveTags;
137+
return this;
138+
}
139+
74140
/**
75141
* The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This
76142
* field is available when the resource belongs (directly or cascadingly) to one or more folders.

clients/google-api-services-cloudasset/v1/2.0.0/com/google/api/services/cloudasset/v1/model/GoogleCloudAssetV1GovernedContainer.java

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ public final class GoogleCloudAssetV1GovernedContainer extends com.google.api.cl
4141
@com.google.api.client.util.Key
4242
private AnalyzerOrgPolicy consolidatedPolicy;
4343

44+
/**
45+
* The effective tags on this resource.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.util.List<EffectiveTagDetails> effectiveTags;
50+
51+
static {
52+
// hack to force ProGuard to consider EffectiveTagDetails used, since otherwise it would be stripped out
53+
// see https://github.com/google/google-api-java-client/issues/543
54+
com.google.api.client.util.Data.nullOf(EffectiveTagDetails.class);
55+
}
56+
57+
/**
58+
* The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This
59+
* field is available when the resource belongs (directly or cascadingly) to one or more folders.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private java.util.List<java.lang.String> folders;
64+
4465
/**
4566
* The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
4667
* of an organization/folder/project resource.
@@ -49,6 +70,15 @@ public final class GoogleCloudAssetV1GovernedContainer extends com.google.api.cl
4970
@com.google.api.client.util.Key
5071
private java.lang.String fullResourceName;
5172

73+
/**
74+
* The organization that this resource belongs to, in the format of
75+
* organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs
76+
* (directly or cascadingly) to an organization.
77+
* The value may be {@code null}.
78+
*/
79+
@com.google.api.client.util.Key
80+
private java.lang.String organization;
81+
5282
/**
5383
* The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
5484
* of the parent of
@@ -74,6 +104,14 @@ public final class GoogleCloudAssetV1GovernedContainer extends com.google.api.cl
74104
com.google.api.client.util.Data.nullOf(AnalyzerOrgPolicy.class);
75105
}
76106

107+
/**
108+
* The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This
109+
* field is available when the resource belongs to a project.
110+
* The value may be {@code null}.
111+
*/
112+
@com.google.api.client.util.Key
113+
private java.lang.String project;
114+
77115
/**
78116
* The consolidated organization policy for the analyzed resource. The consolidated organization
79117
* policy is computed by merging and evaluating
@@ -99,6 +137,42 @@ public GoogleCloudAssetV1GovernedContainer setConsolidatedPolicy(AnalyzerOrgPoli
99137
return this;
100138
}
101139

140+
/**
141+
* The effective tags on this resource.
142+
* @return value or {@code null} for none
143+
*/
144+
public java.util.List<EffectiveTagDetails> getEffectiveTags() {
145+
return effectiveTags;
146+
}
147+
148+
/**
149+
* The effective tags on this resource.
150+
* @param effectiveTags effectiveTags or {@code null} for none
151+
*/
152+
public GoogleCloudAssetV1GovernedContainer setEffectiveTags(java.util.List<EffectiveTagDetails> effectiveTags) {
153+
this.effectiveTags = effectiveTags;
154+
return this;
155+
}
156+
157+
/**
158+
* The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This
159+
* field is available when the resource belongs (directly or cascadingly) to one or more folders.
160+
* @return value or {@code null} for none
161+
*/
162+
public java.util.List<java.lang.String> getFolders() {
163+
return folders;
164+
}
165+
166+
/**
167+
* The folder(s) that this resource belongs to, in the format of folders/{FOLDER_NUMBER}. This
168+
* field is available when the resource belongs (directly or cascadingly) to one or more folders.
169+
* @param folders folders or {@code null} for none
170+
*/
171+
public GoogleCloudAssetV1GovernedContainer setFolders(java.util.List<java.lang.String> folders) {
172+
this.folders = folders;
173+
return this;
174+
}
175+
102176
/**
103177
* The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
104178
* of an organization/folder/project resource.
@@ -118,6 +192,27 @@ public GoogleCloudAssetV1GovernedContainer setFullResourceName(java.lang.String
118192
return this;
119193
}
120194

195+
/**
196+
* The organization that this resource belongs to, in the format of
197+
* organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs
198+
* (directly or cascadingly) to an organization.
199+
* @return value or {@code null} for none
200+
*/
201+
public java.lang.String getOrganization() {
202+
return organization;
203+
}
204+
205+
/**
206+
* The organization that this resource belongs to, in the format of
207+
* organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs
208+
* (directly or cascadingly) to an organization.
209+
* @param organization organization or {@code null} for none
210+
*/
211+
public GoogleCloudAssetV1GovernedContainer setOrganization(java.lang.String organization) {
212+
this.organization = organization;
213+
return this;
214+
}
215+
121216
/**
122217
* The [full resource name] (https://cloud.google.com/asset-inventory/docs/resource-name-format)
123218
* of the parent of
@@ -162,6 +257,25 @@ public GoogleCloudAssetV1GovernedContainer setPolicyBundle(java.util.List<Analyz
162257
return this;
163258
}
164259

260+
/**
261+
* The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This
262+
* field is available when the resource belongs to a project.
263+
* @return value or {@code null} for none
264+
*/
265+
public java.lang.String getProject() {
266+
return project;
267+
}
268+
269+
/**
270+
* The project that this resource belongs to, in the format of projects/{PROJECT_NUMBER}. This
271+
* field is available when the resource belongs to a project.
272+
* @param project project or {@code null} for none
273+
*/
274+
public GoogleCloudAssetV1GovernedContainer setProject(java.lang.String project) {
275+
this.project = project;
276+
return this;
277+
}
278+
165279
@Override
166280
public GoogleCloudAssetV1GovernedContainer set(String fieldName, Object value) {
167281
return (GoogleCloudAssetV1GovernedContainer) super.set(fieldName, value);

0 commit comments

Comments
 (0)