google-cloud-asset-v1 0.6.0 → 0.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47903709aadc0bfaa500654626a56c96aae048c5b901a5b0c60d79e6186ae997
4
- data.tar.gz: 720eb8288342eb67e1d314ac048500bea99c7f8c6a71d1edd941048ecfac1134
3
+ metadata.gz: d2676cf0dd8d019fe96f3dc428baad272b08afea9a6df22144366532d2039793
4
+ data.tar.gz: 4824636848136eda0deb36dd5c9097aa7d2277a93ca6cc708828b23eaca17315
5
5
  SHA512:
6
- metadata.gz: 9eaef8da1ab7e67c1efa41f4f31c88587508eb2350e2d703833967a1cb66d10a2e44e30d6af121d290a5e6f97671b8cef4c1d020965674bcdef919edc31faa6a
7
- data.tar.gz: 5aa1b26f56d54da1627fefc83a3d6bc2bd74ae9b058ec943aa162183f1624ba0b922b0c79a60869640545a43b67cec442d8e1d77048209e3f60f60150ff1520f
6
+ metadata.gz: 7b6fc678fbff7101e05caae726e6e5afe99adbcb97d0bb44a0d04545fd0dced56cabaaa820a5e3cfb9213d32b6238c1b9674e4eabac06d98701449be055cc478
7
+ data.tar.gz: 8b647e5b9f18943f4b49257cdc2cc988b3735598667e129208e3e24967bf64a4d9057c252dcefdc2d5d29e9841ea5e366298598dc2def1b7aaaeb947b8c5d335
@@ -33,3 +33,6 @@ module Google
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
38
+ require "google/cloud/asset/v1/_helpers" if ::File.file? helper_path
@@ -127,7 +127,7 @@ module Google
127
127
  retry_codes: [14]
128
128
  }
129
129
 
130
- default_config.rpcs.export_iam_policy_analysis.timeout = 60.0
130
+ default_config.rpcs.analyze_iam_policy_longrunning.timeout = 60.0
131
131
 
132
132
  default_config
133
133
  end
@@ -1058,9 +1058,9 @@ module Google
1058
1058
  # the default parameter values, pass an empty Hash as a request object (see above).
1059
1059
  #
1060
1060
  # @param analysis_query [::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery, ::Hash]
1061
- # The request query.
1061
+ # Required. The request query.
1062
1062
  # @param execution_timeout [::Google::Protobuf::Duration, ::Hash]
1063
- # Amount of time executable has to complete. See JSON representation of
1063
+ # Optional. Amount of time executable has to complete. See JSON representation of
1064
1064
  # [Duration](https://developers.google.com/protocol-buffers/docs/proto3#json).
1065
1065
  #
1066
1066
  # If this field is set with a value less than the RPC deadline, and the
@@ -1071,21 +1071,6 @@ module Google
1071
1071
  #
1072
1072
  # Default is empty.
1073
1073
  #
1074
- # (-- We had discussion of whether we should have this field in the --)
1075
- # (-- request or use the RPC deadline instead. We finally choose this --)
1076
- # (-- approach for the following reasons (detailed in --)
1077
- # (-- go/analyze-iam-policy-deadlines): --)
1078
- # (-- * HTTP clients have very limited support of the RPC deadline. --)
1079
- # (-- There is an X-Server-Timeout header introduced in 2019/09, but --)
1080
- # (-- only implemented in the C++ HTTP server library. --)
1081
- # (-- * The purpose of the RPC deadline is for RPC clients to --)
1082
- # (-- communicate its max waiting time to the server. This deadline --)
1083
- # (-- could be further propagated to the downstream servers. It is --)
1084
- # (-- mainly used for servers to cancel the request processing --)
1085
- # (-- to avoid resource wasting. Overloading the RPC deadline for --)
1086
- # (-- other purposes could make our backend system harder to reason --)
1087
- # (-- about. --)
1088
- #
1089
1074
  # @yield [response, operation] Access the result along with the RPC operation
1090
1075
  # @yieldparam response [::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse]
1091
1076
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -1132,35 +1117,35 @@ module Google
1132
1117
  end
1133
1118
 
1134
1119
  ##
1135
- # Exports the answers of which identities have what accesses on which
1136
- # resources to a Google Cloud Storage or a BigQuery destination. For Cloud
1137
- # Storage destination, the output format is the JSON format that represents a
1138
- # {::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse google.cloud.asset.v1.AnalyzeIamPolicyResponse}.
1139
- # This method implements the
1140
- # {::Google::Longrunning::Operation google.longrunning.Operation}, which allows
1141
- # you to track the export status. We recommend intervals of at least 2
1142
- # seconds with exponential retry to poll the export operation result. The
1143
- # metadata contains the request to help callers to map responses to requests.
1144
- #
1145
- # @overload export_iam_policy_analysis(request, options = nil)
1146
- # Pass arguments to `export_iam_policy_analysis` via a request object, either of type
1147
- # {::Google::Cloud::Asset::V1::ExportIamPolicyAnalysisRequest} or an equivalent Hash.
1148
- #
1149
- # @param request [::Google::Cloud::Asset::V1::ExportIamPolicyAnalysisRequest, ::Hash]
1120
+ # Analyzes IAM policies asynchronously to answer which identities have what
1121
+ # accesses on which resources, and writes the analysis results to a Google
1122
+ # Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
1123
+ # output format is the JSON format that represents a
1124
+ # {::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse AnalyzeIamPolicyResponse}. This method implements the
1125
+ # {::Google::Longrunning::Operation google.longrunning.Operation}, which allows you to track the operation
1126
+ # status. We recommend intervals of at least 2 seconds with exponential
1127
+ # backoff retry to poll the operation result. The metadata contains the
1128
+ # request to help callers to map responses to requests.
1129
+ #
1130
+ # @overload analyze_iam_policy_longrunning(request, options = nil)
1131
+ # Pass arguments to `analyze_iam_policy_longrunning` via a request object, either of type
1132
+ # {::Google::Cloud::Asset::V1::AnalyzeIamPolicyLongrunningRequest} or an equivalent Hash.
1133
+ #
1134
+ # @param request [::Google::Cloud::Asset::V1::AnalyzeIamPolicyLongrunningRequest, ::Hash]
1150
1135
  # A request object representing the call parameters. Required. To specify no
1151
1136
  # parameters, or to keep all the default parameter values, pass an empty Hash.
1152
1137
  # @param options [::Gapic::CallOptions, ::Hash]
1153
1138
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1154
1139
  #
1155
- # @overload export_iam_policy_analysis(analysis_query: nil, output_config: nil)
1156
- # Pass arguments to `export_iam_policy_analysis` via keyword arguments. Note that at
1140
+ # @overload analyze_iam_policy_longrunning(analysis_query: nil, output_config: nil)
1141
+ # Pass arguments to `analyze_iam_policy_longrunning` via keyword arguments. Note that at
1157
1142
  # least one keyword argument is required. To specify no parameters, or to keep all
1158
1143
  # the default parameter values, pass an empty Hash as a request object (see above).
1159
1144
  #
1160
1145
  # @param analysis_query [::Google::Cloud::Asset::V1::IamPolicyAnalysisQuery, ::Hash]
1161
- # The request query.
1146
+ # Required. The request query.
1162
1147
  # @param output_config [::Google::Cloud::Asset::V1::IamPolicyAnalysisOutputConfig, ::Hash]
1163
- # Output configuration indicating where the results will be output to.
1148
+ # Required. Output configuration indicating where the results will be output to.
1164
1149
  #
1165
1150
  # @yield [response, operation] Access the result along with the RPC operation
1166
1151
  # @yieldparam response [::Gapic::Operation]
@@ -1170,16 +1155,16 @@ module Google
1170
1155
  #
1171
1156
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1172
1157
  #
1173
- def export_iam_policy_analysis request, options = nil
1158
+ def analyze_iam_policy_longrunning request, options = nil
1174
1159
  raise ::ArgumentError, "request must be provided" if request.nil?
1175
1160
 
1176
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Asset::V1::ExportIamPolicyAnalysisRequest
1161
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Asset::V1::AnalyzeIamPolicyLongrunningRequest
1177
1162
 
1178
1163
  # Converts hash and nil to an options object
1179
1164
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1180
1165
 
1181
1166
  # Customize the options with defaults
1182
- metadata = @config.rpcs.export_iam_policy_analysis.metadata.to_h
1167
+ metadata = @config.rpcs.analyze_iam_policy_longrunning.metadata.to_h
1183
1168
 
1184
1169
  # Set x-goog-api-client and x-goog-user-project headers
1185
1170
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -1193,13 +1178,13 @@ module Google
1193
1178
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1194
1179
  metadata[:"x-goog-request-params"] ||= request_params_header
1195
1180
 
1196
- options.apply_defaults timeout: @config.rpcs.export_iam_policy_analysis.timeout,
1181
+ options.apply_defaults timeout: @config.rpcs.analyze_iam_policy_longrunning.timeout,
1197
1182
  metadata: metadata,
1198
- retry_policy: @config.rpcs.export_iam_policy_analysis.retry_policy
1183
+ retry_policy: @config.rpcs.analyze_iam_policy_longrunning.retry_policy
1199
1184
  options.apply_defaults metadata: @config.metadata,
1200
1185
  retry_policy: @config.retry_policy
1201
1186
 
1202
- @asset_service_stub.call_rpc :export_iam_policy_analysis, request, options: options do |response, operation|
1187
+ @asset_service_stub.call_rpc :analyze_iam_policy_longrunning, request, options: options do |response, operation|
1203
1188
  response = ::Gapic::Operation.new response, @operations_client, options: options
1204
1189
  yield response, operation if block_given?
1205
1190
  return response
@@ -1333,7 +1318,7 @@ module Google
1333
1318
  # Each configuration object is of type `Gapic::Config::Method` and includes
1334
1319
  # the following configuration fields:
1335
1320
  #
1336
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
1321
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1337
1322
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
1338
1323
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1339
1324
  # include the following keys:
@@ -1395,10 +1380,10 @@ module Google
1395
1380
  #
1396
1381
  attr_reader :analyze_iam_policy
1397
1382
  ##
1398
- # RPC-specific configuration for `export_iam_policy_analysis`
1383
+ # RPC-specific configuration for `analyze_iam_policy_longrunning`
1399
1384
  # @return [::Gapic::Config::Method]
1400
1385
  #
1401
- attr_reader :export_iam_policy_analysis
1386
+ attr_reader :analyze_iam_policy_longrunning
1402
1387
 
1403
1388
  # @private
1404
1389
  def initialize parent_rpcs = nil
@@ -1422,8 +1407,8 @@ module Google
1422
1407
  @search_all_iam_policies = ::Gapic::Config::Method.new search_all_iam_policies_config
1423
1408
  analyze_iam_policy_config = parent_rpcs&.analyze_iam_policy if parent_rpcs&.respond_to? :analyze_iam_policy
1424
1409
  @analyze_iam_policy = ::Gapic::Config::Method.new analyze_iam_policy_config
1425
- export_iam_policy_analysis_config = parent_rpcs&.export_iam_policy_analysis if parent_rpcs&.respond_to? :export_iam_policy_analysis
1426
- @export_iam_policy_analysis = ::Gapic::Config::Method.new export_iam_policy_analysis_config
1410
+ analyze_iam_policy_longrunning_config = parent_rpcs&.analyze_iam_policy_longrunning if parent_rpcs&.respond_to? :analyze_iam_policy_longrunning
1411
+ @analyze_iam_policy_longrunning = ::Gapic::Config::Method.new analyze_iam_policy_longrunning_config
1427
1412
 
1428
1413
  yield self if block_given?
1429
1414
  end
@@ -515,7 +515,7 @@ module Google
515
515
  # Each configuration object is of type `Gapic::Config::Method` and includes
516
516
  # the following configuration fields:
517
517
  #
518
- # * `timeout` (*type:* `Numeric`) - The call timeout in milliseconds
518
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
519
519
  # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
520
520
  # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
521
521
  # include the following keys:
@@ -82,6 +82,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
82
82
  optional :dataset, :string, 1
83
83
  optional :table, :string, 2
84
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
85
95
  end
86
96
  add_message "google.cloud.asset.v1.PubsubDestination" do
87
97
  optional :topic, :string, 1
@@ -145,8 +155,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
145
155
  optional :output_resource_edges, :bool, 4
146
156
  optional :output_group_edges, :bool, 5
147
157
  optional :analyze_service_account_impersonation, :bool, 6
148
- optional :max_fanouts_per_group, :int32, 7
149
- optional :max_fanouts_per_resource, :int32, 8
150
158
  end
151
159
  add_message "google.cloud.asset.v1.AnalyzeIamPolicyRequest" do
152
160
  optional :analysis_query, :message, 1, "google.cloud.asset.v1.IamPolicyAnalysisQuery"
@@ -161,26 +169,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
161
169
  optional :analysis_query, :message, 1, "google.cloud.asset.v1.IamPolicyAnalysisQuery"
162
170
  repeated :analysis_results, :message, 2, "google.cloud.asset.v1.IamPolicyAnalysisResult"
163
171
  optional :fully_explored, :bool, 3
164
- repeated :stats, :message, 4, "google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Stats"
165
172
  repeated :non_critical_errors, :message, 5, "google.cloud.asset.v1.IamPolicyAnalysisState"
166
173
  end
167
- add_message "google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Stats" do
168
- optional :node_type, :enum, 1, "google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Stats.NodeType"
169
- optional :node_subtype, :string, 2
170
- optional :discovered_node_count, :int32, 3
171
- optional :matched_node_count, :int32, 4
172
- optional :explored_node_count, :int32, 5
173
- optional :capped_node_count, :int32, 6
174
- optional :permision_denied_node_count, :int32, 7
175
- optional :execution_timeout_node_count, :int32, 8
176
- end
177
- add_enum "google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Stats.NodeType" do
178
- value :NODE_TYPE_UNSPECIFIED, 0
179
- value :BINDING, 1
180
- value :IDENTITY, 2
181
- value :RESOURCE, 3
182
- value :ACCESS, 4
183
- end
184
174
  add_message "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig" do
185
175
  oneof :destination do
186
176
  optional :gcs_destination, :message, 1, "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination"
@@ -194,22 +184,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
194
184
  optional :dataset, :string, 1
195
185
  optional :table_prefix, :string, 2
196
186
  optional :partition_key, :enum, 3, "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey"
197
- optional :write_mode, :enum, 4, "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.WriteMode"
187
+ optional :write_disposition, :string, 4
198
188
  end
199
189
  add_enum "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey" do
200
190
  value :PARTITION_KEY_UNSPECIFIED, 0
201
191
  value :REQUEST_TIME, 1
202
192
  end
203
- add_enum "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.WriteMode" do
204
- value :WRITE_MODE_UNSPECIFIED, 0
205
- value :ABORT, 1
206
- value :OVERWRITE, 2
207
- end
208
- add_message "google.cloud.asset.v1.ExportIamPolicyAnalysisRequest" do
193
+ add_message "google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest" do
209
194
  optional :analysis_query, :message, 1, "google.cloud.asset.v1.IamPolicyAnalysisQuery"
210
195
  optional :output_config, :message, 2, "google.cloud.asset.v1.IamPolicyAnalysisOutputConfig"
211
196
  end
212
- add_message "google.cloud.asset.v1.ExportIamPolicyAnalysisResponse" do
197
+ add_message "google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse" do
213
198
  end
214
199
  add_enum "google.cloud.asset.v1.ContentType" do
215
200
  value :CONTENT_TYPE_UNSPECIFIED, 0
@@ -217,6 +202,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
217
202
  value :IAM_POLICY, 2
218
203
  value :ORG_POLICY, 4
219
204
  value :ACCESS_POLICY, 5
205
+ value :OS_INVENTORY, 6
220
206
  end
221
207
  end
222
208
  end
@@ -240,6 +226,8 @@ module Google
240
226
  GcsOutputResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.GcsOutputResult").msgclass
241
227
  GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.GcsDestination").msgclass
242
228
  BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.BigQueryDestination").msgclass
229
+ PartitionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.PartitionSpec").msgclass
230
+ PartitionSpec::PartitionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.PartitionSpec.PartitionKey").enummodule
243
231
  PubsubDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.PubsubDestination").msgclass
244
232
  FeedOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.FeedOutputConfig").msgclass
245
233
  Feed = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.Feed").msgclass
@@ -255,15 +243,12 @@ module Google
255
243
  AnalyzeIamPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyRequest").msgclass
256
244
  AnalyzeIamPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyResponse").msgclass
257
245
  AnalyzeIamPolicyResponse::IamPolicyAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis").msgclass
258
- AnalyzeIamPolicyResponse::IamPolicyAnalysis::Stats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Stats").msgclass
259
- AnalyzeIamPolicyResponse::IamPolicyAnalysis::Stats::NodeType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyResponse.IamPolicyAnalysis.Stats.NodeType").enummodule
260
246
  IamPolicyAnalysisOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicyAnalysisOutputConfig").msgclass
261
247
  IamPolicyAnalysisOutputConfig::GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.GcsDestination").msgclass
262
248
  IamPolicyAnalysisOutputConfig::BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination").msgclass
263
249
  IamPolicyAnalysisOutputConfig::BigQueryDestination::PartitionKey = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.PartitionKey").enummodule
264
- IamPolicyAnalysisOutputConfig::BigQueryDestination::WriteMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.IamPolicyAnalysisOutputConfig.BigQueryDestination.WriteMode").enummodule
265
- ExportIamPolicyAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.ExportIamPolicyAnalysisRequest").msgclass
266
- ExportIamPolicyAnalysisResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.ExportIamPolicyAnalysisResponse").msgclass
250
+ AnalyzeIamPolicyLongrunningRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyLongrunningRequest").msgclass
251
+ AnalyzeIamPolicyLongrunningResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.AnalyzeIamPolicyLongrunningResponse").msgclass
267
252
  ContentType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.asset.v1.ContentType").enummodule
268
253
  end
269
254
  end
@@ -43,7 +43,7 @@ module Google
43
43
  # at least 2 seconds with exponential retry to poll the export operation
44
44
  # result. For regular-size resource parent, the export operation usually
45
45
  # finishes within 5 minutes.
46
- rpc :ExportAssets, Google::Cloud::Asset::V1::ExportAssetsRequest, Google::Longrunning::Operation
46
+ rpc :ExportAssets, ::Google::Cloud::Asset::V1::ExportAssetsRequest, ::Google::Longrunning::Operation
47
47
  # Batch gets the update history of assets that overlap a time window.
48
48
  # For IAM_POLICY content, this API outputs history when the asset and its
49
49
  # attached IAM POLICY both exist. This can create gaps in the output history.
@@ -51,41 +51,41 @@ module Google
51
51
  # deleted status.
52
52
  # If a specified asset does not exist, this API returns an INVALID_ARGUMENT
53
53
  # error.
54
- rpc :BatchGetAssetsHistory, Google::Cloud::Asset::V1::BatchGetAssetsHistoryRequest, Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse
54
+ rpc :BatchGetAssetsHistory, ::Google::Cloud::Asset::V1::BatchGetAssetsHistoryRequest, ::Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse
55
55
  # Creates a feed in a parent project/folder/organization to listen to its
56
56
  # asset updates.
57
- rpc :CreateFeed, Google::Cloud::Asset::V1::CreateFeedRequest, Google::Cloud::Asset::V1::Feed
57
+ rpc :CreateFeed, ::Google::Cloud::Asset::V1::CreateFeedRequest, ::Google::Cloud::Asset::V1::Feed
58
58
  # Gets details about an asset feed.
59
- rpc :GetFeed, Google::Cloud::Asset::V1::GetFeedRequest, Google::Cloud::Asset::V1::Feed
59
+ rpc :GetFeed, ::Google::Cloud::Asset::V1::GetFeedRequest, ::Google::Cloud::Asset::V1::Feed
60
60
  # Lists all asset feeds in a parent project/folder/organization.
61
- rpc :ListFeeds, Google::Cloud::Asset::V1::ListFeedsRequest, Google::Cloud::Asset::V1::ListFeedsResponse
61
+ rpc :ListFeeds, ::Google::Cloud::Asset::V1::ListFeedsRequest, ::Google::Cloud::Asset::V1::ListFeedsResponse
62
62
  # Updates an asset feed configuration.
63
- rpc :UpdateFeed, Google::Cloud::Asset::V1::UpdateFeedRequest, Google::Cloud::Asset::V1::Feed
63
+ rpc :UpdateFeed, ::Google::Cloud::Asset::V1::UpdateFeedRequest, ::Google::Cloud::Asset::V1::Feed
64
64
  # Deletes an asset feed.
65
- rpc :DeleteFeed, Google::Cloud::Asset::V1::DeleteFeedRequest, Google::Protobuf::Empty
65
+ rpc :DeleteFeed, ::Google::Cloud::Asset::V1::DeleteFeedRequest, ::Google::Protobuf::Empty
66
66
  # Searches all Cloud resources within the specified scope, such as a project,
67
67
  # folder, or organization. The caller must be granted the
68
68
  # `cloudasset.assets.searchAllResources` permission on the desired scope,
69
69
  # otherwise the request will be rejected.
70
- rpc :SearchAllResources, Google::Cloud::Asset::V1::SearchAllResourcesRequest, Google::Cloud::Asset::V1::SearchAllResourcesResponse
70
+ rpc :SearchAllResources, ::Google::Cloud::Asset::V1::SearchAllResourcesRequest, ::Google::Cloud::Asset::V1::SearchAllResourcesResponse
71
71
  # Searches all IAM policies within the specified scope, such as a project,
72
72
  # folder, or organization. The caller must be granted the
73
73
  # `cloudasset.assets.searchAllIamPolicies` permission on the desired scope,
74
74
  # otherwise the request will be rejected.
75
- rpc :SearchAllIamPolicies, Google::Cloud::Asset::V1::SearchAllIamPoliciesRequest, Google::Cloud::Asset::V1::SearchAllIamPoliciesResponse
75
+ rpc :SearchAllIamPolicies, ::Google::Cloud::Asset::V1::SearchAllIamPoliciesRequest, ::Google::Cloud::Asset::V1::SearchAllIamPoliciesResponse
76
76
  # Analyzes IAM policies to answer which identities have what accesses on
77
77
  # which resources.
78
- rpc :AnalyzeIamPolicy, Google::Cloud::Asset::V1::AnalyzeIamPolicyRequest, Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse
79
- # Exports the answers of which identities have what accesses on which
80
- # resources to a Google Cloud Storage or a BigQuery destination. For Cloud
81
- # Storage destination, the output format is the JSON format that represents a
82
- # [google.cloud.asset.v1.AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse].
83
- # This method implements the
84
- # [google.longrunning.Operation][google.longrunning.Operation], which allows
85
- # you to track the export status. We recommend intervals of at least 2
86
- # seconds with exponential retry to poll the export operation result. The
87
- # metadata contains the request to help callers to map responses to requests.
88
- rpc :ExportIamPolicyAnalysis, Google::Cloud::Asset::V1::ExportIamPolicyAnalysisRequest, Google::Longrunning::Operation
78
+ rpc :AnalyzeIamPolicy, ::Google::Cloud::Asset::V1::AnalyzeIamPolicyRequest, ::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse
79
+ # Analyzes IAM policies asynchronously to answer which identities have what
80
+ # accesses on which resources, and writes the analysis results to a Google
81
+ # Cloud Storage or a BigQuery destination. For Cloud Storage destination, the
82
+ # output format is the JSON format that represents a
83
+ # [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the
84
+ # [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation
85
+ # status. We recommend intervals of at least 2 seconds with exponential
86
+ # backoff retry to poll the operation result. The metadata contains the
87
+ # request to help callers to map responses to requests.
88
+ rpc :AnalyzeIamPolicyLongrunning, ::Google::Cloud::Asset::V1::AnalyzeIamPolicyLongrunningRequest, ::Google::Longrunning::Operation
89
89
  end
90
90
 
91
91
  Stub = Service.rpc_stub_class
@@ -8,10 +8,13 @@ require 'google/cloud/orgpolicy/v1/orgpolicy_pb'
8
8
  require 'google/iam/v1/policy_pb'
9
9
  require 'google/identity/accesscontextmanager/v1/access_level_pb'
10
10
  require 'google/identity/accesscontextmanager/v1/access_policy_pb'
11
+ require 'google/cloud/osconfig/v1/inventory_pb'
11
12
  require 'google/identity/accesscontextmanager/v1/service_perimeter_pb'
13
+ require 'google/protobuf/any_pb'
12
14
  require 'google/protobuf/struct_pb'
13
15
  require 'google/protobuf/timestamp_pb'
14
16
  require 'google/rpc/code_pb'
17
+ require 'google/api/annotations_pb'
15
18
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
19
  add_file("google/cloud/asset/v1/assets.proto", :syntax => :proto3) do
17
20
  add_message "google.cloud.asset.v1.TemporalAsset" do
@@ -39,6 +42,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
39
42
  optional :resource, :message, 3, "google.cloud.asset.v1.Resource"
40
43
  optional :iam_policy, :message, 4, "google.iam.v1.Policy"
41
44
  repeated :org_policy, :message, 6, "google.cloud.orgpolicy.v1.Policy"
45
+ optional :os_inventory, :message, 12, "google.cloud.osconfig.v1.Inventory"
42
46
  repeated :ancestors, :string, 10
43
47
  oneof :access_context_policy do
44
48
  optional :access_policy, :message, 7, "google.identity.accesscontextmanager.v1.AccessPolicy"
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Asset
23
23
  module V1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -0,0 +1,108 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/osconfig/v1/inventory.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/timestamp_pb'
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/osconfig/v1/inventory.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.osconfig.v1.Inventory" do
10
+ optional :os_info, :message, 1, "google.cloud.osconfig.v1.Inventory.OsInfo"
11
+ map :items, :string, :message, 2, "google.cloud.osconfig.v1.Inventory.Item"
12
+ end
13
+ add_message "google.cloud.osconfig.v1.Inventory.OsInfo" do
14
+ optional :hostname, :string, 9
15
+ optional :long_name, :string, 2
16
+ optional :short_name, :string, 3
17
+ optional :version, :string, 4
18
+ optional :architecture, :string, 5
19
+ optional :kernel_version, :string, 6
20
+ optional :kernel_release, :string, 7
21
+ optional :osconfig_agent_version, :string, 8
22
+ end
23
+ add_message "google.cloud.osconfig.v1.Inventory.Item" do
24
+ optional :id, :string, 1
25
+ optional :origin_type, :enum, 2, "google.cloud.osconfig.v1.Inventory.Item.OriginType"
26
+ optional :create_time, :message, 8, "google.protobuf.Timestamp"
27
+ optional :update_time, :message, 9, "google.protobuf.Timestamp"
28
+ optional :type, :enum, 5, "google.cloud.osconfig.v1.Inventory.Item.Type"
29
+ oneof :details do
30
+ optional :installed_package, :message, 6, "google.cloud.osconfig.v1.Inventory.SoftwarePackage"
31
+ optional :available_package, :message, 7, "google.cloud.osconfig.v1.Inventory.SoftwarePackage"
32
+ end
33
+ end
34
+ add_enum "google.cloud.osconfig.v1.Inventory.Item.OriginType" do
35
+ value :ORIGIN_TYPE_UNSPECIFIED, 0
36
+ value :INVENTORY_REPORT, 1
37
+ end
38
+ add_enum "google.cloud.osconfig.v1.Inventory.Item.Type" do
39
+ value :TYPE_UNSPECIFIED, 0
40
+ value :INSTALLED_PACKAGE, 1
41
+ value :AVAILABLE_PACKAGE, 2
42
+ end
43
+ add_message "google.cloud.osconfig.v1.Inventory.SoftwarePackage" do
44
+ oneof :details do
45
+ optional :yum_package, :message, 1, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
46
+ optional :apt_package, :message, 2, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
47
+ optional :zypper_package, :message, 3, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
48
+ optional :googet_package, :message, 4, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
49
+ optional :zypper_patch, :message, 5, "google.cloud.osconfig.v1.Inventory.ZypperPatch"
50
+ optional :wua_package, :message, 6, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage"
51
+ optional :qfe_package, :message, 7, "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage"
52
+ optional :cos_package, :message, 8, "google.cloud.osconfig.v1.Inventory.VersionedPackage"
53
+ end
54
+ end
55
+ add_message "google.cloud.osconfig.v1.Inventory.VersionedPackage" do
56
+ optional :package_name, :string, 4
57
+ optional :architecture, :string, 2
58
+ optional :version, :string, 3
59
+ end
60
+ add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage" do
61
+ optional :title, :string, 1
62
+ optional :description, :string, 2
63
+ repeated :categories, :message, 3, "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory"
64
+ repeated :kb_article_ids, :string, 4
65
+ optional :support_url, :string, 11
66
+ repeated :more_info_urls, :string, 5
67
+ optional :update_id, :string, 6
68
+ optional :revision_number, :int32, 7
69
+ optional :last_deployment_change_time, :message, 10, "google.protobuf.Timestamp"
70
+ end
71
+ add_message "google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory" do
72
+ optional :id, :string, 1
73
+ optional :name, :string, 2
74
+ end
75
+ add_message "google.cloud.osconfig.v1.Inventory.ZypperPatch" do
76
+ optional :patch_name, :string, 5
77
+ optional :category, :string, 2
78
+ optional :severity, :string, 3
79
+ optional :summary, :string, 4
80
+ end
81
+ add_message "google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage" do
82
+ optional :caption, :string, 1
83
+ optional :description, :string, 2
84
+ optional :hot_fix_id, :string, 3
85
+ optional :install_time, :message, 5, "google.protobuf.Timestamp"
86
+ end
87
+ end
88
+ end
89
+
90
+ module Google
91
+ module Cloud
92
+ module OsConfig
93
+ module V1
94
+ Inventory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory").msgclass
95
+ Inventory::OsInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.OsInfo").msgclass
96
+ Inventory::Item = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.Item").msgclass
97
+ Inventory::Item::OriginType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.Item.OriginType").enummodule
98
+ Inventory::Item::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.Item.Type").enummodule
99
+ Inventory::SoftwarePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.SoftwarePackage").msgclass
100
+ Inventory::VersionedPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.VersionedPackage").msgclass
101
+ Inventory::WindowsUpdatePackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage").msgclass
102
+ Inventory::WindowsUpdatePackage::WindowsUpdateCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory").msgclass
103
+ Inventory::ZypperPatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.ZypperPatch").msgclass
104
+ Inventory::WindowsQuickFixEngineeringPackage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.osconfig.v1.Inventory.WindowsQuickFixEngineeringPackage").msgclass
105
+ end
106
+ end
107
+ end
108
+ end