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
@@ -202,7 +202,7 @@ module Google
|
|
202
202
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
203
203
|
end
|
204
204
|
|
205
|
-
# A result of Resource Search, containing information of a cloud
|
205
|
+
# A result of Resource Search, containing information of a cloud resource.
|
206
206
|
# @!attribute [rw] name
|
207
207
|
# @return [::String]
|
208
208
|
# The full resource name of this resource. Example:
|
@@ -213,8 +213,8 @@ module Google
|
|
213
213
|
#
|
214
214
|
# To search against the `name`:
|
215
215
|
#
|
216
|
-
# * use a field query. Example: `name
|
217
|
-
# * use a free text query. Example: `
|
216
|
+
# * use a field query. Example: `name:instance1`
|
217
|
+
# * use a free text query. Example: `instance1`
|
218
218
|
# @!attribute [rw] asset_type
|
219
219
|
# @return [::String]
|
220
220
|
# The type of this resource. Example: `compute.googleapis.com/Disk`.
|
@@ -236,7 +236,7 @@ module Google
|
|
236
236
|
#
|
237
237
|
# To search against the `display_name`:
|
238
238
|
#
|
239
|
-
# * use a field query. Example: `displayName
|
239
|
+
# * use a field query. Example: `displayName:"My Instance"`
|
240
240
|
# * use a free text query. Example: `"My Instance"`
|
241
241
|
# @!attribute [rw] description
|
242
242
|
# @return [::String]
|
@@ -245,7 +245,7 @@ module Google
|
|
245
245
|
#
|
246
246
|
# To search against the `description`:
|
247
247
|
#
|
248
|
-
# * use a field query. Example: `description
|
248
|
+
# * use a field query. Example: `description:"*important instance*"`
|
249
249
|
# * use a free text query. Example: `"*important instance*"`
|
250
250
|
# @!attribute [rw] location
|
251
251
|
# @return [::String]
|
@@ -254,8 +254,8 @@ module Google
|
|
254
254
|
#
|
255
255
|
# To search against the `location`:
|
256
256
|
#
|
257
|
-
# * use a field query. Example: `location
|
258
|
-
# * use a free text query. Example: `
|
257
|
+
# * use a field query. Example: `location:us-west*`
|
258
|
+
# * use a free text query. Example: `us-west*`
|
259
259
|
# @!attribute [rw] labels
|
260
260
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
261
261
|
# Labels associated with this resource. See [Labelling and grouping GCP
|
@@ -264,11 +264,11 @@ module Google
|
|
264
264
|
#
|
265
265
|
# To search against the `labels`:
|
266
266
|
#
|
267
|
-
# * use a field query
|
268
|
-
# - query on any label's key or value. Example: `labels
|
269
|
-
# - query by a given label. Example: `labels.env
|
270
|
-
# - query by a given label'
|
271
|
-
# * use a free text query. Example: `
|
267
|
+
# * use a field query:
|
268
|
+
# - query on any label's key or value. Example: `labels:prod`
|
269
|
+
# - query by a given label. Example: `labels.env:prod`
|
270
|
+
# - query by a given label's existence. Example: `labels.env:*`
|
271
|
+
# * use a free text query. Example: `prod`
|
272
272
|
# @!attribute [rw] network_tags
|
273
273
|
# @return [::Array<::String>]
|
274
274
|
# Network tags associated with this resource. Like labels, network tags are a
|
@@ -278,19 +278,29 @@ module Google
|
|
278
278
|
#
|
279
279
|
# To search against the `network_tags`:
|
280
280
|
#
|
281
|
-
# * use a field query. Example: `networkTags
|
282
|
-
# * use a free text query. Example: `
|
281
|
+
# * use a field query. Example: `networkTags:internal`
|
282
|
+
# * use a free text query. Example: `internal`
|
283
283
|
# @!attribute [rw] additional_attributes
|
284
284
|
# @return [::Google::Protobuf::Struct]
|
285
|
-
# The additional attributes of this resource. The attributes may
|
286
|
-
# one resource type to another. Examples: `projectId` for Project,
|
287
|
-
# `dnsName` for DNS ManagedZone.
|
285
|
+
# The additional searchable attributes of this resource. The attributes may
|
286
|
+
# vary from one resource type to another. Examples: `projectId` for Project,
|
287
|
+
# `dnsName` for DNS ManagedZone. This field contains a subset of the resource
|
288
|
+
# metadata fields that are returned by the List or Get APIs provided by the
|
289
|
+
# corresponding GCP service (e.g., Compute Engine). see [API references and
|
290
|
+
# supported searchable
|
291
|
+
# attributes](https://cloud.google.com/asset-inventory/docs/supported-asset-types#searchable_asset_types)
|
292
|
+
# for more information.
|
293
|
+
#
|
294
|
+
# You can search values of these fields through free text search. However,
|
295
|
+
# you should not consume the field programically as the field names and
|
296
|
+
# values may change as the GCP service updates to a new incompatible API
|
297
|
+
# version.
|
288
298
|
#
|
289
299
|
# To search against the `additional_attributes`:
|
290
300
|
#
|
291
301
|
# * use a free text query to match the attributes values. Example: to search
|
292
302
|
# `additional_attributes = { dnsName: "foobar" }`, you can issue a query
|
293
|
-
# `
|
303
|
+
# `foobar`.
|
294
304
|
class ResourceSearchResult
|
295
305
|
include ::Google::Protobuf::MessageExts
|
296
306
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -317,7 +327,7 @@ module Google
|
|
317
327
|
#
|
318
328
|
# To search against the `resource`:
|
319
329
|
#
|
320
|
-
# * use a field query. Example: `resource
|
330
|
+
# * use a field query. Example: `resource:organizations/123`
|
321
331
|
# @!attribute [rw] project
|
322
332
|
# @return [::String]
|
323
333
|
# The project that the associated GCP resource belongs to, in the form of
|
@@ -338,13 +348,13 @@ module Google
|
|
338
348
|
#
|
339
349
|
# To search against the `policy` bindings:
|
340
350
|
#
|
341
|
-
# * use a field query
|
351
|
+
# * use a field query:
|
342
352
|
# - query by the policy contained members. Example:
|
343
|
-
# `policy
|
353
|
+
# `policy:amy@gmail.com`
|
344
354
|
# - query by the policy contained roles. Example:
|
345
|
-
# `policy
|
346
|
-
# - query by the policy contained roles'
|
347
|
-
# `policy.role.permissions
|
355
|
+
# `policy:roles/compute.admin`
|
356
|
+
# - query by the policy contained roles' included permissions. Example:
|
357
|
+
# `policy.role.permissions:compute.instances.create`
|
348
358
|
# @!attribute [rw] explanation
|
349
359
|
# @return [::Google::Cloud::Asset::V1::IamPolicySearchResult::Explanation]
|
350
360
|
# Explanation about the IAM policy search result. It contains additional
|
@@ -358,7 +368,7 @@ module Google
|
|
358
368
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Asset::V1::IamPolicySearchResult::Explanation::Permissions}]
|
359
369
|
# The map from roles to their included permissions that match the
|
360
370
|
# permission query (i.e., a query containing `policy.role.permissions:`).
|
361
|
-
# Example: if query `policy.role.permissions
|
371
|
+
# Example: if query `policy.role.permissions:compute.disk.get`
|
362
372
|
# matches a policy binding that contains owner role, the
|
363
373
|
# matched_permissions will be `{"roles/owner": ["compute.disk.get"]}`. The
|
364
374
|
# roles can also be found in the returned `policy` bindings. Note that the
|
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.7.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: 2020-
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
238
|
- !ruby/object:Gem::Version
|
239
239
|
version: '0'
|
240
240
|
requirements: []
|
241
|
-
rubygems_version: 3.1.
|
241
|
+
rubygems_version: 3.1.4
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
244
|
summary: API Client library for the Cloud Asset V1 API
|