google-cloud-asset-v1 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/asset/v1/asset_service/client.rb +37 -5
- data/lib/google/cloud/asset/v1/asset_service_pb.rb +2 -0
- data/lib/google/cloud/asset/v1/assets_pb.rb +3 -0
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/proto_docs/google/cloud/asset/v1/asset_service.rb +34 -0
- data/proto_docs/google/cloud/asset/v1/assets.rb +30 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6201e73125641f2c16d4357b2622a689ced22dde2ab43a1ce72cce119ad83670
|
4
|
+
data.tar.gz: fdd74f31a90c45b65a1b29731bb6c6d8bc44a0e61dd68a8fe5b52bb012b2ed9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1ed23b1309e0dc5a030beec9045e7dfa6920b425b346031982514a161222dbefa2b8996f96d3e3df873519dd7a1db69da5cd0f2b7a736a5a1288ff179a3c8da
|
7
|
+
data.tar.gz: 7d81517633b9df2849a704c48a9e939afeb4c280ab27259f235206ca852330d01971e9eeb5e76c239e936e8e9930d7a046938bd923b13a4a5eb6d86326f96fc8
|
@@ -111,20 +111,20 @@ module Google
|
|
111
111
|
retry_codes: [4, 14]
|
112
112
|
}
|
113
113
|
|
114
|
-
default_config.rpcs.search_all_resources.timeout =
|
114
|
+
default_config.rpcs.search_all_resources.timeout = 30.0
|
115
115
|
default_config.rpcs.search_all_resources.retry_policy = {
|
116
116
|
initial_delay: 0.1,
|
117
117
|
max_delay: 60.0,
|
118
118
|
multiplier: 1.3,
|
119
|
-
retry_codes: [
|
119
|
+
retry_codes: [14]
|
120
120
|
}
|
121
121
|
|
122
|
-
default_config.rpcs.search_all_iam_policies.timeout =
|
122
|
+
default_config.rpcs.search_all_iam_policies.timeout = 30.0
|
123
123
|
default_config.rpcs.search_all_iam_policies.retry_policy = {
|
124
124
|
initial_delay: 0.1,
|
125
125
|
max_delay: 60.0,
|
126
126
|
multiplier: 1.3,
|
127
|
-
retry_codes: [
|
127
|
+
retry_codes: [14]
|
128
128
|
}
|
129
129
|
|
130
130
|
default_config.rpcs.analyze_iam_policy.timeout = 300.0
|
@@ -1084,7 +1084,7 @@ module Google
|
|
1084
1084
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1085
1085
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1086
1086
|
#
|
1087
|
-
# @overload search_all_iam_policies(scope: nil, query: nil, page_size: nil, page_token: nil)
|
1087
|
+
# @overload search_all_iam_policies(scope: nil, query: nil, page_size: nil, page_token: nil, asset_types: nil, order_by: nil)
|
1088
1088
|
# Pass arguments to `search_all_iam_policies` via keyword arguments. Note that at
|
1089
1089
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1090
1090
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1141,6 +1141,10 @@ module Google
|
|
1141
1141
|
# * `resource:(instance1 OR instance2) policy:amy` to find
|
1142
1142
|
# IAM policy bindings that are set on resources "instance1" or
|
1143
1143
|
# "instance2" and also specify user "amy".
|
1144
|
+
# * `roles:roles/compute.admin` to find IAM policy bindings that specify the
|
1145
|
+
# Compute Admin role.
|
1146
|
+
# * `memberTypes:user` to find IAM policy bindings that contain the "user"
|
1147
|
+
# member type.
|
1144
1148
|
# @param page_size [::Integer]
|
1145
1149
|
# Optional. The page size for search result pagination. Page size is capped at 500 even
|
1146
1150
|
# if a larger value is given. If set to zero, server will pick an appropriate
|
@@ -1151,6 +1155,34 @@ module Google
|
|
1151
1155
|
# this method. `page_token` must be the value of `next_page_token` from the
|
1152
1156
|
# previous response. The values of all other method parameters must be
|
1153
1157
|
# identical to those in the previous call.
|
1158
|
+
# @param asset_types [::Array<::String>]
|
1159
|
+
# Optional. A list of asset types that the IAM policies are attached to. If empty, it
|
1160
|
+
# will search the IAM policies that are attached to all the [searchable asset
|
1161
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
|
1162
|
+
#
|
1163
|
+
# Regular expressions are also supported. For example:
|
1164
|
+
#
|
1165
|
+
# * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
|
1166
|
+
# starts with "compute.googleapis.com".
|
1167
|
+
# * ".*Instance" snapshots IAM policies attached to asset type ends with
|
1168
|
+
# "Instance".
|
1169
|
+
# * ".*Instance.*" snapshots IAM policies attached to asset type contains
|
1170
|
+
# "Instance".
|
1171
|
+
#
|
1172
|
+
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
|
1173
|
+
# regular expression syntax. If the regular expression does not match any
|
1174
|
+
# supported asset type, an INVALID_ARGUMENT error will be returned.
|
1175
|
+
# @param order_by [::String]
|
1176
|
+
# Optional. A comma-separated list of fields specifying the sorting order of the
|
1177
|
+
# results. The default order is ascending. Add " DESC" after the field name
|
1178
|
+
# to indicate descending order. Redundant space characters are ignored.
|
1179
|
+
# Example: "assetType DESC, resource".
|
1180
|
+
# Only singular primitive fields in the response are sortable:
|
1181
|
+
# * resource
|
1182
|
+
# * assetType
|
1183
|
+
# * project
|
1184
|
+
# All the other fields such as repeated fields (e.g., `folders`) and
|
1185
|
+
# non-primitive fields (e.g., `policy`) are not supported.
|
1154
1186
|
#
|
1155
1187
|
# @yield [response, operation] Access the result along with the RPC operation
|
1156
1188
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Asset::V1::IamPolicySearchResult>]
|
@@ -140,6 +140,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
140
140
|
optional :query, :string, 2
|
141
141
|
optional :page_size, :int32, 3
|
142
142
|
optional :page_token, :string, 4
|
143
|
+
repeated :asset_types, :string, 5
|
144
|
+
optional :order_by, :string, 7
|
143
145
|
end
|
144
146
|
add_message "google.cloud.asset.v1.SearchAllIamPoliciesResponse" do
|
145
147
|
repeated :results, :message, 1, "google.cloud.asset.v1.IamPolicySearchResult"
|
@@ -80,7 +80,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
80
80
|
end
|
81
81
|
add_message "google.cloud.asset.v1.IamPolicySearchResult" do
|
82
82
|
optional :resource, :string, 1
|
83
|
+
optional :asset_type, :string, 5
|
83
84
|
optional :project, :string, 2
|
85
|
+
repeated :folders, :string, 6
|
86
|
+
optional :organization, :string, 7
|
84
87
|
optional :policy, :message, 3, "google.iam.v1.Policy"
|
85
88
|
optional :explanation, :message, 4, "google.cloud.asset.v1.IamPolicySearchResult.Explanation"
|
86
89
|
end
|
@@ -706,6 +706,10 @@ module Google
|
|
706
706
|
# * `resource:(instance1 OR instance2) policy:amy` to find
|
707
707
|
# IAM policy bindings that are set on resources "instance1" or
|
708
708
|
# "instance2" and also specify user "amy".
|
709
|
+
# * `roles:roles/compute.admin` to find IAM policy bindings that specify the
|
710
|
+
# Compute Admin role.
|
711
|
+
# * `memberTypes:user` to find IAM policy bindings that contain the "user"
|
712
|
+
# member type.
|
709
713
|
# @!attribute [rw] page_size
|
710
714
|
# @return [::Integer]
|
711
715
|
# Optional. The page size for search result pagination. Page size is capped at 500 even
|
@@ -718,6 +722,36 @@ module Google
|
|
718
722
|
# this method. `page_token` must be the value of `next_page_token` from the
|
719
723
|
# previous response. The values of all other method parameters must be
|
720
724
|
# identical to those in the previous call.
|
725
|
+
# @!attribute [rw] asset_types
|
726
|
+
# @return [::Array<::String>]
|
727
|
+
# Optional. A list of asset types that the IAM policies are attached to. If empty, it
|
728
|
+
# will search the IAM policies that are attached to all the [searchable asset
|
729
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
|
730
|
+
#
|
731
|
+
# Regular expressions are also supported. For example:
|
732
|
+
#
|
733
|
+
# * "compute.googleapis.com.*" snapshots IAM policies attached to asset type
|
734
|
+
# starts with "compute.googleapis.com".
|
735
|
+
# * ".*Instance" snapshots IAM policies attached to asset type ends with
|
736
|
+
# "Instance".
|
737
|
+
# * ".*Instance.*" snapshots IAM policies attached to asset type contains
|
738
|
+
# "Instance".
|
739
|
+
#
|
740
|
+
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
|
741
|
+
# regular expression syntax. If the regular expression does not match any
|
742
|
+
# supported asset type, an INVALID_ARGUMENT error will be returned.
|
743
|
+
# @!attribute [rw] order_by
|
744
|
+
# @return [::String]
|
745
|
+
# Optional. A comma-separated list of fields specifying the sorting order of the
|
746
|
+
# results. The default order is ascending. Add " DESC" after the field name
|
747
|
+
# to indicate descending order. Redundant space characters are ignored.
|
748
|
+
# Example: "assetType DESC, resource".
|
749
|
+
# Only singular primitive fields in the response are sortable:
|
750
|
+
# * resource
|
751
|
+
# * assetType
|
752
|
+
# * project
|
753
|
+
# All the other fields such as repeated fields (e.g., `folders`) and
|
754
|
+
# non-primitive fields (e.g., `policy`) are not supported.
|
721
755
|
class SearchAllIamPoliciesRequest
|
722
756
|
include ::Google::Protobuf::MessageExts
|
723
757
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -443,6 +443,14 @@ module Google
|
|
443
443
|
# To search against the `resource`:
|
444
444
|
#
|
445
445
|
# * use a field query. Example: `resource:organizations/123`
|
446
|
+
# @!attribute [rw] asset_type
|
447
|
+
# @return [::String]
|
448
|
+
# The type of the resource associated with this IAM policy. Example:
|
449
|
+
# `compute.googleapis.com/Disk`.
|
450
|
+
#
|
451
|
+
# To search against the `asset_type`:
|
452
|
+
#
|
453
|
+
# * specify the `asset_types` field in your search request.
|
446
454
|
# @!attribute [rw] project
|
447
455
|
# @return [::String]
|
448
456
|
# The project that the associated GCP resource belongs to, in the form of
|
@@ -454,6 +462,28 @@ module Google
|
|
454
462
|
# To search against the `project`:
|
455
463
|
#
|
456
464
|
# * specify the `scope` field as this project in your search request.
|
465
|
+
# @!attribute [rw] folders
|
466
|
+
# @return [::Array<::String>]
|
467
|
+
# The folder(s) that the IAM policy belongs to, in the form of
|
468
|
+
# folders/\\{FOLDER_NUMBER}. This field is available when the IAM policy
|
469
|
+
# belongs to one or more folders.
|
470
|
+
#
|
471
|
+
# To search against `folders`:
|
472
|
+
#
|
473
|
+
# * use a field query. Example: `folders:(123 OR 456)`
|
474
|
+
# * use a free text query. Example: `123`
|
475
|
+
# * specify the `scope` field as this folder in your search request.
|
476
|
+
# @!attribute [rw] organization
|
477
|
+
# @return [::String]
|
478
|
+
# The organization that the IAM policy belongs to, in the form
|
479
|
+
# of organizations/\\{ORGANIZATION_NUMBER}. This field is available when the
|
480
|
+
# IAM policy belongs to an organization.
|
481
|
+
#
|
482
|
+
# To search against `organization`:
|
483
|
+
#
|
484
|
+
# * use a field query. Example: `organization:123`
|
485
|
+
# * use a free text query. Example: `123`
|
486
|
+
# * specify the `scope` field as this organization in your search request.
|
457
487
|
# @!attribute [rw] policy
|
458
488
|
# @return [::Google::Iam::V1::Policy]
|
459
489
|
# The IAM policy directly set on the given resource. Note that the original
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|