Skip to content

Commit fb446a2

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add client library support for AssetService v1 AnalyzeOrgPolicies API
feat: Add client library support for AssetService v1 AnalyzeOrgPolicyGovernedContainers API feat: Add client library support for AssetService v1 AnalyzeOrgPolicyGovernedAssets API PiperOrigin-RevId: 520696122
1 parent e941b6a commit fb446a2

3 files changed

Lines changed: 30 additions & 18 deletions

File tree

google/cloud/asset/v1/asset_service.proto

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -563,7 +563,7 @@ message CreateFeedRequest {
563563
// Required. The name of the project/folder/organization where this feed
564564
// should be created in. It can only be an organization number (such as
565565
// "organizations/123"), a folder number (such as "folders/123"), a project ID
566-
// (such as "projects/my-project-id")", or a project number (such as
566+
// (such as "projects/my-project-id"), or a project number (such as
567567
// "projects/12345").
568568
string parent = 1 [(google.api.field_behavior) = REQUIRED];
569569

@@ -1621,8 +1621,8 @@ message CreateSavedQueryRequest {
16211621
// Required. The name of the project/folder/organization where this
16221622
// saved_query should be created in. It can only be an organization number
16231623
// (such as "organizations/123"), a folder number (such as "folders/123"), a
1624-
// project ID (such as "projects/my-project-id")", or a project number (such
1625-
// as "projects/12345").
1624+
// project ID (such as "projects/my-project-id"), or a project number (such as
1625+
// "projects/12345").
16261626
string parent = 1 [
16271627
(google.api.field_behavior) = REQUIRED,
16281628
(google.api.resource_reference) = {
@@ -1684,8 +1684,8 @@ message ListSavedQueriesRequest {
16841684

16851685
// Optional. The maximum number of saved queries to return per page. The
16861686
// service may return fewer than this value. If unspecified, at most 50 will
1687-
// be returned.
1688-
// The maximum value is 1000; values above 1000 will be coerced to 1000.
1687+
// be returned. The maximum value is 1000; values above 1000 will be coerced
1688+
// to 1000.
16891689
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
16901690

16911691
// Optional. A page token, received from a previous `ListSavedQueries` call.
@@ -2523,19 +2523,19 @@ message AnalyzeOrgPolicyGovernedAssetsResponse {
25232523
// [AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name][google.cloud.asset.v1.AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name].
25242524
string parent = 2;
25252525

2526-
// The project that this resource belongs to, in the form of
2526+
// The project that this resource belongs to, in the format of
25272527
// projects/{PROJECT_NUMBER}. This field is available when the resource
25282528
// belongs to a project.
25292529
string project = 5;
25302530

2531-
// The folder(s) that this resource belongs to, in the form of
2531+
// The folder(s) that this resource belongs to, in the format of
25322532
// folders/{FOLDER_NUMBER}. This field is available when the resource
2533-
// belongs(directly or cascadingly) to one or more folders.
2533+
// belongs (directly or cascadingly) to one or more folders.
25342534
repeated string folders = 6;
25352535

2536-
// The organization that this resource belongs to, in the form of
2536+
// The organization that this resource belongs to, in the format of
25372537
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
2538-
// resource belongs(directly or cascadingly) to an organization.
2538+
// resource belongs (directly or cascadingly) to an organization.
25392539
string organization = 7;
25402540
}
25412541

@@ -2553,19 +2553,19 @@ message AnalyzeOrgPolicyGovernedAssetsResponse {
25532553
// The IAM policy directly set on the given resource.
25542554
google.iam.v1.Policy policy = 2;
25552555

2556-
// The project that this IAM policy belongs to, in the form of
2556+
// The project that this IAM policy belongs to, in the format of
25572557
// projects/{PROJECT_NUMBER}. This field is available when the IAM policy
25582558
// belongs to a project.
25592559
string project = 5;
25602560

2561-
// The folder(s) that this IAM policy belongs to, in the form of
2561+
// The folder(s) that this IAM policy belongs to, in the format of
25622562
// folders/{FOLDER_NUMBER}. This field is available when the IAM policy
2563-
// belongs(directly or cascadingly) to one or more folders.
2563+
// belongs (directly or cascadingly) to one or more folders.
25642564
repeated string folders = 6;
25652565

2566-
// The organization that this IAM policy belongs to, in the form of
2566+
// The organization that this IAM policy belongs to, in the format of
25672567
// organizations/{ORGANIZATION_NUMBER}. This field is available when the
2568-
// IAM policy belongs(directly or cascadingly) to an organization.
2568+
// IAM policy belongs (directly or cascadingly) to an organization.
25692569
string organization = 7;
25702570
}
25712571

google/cloud/asset/v1/assets.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -307,7 +307,7 @@ message RelatedAsset {
307307
}
308308

309309
// A result of Resource Search, containing information of a cloud resource.
310-
// Next ID: 31
310+
// Next ID: 32
311311
message ResourceSearchResult {
312312
// The full resource name of this resource. Example:
313313
// `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.

google/cloud/asset/v1/cloudasset_grpc_service_config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@
6262
{
6363
"service": "google.cloud.asset.v1.AssetService",
6464
"method": "DeleteSavedQuery"
65+
},
66+
{
67+
"service": "google.cloud.asset.v1.AssetService",
68+
"method": "AnalyzeOrgPolicies"
69+
},
70+
{
71+
"service": "google.cloud.asset.v1.AssetService",
72+
"method": "AnalyzeOrgPolicyGovernedContainers"
73+
},
74+
{
75+
"service": "google.cloud.asset.v1.AssetService",
76+
"method": "AnalyzeOrgPolicyGovernedAssets"
6577
}
6678
],
6779
"timeout": "60s",

0 commit comments

Comments
 (0)