google-cloud-asset-v1 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/asset/v1/asset_service/client.rb +130 -105
- data/lib/google/cloud/asset/v1/asset_service/operations.rb +1 -1
- data/lib/google/cloud/asset/v1/asset_service_pb.rb +23 -0
- data/lib/google/cloud/asset/v1/asset_service_services_pb.rb +22 -23
- data/lib/google/cloud/asset/v1/assets_pb.rb +1 -1
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/asset/v1/asset_service.rb +224 -90
- data/proto_docs/google/cloud/asset/v1/assets.rb +35 -25
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a33096b1fa6262e9bd69d258c12d8cd8ff8efa76c1537c0d49e4e2941e3516e
|
4
|
+
data.tar.gz: aa07a54ad150dd6707ea2f775a46730cdf9275c8c57b943f0d7dd8c7385aa210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d83fa78c7480975dc0ce2102c27421e22f1132ec29170eadf3bdf319a5e2419e09762fca2a83c8a1118d47fe5182f0822211556bcab6f4bd63c32419fde2595
|
7
|
+
data.tar.gz: 2e57428a82dffbf427466096119e6d0c7030d0dd232778c25d40062ece4dc8d789702e2df36e4d223ede5a491f7adf8e319be6bcc4b89fba711b68fd78db01bc
|
@@ -72,7 +72,7 @@ module Google
|
|
72
72
|
initial_delay: 0.1,
|
73
73
|
max_delay: 60.0,
|
74
74
|
multiplier: 1.3,
|
75
|
-
retry_codes: [
|
75
|
+
retry_codes: [4, 14]
|
76
76
|
}
|
77
77
|
|
78
78
|
default_config.rpcs.create_feed.timeout = 60.0
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
initial_delay: 0.1,
|
83
83
|
max_delay: 60.0,
|
84
84
|
multiplier: 1.3,
|
85
|
-
retry_codes: [
|
85
|
+
retry_codes: [4, 14]
|
86
86
|
}
|
87
87
|
|
88
88
|
default_config.rpcs.list_feeds.timeout = 60.0
|
@@ -90,7 +90,7 @@ module Google
|
|
90
90
|
initial_delay: 0.1,
|
91
91
|
max_delay: 60.0,
|
92
92
|
multiplier: 1.3,
|
93
|
-
retry_codes: [
|
93
|
+
retry_codes: [4, 14]
|
94
94
|
}
|
95
95
|
|
96
96
|
default_config.rpcs.update_feed.timeout = 60.0
|
@@ -100,7 +100,7 @@ module Google
|
|
100
100
|
initial_delay: 0.1,
|
101
101
|
max_delay: 60.0,
|
102
102
|
multiplier: 1.3,
|
103
|
-
retry_codes: [
|
103
|
+
retry_codes: [4, 14]
|
104
104
|
}
|
105
105
|
|
106
106
|
default_config.rpcs.search_all_resources.timeout = 15.0
|
@@ -108,7 +108,7 @@ module Google
|
|
108
108
|
initial_delay: 0.1,
|
109
109
|
max_delay: 60.0,
|
110
110
|
multiplier: 1.3,
|
111
|
-
retry_codes: [
|
111
|
+
retry_codes: [4, 14]
|
112
112
|
}
|
113
113
|
|
114
114
|
default_config.rpcs.search_all_iam_policies.timeout = 15.0
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
initial_delay: 0.1,
|
117
117
|
max_delay: 60.0,
|
118
118
|
multiplier: 1.3,
|
119
|
-
retry_codes: [
|
119
|
+
retry_codes: [4, 14]
|
120
120
|
}
|
121
121
|
|
122
122
|
default_config
|
@@ -214,14 +214,13 @@ module Google
|
|
214
214
|
# Exports assets with time and resource types to a given Cloud Storage
|
215
215
|
# location/BigQuery table. For Cloud Storage location destinations, the
|
216
216
|
# output format is newline-delimited JSON. Each line represents a
|
217
|
-
# {::Google::Cloud::Asset::V1::Asset google.cloud.asset.v1.Asset} in the JSON
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
# 5 minutes.
|
217
|
+
# {::Google::Cloud::Asset::V1::Asset google.cloud.asset.v1.Asset} in the JSON format; for BigQuery table
|
218
|
+
# destinations, the output table stores the fields in asset proto as columns.
|
219
|
+
# This API implements the {::Google::Longrunning::Operation google.longrunning.Operation} API
|
220
|
+
# , which allows you to keep track of the export. We recommend intervals of
|
221
|
+
# at least 2 seconds with exponential retry to poll the export operation
|
222
|
+
# result. For regular-size resource parent, the export operation usually
|
223
|
+
# finishes within 5 minutes.
|
225
224
|
#
|
226
225
|
# @overload export_assets(request, options = nil)
|
227
226
|
# Pass arguments to `export_assets` via a request object, either of type
|
@@ -250,17 +249,29 @@ module Google
|
|
250
249
|
# data collection and indexing, there is a volatile window during which
|
251
250
|
# running the same query may get different results.
|
252
251
|
# @param asset_types [::Array<::String>]
|
253
|
-
# A list of asset types
|
254
|
-
# "compute.googleapis.com/Disk".
|
255
|
-
#
|
252
|
+
# A list of asset types to take a snapshot for. For example:
|
253
|
+
# "compute.googleapis.com/Disk".
|
254
|
+
#
|
255
|
+
# Regular expressions are also supported. For example:
|
256
|
+
#
|
257
|
+
# * "compute.googleapis.com.*" snapshots resources whose asset type starts
|
258
|
+
# with "compute.googleapis.com".
|
259
|
+
# * ".*Instance" snapshots resources whose asset type ends with "Instance".
|
260
|
+
# * ".*Instance.*" snapshots resources whose asset type contains "Instance".
|
261
|
+
#
|
262
|
+
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
|
263
|
+
# regular expression syntax. If the regular expression does not match any
|
264
|
+
# supported asset type, an INVALID_ARGUMENT error will be returned.
|
265
|
+
#
|
266
|
+
# If specified, only matching assets will be returned, otherwise, it will
|
267
|
+
# snapshot all asset types. See [Introduction to Cloud Asset
|
256
268
|
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
|
257
269
|
# for all supported asset types.
|
258
270
|
# @param content_type [::Google::Cloud::Asset::V1::ContentType]
|
259
271
|
# Asset content type. If not specified, no content but the asset name will be
|
260
272
|
# returned.
|
261
273
|
# @param output_config [::Google::Cloud::Asset::V1::OutputConfig, ::Hash]
|
262
|
-
# Required. Output configuration indicating where the results will be output
|
263
|
-
# to.
|
274
|
+
# Required. Output configuration indicating where the results will be output to.
|
264
275
|
#
|
265
276
|
# @yield [response, operation] Access the result along with the RPC operation
|
266
277
|
# @yieldparam response [::Gapic::Operation]
|
@@ -429,8 +440,9 @@ module Google
|
|
429
440
|
# Required. This is the client-assigned asset feed identifier and it needs to
|
430
441
|
# be unique under a specific parent project/folder/organization.
|
431
442
|
# @param feed [::Google::Cloud::Asset::V1::Feed, ::Hash]
|
432
|
-
# Required. The feed details. The field `name` must be empty and it will be
|
433
|
-
#
|
443
|
+
# Required. The feed details. The field `name` must be empty and it will be generated
|
444
|
+
# in the format of:
|
445
|
+
# projects/project_number/feeds/feed_id
|
434
446
|
# folders/folder_number/feeds/feed_id
|
435
447
|
# organizations/organization_number/feeds/feed_id
|
436
448
|
#
|
@@ -635,8 +647,8 @@ module Google
|
|
635
647
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
636
648
|
#
|
637
649
|
# @param feed [::Google::Cloud::Asset::V1::Feed, ::Hash]
|
638
|
-
# Required. The new values of feed details. It must match an existing feed
|
639
|
-
#
|
650
|
+
# Required. The new values of feed details. It must match an existing feed and the
|
651
|
+
# field `name` must be in the format of:
|
640
652
|
# projects/project_number/feeds/feed_id or
|
641
653
|
# folders/folder_number/feeds/feed_id or
|
642
654
|
# organizations/organization_number/feeds/feed_id.
|
@@ -760,9 +772,9 @@ module Google
|
|
760
772
|
end
|
761
773
|
|
762
774
|
##
|
763
|
-
# Searches all
|
764
|
-
#
|
765
|
-
#
|
775
|
+
# Searches all Cloud resources within the specified scope, such as a project,
|
776
|
+
# folder, or organization. The caller must be granted the
|
777
|
+
# `cloudasset.assets.searchAllResources` permission on the desired scope,
|
766
778
|
# otherwise the request will be rejected.
|
767
779
|
#
|
768
780
|
# @overload search_all_resources(request, options = nil)
|
@@ -781,70 +793,76 @@ module Google
|
|
781
793
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
782
794
|
#
|
783
795
|
# @param scope [::String]
|
784
|
-
# Required. A scope can be a project, a folder or an organization. The search
|
785
|
-
#
|
796
|
+
# Required. A scope can be a project, a folder, or an organization. The search is
|
797
|
+
# limited to the resources within the `scope`. The caller must be granted the
|
798
|
+
# [`cloudasset.assets.searchAllResources`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
|
799
|
+
# permission on the desired scope.
|
786
800
|
#
|
787
801
|
# The allowed values are:
|
788
802
|
#
|
789
|
-
# * projects/\\{PROJECT_ID}
|
790
|
-
# * projects/\\{PROJECT_NUMBER}
|
791
|
-
# * folders/\\{FOLDER_NUMBER}
|
792
|
-
# * organizations/\\{ORGANIZATION_NUMBER}
|
803
|
+
# * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
|
804
|
+
# * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
|
805
|
+
# * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
|
806
|
+
# * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
|
793
807
|
# @param query [::String]
|
794
|
-
# Optional. The query statement.
|
795
|
-
#
|
808
|
+
# Optional. The query statement. See [how to construct a
|
809
|
+
# query](http://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
|
810
|
+
# for more information. If not specified or empty, it will search all the
|
811
|
+
# resources within the specified `scope`. Note that the query string is
|
812
|
+
# compared against each Cloud IAM policy binding, including its members,
|
813
|
+
# roles, and Cloud IAM conditions. The returned Cloud IAM policies will only
|
814
|
+
# contain the bindings that match your query. To learn more about the IAM
|
815
|
+
# policy structure, see [IAM policy
|
816
|
+
# doc](https://cloud.google.com/iam/docs/policies#structure).
|
796
817
|
#
|
797
818
|
# Examples:
|
798
819
|
#
|
799
|
-
# * `name
|
820
|
+
# * `name:Important` to find Cloud resources whose name contains
|
800
821
|
# "Important" as a word.
|
801
|
-
# * `displayName
|
802
|
-
# contains "Impor" as a
|
803
|
-
# * `description
|
822
|
+
# * `displayName:Impor*` to find Cloud resources whose display name
|
823
|
+
# contains "Impor" as a prefix.
|
824
|
+
# * `description:*por*` to find Cloud resources whose description
|
804
825
|
# contains "por" as a substring.
|
805
|
-
# * `location
|
826
|
+
# * `location:us-west*` to find Cloud resources whose location is
|
806
827
|
# prefixed with "us-west".
|
807
|
-
# * `labels
|
828
|
+
# * `labels:prod` to find Cloud resources whose labels contain "prod" as
|
808
829
|
# a key or value.
|
809
|
-
# * `labels.env
|
830
|
+
# * `labels.env:prod` to find Cloud resources that have a label "env"
|
810
831
|
# and its value is "prod".
|
811
|
-
# * `labels.env
|
812
|
-
# * `
|
832
|
+
# * `labels.env:*` to find Cloud resources that have a label "env".
|
833
|
+
# * `Important` to find Cloud resources that contain "Important" as a word
|
813
834
|
# in any of the searchable fields.
|
814
|
-
# * `
|
835
|
+
# * `Impor*` to find Cloud resources that contain "Impor" as a prefix
|
815
836
|
# in any of the searchable fields.
|
816
|
-
# *
|
837
|
+
# * `*por*` to find Cloud resources that contain "por" as a substring in
|
817
838
|
# any of the searchable fields.
|
818
|
-
# * `
|
819
|
-
# resources
|
839
|
+
# * `Important location:(us-west1 OR global)` to find Cloud
|
840
|
+
# resources that contain "Important" as a word in any of the searchable
|
820
841
|
# fields and are also located in the "us-west1" region or the "global"
|
821
842
|
# location.
|
822
|
-
#
|
823
|
-
# See [how to construct a
|
824
|
-
# query](https://cloud.google.com/asset-inventory/docs/searching-resources#how_to_construct_a_query)
|
825
|
-
# for more details.
|
826
843
|
# @param asset_types [::Array<::String>]
|
827
|
-
# Optional. A list of asset types that this request searches for. If empty,
|
828
|
-
#
|
844
|
+
# Optional. A list of asset types that this request searches for. If empty, it will
|
845
|
+
# search all the [searchable asset
|
829
846
|
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types).
|
830
847
|
# @param page_size [::Integer]
|
831
|
-
# Optional. The page size for search result pagination. Page size is capped
|
832
|
-
#
|
833
|
-
#
|
834
|
-
#
|
835
|
-
# returned.
|
848
|
+
# Optional. The page size for search result pagination. Page size is capped at 500 even
|
849
|
+
# if a larger value is given. If set to zero, server will pick an appropriate
|
850
|
+
# default. Returned results may be fewer than requested. When this happens,
|
851
|
+
# there could be more results as long as `next_page_token` is returned.
|
836
852
|
# @param page_token [::String]
|
837
|
-
# Optional. If present, then retrieve the next batch of results from the
|
838
|
-
#
|
839
|
-
#
|
840
|
-
#
|
853
|
+
# Optional. If present, then retrieve the next batch of results from the preceding call
|
854
|
+
# to this method. `page_token` must be the value of `next_page_token` from
|
855
|
+
# the previous response. The values of all other method parameters, must be
|
856
|
+
# identical to those in the previous call.
|
841
857
|
# @param order_by [::String]
|
842
|
-
# Optional. A comma separated list of fields specifying the sorting order of
|
843
|
-
#
|
844
|
-
#
|
845
|
-
# Example: "location DESC, name".
|
846
|
-
#
|
847
|
-
#
|
858
|
+
# Optional. A comma separated list of fields specifying the sorting order of the
|
859
|
+
# results. The default order is ascending. Add " DESC" after the field name
|
860
|
+
# to indicate descending order. Redundant space characters are ignored.
|
861
|
+
# Example: "location DESC, name". Only string fields in the response are
|
862
|
+
# sortable, including `name`, `displayName`, `description`, `location`. All
|
863
|
+
# the other fields such as repeated fields (e.g., `networkTags`), map
|
864
|
+
# fields (e.g., `labels`) and struct fields (e.g., `additionalAttributes`)
|
865
|
+
# are not supported.
|
848
866
|
#
|
849
867
|
# @yield [response, operation] Access the result along with the RPC operation
|
850
868
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Asset::V1::ResourceSearchResult>]
|
@@ -893,9 +911,9 @@ module Google
|
|
893
911
|
end
|
894
912
|
|
895
913
|
##
|
896
|
-
# Searches all
|
897
|
-
#
|
898
|
-
#
|
914
|
+
# Searches all IAM policies within the specified scope, such as a project,
|
915
|
+
# folder, or organization. The caller must be granted the
|
916
|
+
# `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
|
899
917
|
# otherwise the request will be rejected.
|
900
918
|
#
|
901
919
|
# @overload search_all_iam_policies(request, options = nil)
|
@@ -914,48 +932,55 @@ module Google
|
|
914
932
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
915
933
|
#
|
916
934
|
# @param scope [::String]
|
917
|
-
# Required. A scope can be a project, a folder or an organization. The search
|
918
|
-
#
|
935
|
+
# Required. A scope can be a project, a folder, or an organization. The search is
|
936
|
+
# limited to the IAM policies within the `scope`. The caller must be granted
|
937
|
+
# the
|
938
|
+
# [`cloudasset.assets.searchAllIamPolicies`](http://cloud.google.com/asset-inventory/docs/access-control#required_permissions)
|
939
|
+
# permission on the desired scope.
|
919
940
|
#
|
920
941
|
# The allowed values are:
|
921
942
|
#
|
922
|
-
# * projects/\\{PROJECT_ID}
|
923
|
-
# * projects/\\{PROJECT_NUMBER}
|
924
|
-
# * folders/\\{FOLDER_NUMBER}
|
925
|
-
# * organizations/\\{ORGANIZATION_NUMBER}
|
943
|
+
# * projects/\\{PROJECT_ID} (e.g., "projects/foo-bar")
|
944
|
+
# * projects/\\{PROJECT_NUMBER} (e.g., "projects/12345678")
|
945
|
+
# * folders/\\{FOLDER_NUMBER} (e.g., "folders/1234567")
|
946
|
+
# * organizations/\\{ORGANIZATION_NUMBER} (e.g., "organizations/123456")
|
926
947
|
# @param query [::String]
|
927
|
-
# Optional. The query statement.
|
928
|
-
#
|
948
|
+
# Optional. The query statement. See [how to construct a
|
949
|
+
# query](https://cloud.google.com/asset-inventory/docs/searching-iam-policies#how_to_construct_a_query)
|
950
|
+
# for more information. If not specified or empty, it will search all the
|
951
|
+
# IAM policies within the specified `scope`.
|
929
952
|
#
|
930
953
|
# Examples:
|
931
954
|
#
|
932
|
-
# * `policy
|
933
|
-
#
|
934
|
-
# * `policy
|
935
|
-
#
|
936
|
-
# * `policy.role.permissions
|
937
|
-
#
|
938
|
-
# permission.
|
939
|
-
#
|
940
|
-
#
|
941
|
-
# * `
|
942
|
-
#
|
943
|
-
#
|
944
|
-
#
|
945
|
-
#
|
946
|
-
#
|
947
|
-
#
|
955
|
+
# * `policy:amy@gmail.com` to find IAM policy bindings that specify user
|
956
|
+
# "amy@gmail.com".
|
957
|
+
# * `policy:roles/compute.admin` to find IAM policy bindings that specify
|
958
|
+
# the Compute Admin role.
|
959
|
+
# * `policy.role.permissions:storage.buckets.update` to find IAM policy
|
960
|
+
# bindings that specify a role containing "storage.buckets.update"
|
961
|
+
# permission. Note that if callers don't have `iam.roles.get` access to a
|
962
|
+
# role's included permissions, policy bindings that specify this role will
|
963
|
+
# be dropped from the search results.
|
964
|
+
# * `resource:organizations/123456` to find IAM policy bindings
|
965
|
+
# that are set on "organizations/123456".
|
966
|
+
# * `Important` to find IAM policy bindings that contain "Important" as a
|
967
|
+
# word in any of the searchable fields (except for the included
|
968
|
+
# permissions).
|
969
|
+
# * `*por*` to find IAM policy bindings that contain "por" as a substring
|
970
|
+
# in any of the searchable fields (except for the included permissions).
|
971
|
+
# * `resource:(instance1 OR instance2) policy:amy` to find
|
972
|
+
# IAM policy bindings that are set on resources "instance1" or
|
973
|
+
# "instance2" and also specify user "amy".
|
948
974
|
# @param page_size [::Integer]
|
949
|
-
# Optional. The page size for search result pagination. Page size is capped
|
950
|
-
#
|
951
|
-
#
|
952
|
-
#
|
953
|
-
# returned.
|
975
|
+
# Optional. The page size for search result pagination. Page size is capped at 500 even
|
976
|
+
# if a larger value is given. If set to zero, server will pick an appropriate
|
977
|
+
# default. Returned results may be fewer than requested. When this happens,
|
978
|
+
# there could be more results as long as `next_page_token` is returned.
|
954
979
|
# @param page_token [::String]
|
955
|
-
# Optional. If present, retrieve the next batch of results from the preceding
|
956
|
-
#
|
957
|
-
#
|
958
|
-
#
|
980
|
+
# Optional. If present, retrieve the next batch of results from the preceding call to
|
981
|
+
# this method. `page_token` must be the value of `next_page_token` from the
|
982
|
+
# previous response. The values of all other method parameters must be
|
983
|
+
# identical to those in the previous call.
|
959
984
|
#
|
960
985
|
# @yield [response, operation] Access the result along with the RPC operation
|
961
986
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Asset::V1::IamPolicySearchResult>]
|
@@ -1088,7 +1113,7 @@ module Google
|
|
1088
1113
|
|
1089
1114
|
config_attr :endpoint, "cloudasset.googleapis.com", ::String
|
1090
1115
|
config_attr :credentials, nil do |value|
|
1091
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1116
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1092
1117
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
1093
1118
|
allowed.any? { |klass| klass === value }
|
1094
1119
|
end
|
@@ -475,7 +475,7 @@ module Google
|
|
475
475
|
|
476
476
|
config_attr :endpoint, "cloudasset.googleapis.com", ::String
|
477
477
|
config_attr :credentials, nil do |value|
|
478
|
-
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
478
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
479
479
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
480
480
|
allowed.any? { |klass| klass === value }
|
481
481
|
end
|
@@ -26,6 +26,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
26
26
|
add_message "google.cloud.asset.v1.ExportAssetsResponse" do
|
27
27
|
optional :read_time, :message, 1, "google.protobuf.Timestamp"
|
28
28
|
optional :output_config, :message, 2, "google.cloud.asset.v1.OutputConfig"
|
29
|
+
optional :output_result, :message, 3, "google.cloud.asset.v1.OutputResult"
|
29
30
|
end
|
30
31
|
add_message "google.cloud.asset.v1.BatchGetAssetsHistoryRequest" do
|
31
32
|
optional :parent, :string, 1
|
@@ -63,6 +64,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
63
64
|
optional :bigquery_destination, :message, 2, "google.cloud.asset.v1.BigQueryDestination"
|
64
65
|
end
|
65
66
|
end
|
67
|
+
add_message "google.cloud.asset.v1.OutputResult" do
|
68
|
+
oneof :result do
|
69
|
+
optional :gcs_result, :message, 1, "google.cloud.asset.v1.GcsOutputResult"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
add_message "google.cloud.asset.v1.GcsOutputResult" do
|
73
|
+
repeated :uris, :string, 1
|
74
|
+
end
|
66
75
|
add_message "google.cloud.asset.v1.GcsDestination" do
|
67
76
|
oneof :object_uri do
|
68
77
|
optional :uri, :string, 1
|
@@ -73,6 +82,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
73
82
|
optional :dataset, :string, 1
|
74
83
|
optional :table, :string, 2
|
75
84
|
optional :force, :bool, 3
|
85
|
+
optional :partition_spec, :message, 4, "google.cloud.asset.v1.PartitionSpec"
|
86
|
+
optional :separate_tables_per_asset_type, :bool, 5
|
87
|
+
end
|
88
|
+
add_message "google.cloud.asset.v1.PartitionSpec" do
|
89
|
+
optional :partition_key, :enum, 1, "google.cloud.asset.v1.PartitionSpec.PartitionKey"
|
90
|
+
end
|
91
|
+
add_enum "google.cloud.asset.v1.PartitionSpec.PartitionKey" do
|
92
|
+
value :PARTITION_KEY_UNSPECIFIED, 0
|
93
|
+
value :READ_TIME, 1
|
94
|
+
value :REQUEST_TIME, 2
|
76
95
|
end
|
77
96
|
add_message "google.cloud.asset.v1.PubsubDestination" do
|
78
97
|
optional :topic, :string, 1
|
@@ -137,8 +156,12 @@ module Google
|
|
137
156
|
UpdateFeedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.UpdateFeedRequest").msgclass
|
138
157
|
DeleteFeedRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.DeleteFeedRequest").msgclass
|
139
158
|
OutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.OutputConfig").msgclass
|
159
|
+
OutputResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.OutputResult").msgclass
|
160
|
+
GcsOutputResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.GcsOutputResult").msgclass
|
140
161
|
GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.GcsDestination").msgclass
|
141
162
|
BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.BigQueryDestination").msgclass
|
163
|
+
PartitionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.PartitionSpec").msgclass
|
164
|
+
PartitionSpec::PartitionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.PartitionSpec.PartitionKey").enummodule
|
142
165
|
PubsubDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.PubsubDestination").msgclass
|
143
166
|
FeedOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.FeedOutputConfig").msgclass
|
144
167
|
Feed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.Feed").msgclass
|
@@ -36,15 +36,14 @@ module Google
|
|
36
36
|
# Exports assets with time and resource types to a given Cloud Storage
|
37
37
|
# location/BigQuery table. For Cloud Storage location destinations, the
|
38
38
|
# output format is newline-delimited JSON. Each line represents a
|
39
|
-
# [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
|
47
|
-
rpc :ExportAssets, ExportAssetsRequest, Google::Longrunning::Operation
|
39
|
+
# [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table
|
40
|
+
# destinations, the output table stores the fields in asset proto as columns.
|
41
|
+
# This API implements the [google.longrunning.Operation][google.longrunning.Operation] API
|
42
|
+
# , which allows you to keep track of the export. We recommend intervals of
|
43
|
+
# at least 2 seconds with exponential retry to poll the export operation
|
44
|
+
# result. For regular-size resource parent, the export operation usually
|
45
|
+
# finishes within 5 minutes.
|
46
|
+
rpc :ExportAssets, ::Google::Cloud::Asset::V1::ExportAssetsRequest, ::Google::Longrunning::Operation
|
48
47
|
# Batch gets the update history of assets that overlap a time window.
|
49
48
|
# For IAM_POLICY content, this API outputs history when the asset and its
|
50
49
|
# attached IAM POLICY both exist. This can create gaps in the output history.
|
@@ -52,28 +51,28 @@ module Google
|
|
52
51
|
# deleted status.
|
53
52
|
# If a specified asset does not exist, this API returns an INVALID_ARGUMENT
|
54
53
|
# error.
|
55
|
-
rpc :BatchGetAssetsHistory, BatchGetAssetsHistoryRequest, BatchGetAssetsHistoryResponse
|
54
|
+
rpc :BatchGetAssetsHistory, ::Google::Cloud::Asset::V1::BatchGetAssetsHistoryRequest, ::Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse
|
56
55
|
# Creates a feed in a parent project/folder/organization to listen to its
|
57
56
|
# asset updates.
|
58
|
-
rpc :CreateFeed, CreateFeedRequest, Feed
|
57
|
+
rpc :CreateFeed, ::Google::Cloud::Asset::V1::CreateFeedRequest, ::Google::Cloud::Asset::V1::Feed
|
59
58
|
# Gets details about an asset feed.
|
60
|
-
rpc :GetFeed, GetFeedRequest, Feed
|
59
|
+
rpc :GetFeed, ::Google::Cloud::Asset::V1::GetFeedRequest, ::Google::Cloud::Asset::V1::Feed
|
61
60
|
# Lists all asset feeds in a parent project/folder/organization.
|
62
|
-
rpc :ListFeeds, ListFeedsRequest, ListFeedsResponse
|
61
|
+
rpc :ListFeeds, ::Google::Cloud::Asset::V1::ListFeedsRequest, ::Google::Cloud::Asset::V1::ListFeedsResponse
|
63
62
|
# Updates an asset feed configuration.
|
64
|
-
rpc :UpdateFeed, UpdateFeedRequest, Feed
|
63
|
+
rpc :UpdateFeed, ::Google::Cloud::Asset::V1::UpdateFeedRequest, ::Google::Cloud::Asset::V1::Feed
|
65
64
|
# Deletes an asset feed.
|
66
|
-
rpc :DeleteFeed, DeleteFeedRequest, Google::Protobuf::Empty
|
67
|
-
# Searches all
|
68
|
-
#
|
69
|
-
#
|
65
|
+
rpc :DeleteFeed, ::Google::Cloud::Asset::V1::DeleteFeedRequest, ::Google::Protobuf::Empty
|
66
|
+
# Searches all Cloud resources within the specified scope, such as a project,
|
67
|
+
# folder, or organization. The caller must be granted the
|
68
|
+
# `cloudasset.assets.searchAllResources` permission on the desired scope,
|
70
69
|
# otherwise the request will be rejected.
|
71
|
-
rpc :SearchAllResources, SearchAllResourcesRequest, SearchAllResourcesResponse
|
72
|
-
# Searches all
|
73
|
-
#
|
74
|
-
#
|
70
|
+
rpc :SearchAllResources, ::Google::Cloud::Asset::V1::SearchAllResourcesRequest, ::Google::Cloud::Asset::V1::SearchAllResourcesResponse
|
71
|
+
# Searches all IAM policies within the specified scope, such as a project,
|
72
|
+
# folder, or organization. The caller must be granted the
|
73
|
+
# `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
|
75
74
|
# otherwise the request will be rejected.
|
76
|
-
rpc :SearchAllIamPolicies, SearchAllIamPoliciesRequest, SearchAllIamPoliciesResponse
|
75
|
+
rpc :SearchAllIamPolicies, ::Google::Cloud::Asset::V1::SearchAllIamPoliciesRequest, ::Google::Cloud::Asset::V1::SearchAllIamPoliciesResponse
|
77
76
|
end
|
78
77
|
|
79
78
|
Stub = Service.rpc_stub_class
|