google-cloud-asset-v1 0.21.1 → 0.22.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.
@@ -297,7 +297,7 @@ module Google
297
297
  end
298
298
 
299
299
  # A result of Resource Search, containing information of a cloud resource.
300
- # Next ID: 29
300
+ # Next ID: 31
301
301
  # @!attribute [rw] name
302
302
  # @return [::String]
303
303
  # The full resource name of this resource. Example:
@@ -308,15 +308,15 @@ module Google
308
308
  #
309
309
  # To search against the `name`:
310
310
  #
311
- # * use a field query. Example: `name:instance1`
312
- # * use a free text query. Example: `instance1`
311
+ # * Use a field query. Example: `name:instance1`
312
+ # * Use a free text query. Example: `instance1`
313
313
  # @!attribute [rw] asset_type
314
314
  # @return [::String]
315
315
  # The type of this resource. Example: `compute.googleapis.com/Disk`.
316
316
  #
317
317
  # To search against the `asset_type`:
318
318
  #
319
- # * specify the `asset_type` field in your search request.
319
+ # * Specify the `asset_type` field in your search request.
320
320
  # @!attribute [rw] project
321
321
  # @return [::String]
322
322
  # The project that this resource belongs to, in the form of
@@ -325,9 +325,9 @@ module Google
325
325
  #
326
326
  # To search against `project`:
327
327
  #
328
- # * use a field query. Example: `project:12345`
329
- # * use a free text query. Example: `12345`
330
- # * specify the `scope` field as this project in your search request.
328
+ # * Use a field query. Example: `project:12345`
329
+ # * Use a free text query. Example: `12345`
330
+ # * Specify the `scope` field as this project in your search request.
331
331
  # @!attribute [rw] folders
332
332
  # @return [::Array<::String>]
333
333
  # The folder(s) that this resource belongs to, in the form of
@@ -336,9 +336,9 @@ module Google
336
336
  #
337
337
  # To search against `folders`:
338
338
  #
339
- # * use a field query. Example: `folders:(123 OR 456)`
340
- # * use a free text query. Example: `123`
341
- # * specify the `scope` field as this folder in your search request.
339
+ # * Use a field query. Example: `folders:(123 OR 456)`
340
+ # * Use a free text query. Example: `123`
341
+ # * Specify the `scope` field as this folder in your search request.
342
342
  # @!attribute [rw] organization
343
343
  # @return [::String]
344
344
  # The organization that this resource belongs to, in the form of
@@ -347,9 +347,9 @@ module Google
347
347
  #
348
348
  # To search against `organization`:
349
349
  #
350
- # * use a field query. Example: `organization:123`
351
- # * use a free text query. Example: `123`
352
- # * specify the `scope` field as this organization in your search request.
350
+ # * Use a field query. Example: `organization:123`
351
+ # * Use a free text query. Example: `123`
352
+ # * Specify the `scope` field as this organization in your search request.
353
353
  # @!attribute [rw] display_name
354
354
  # @return [::String]
355
355
  # The display name of this resource. This field is available only when the
@@ -357,8 +357,8 @@ module Google
357
357
  #
358
358
  # To search against the `display_name`:
359
359
  #
360
- # * use a field query. Example: `displayName:"My Instance"`
361
- # * use a free text query. Example: `"My Instance"`
360
+ # * Use a field query. Example: `displayName:"My Instance"`
361
+ # * Use a free text query. Example: `"My Instance"`
362
362
  # @!attribute [rw] description
363
363
  # @return [::String]
364
364
  # One or more paragraphs of text description of this resource. Maximum length
@@ -367,8 +367,8 @@ module Google
367
367
  #
368
368
  # To search against the `description`:
369
369
  #
370
- # * use a field query. Example: `description:"important instance"`
371
- # * use a free text query. Example: `"important instance"`
370
+ # * Use a field query. Example: `description:"important instance"`
371
+ # * Use a free text query. Example: `"important instance"`
372
372
  # @!attribute [rw] location
373
373
  # @return [::String]
374
374
  # Location can be `global`, regional like `us-east1`, or zonal like
@@ -377,8 +377,8 @@ module Google
377
377
  #
378
378
  # To search against the `location`:
379
379
  #
380
- # * use a field query. Example: `location:us-west*`
381
- # * use a free text query. Example: `us-west*`
380
+ # * Use a field query. Example: `location:us-west*`
381
+ # * Use a free text query. Example: `us-west*`
382
382
  # @!attribute [rw] labels
383
383
  # @return [::Google::Protobuf::Map{::String => ::String}]
384
384
  # Labels associated with this resource. See [Labelling and grouping GCP
@@ -388,11 +388,11 @@ module Google
388
388
  #
389
389
  # To search against the `labels`:
390
390
  #
391
- # * use a field query:
391
+ # * Use a field query:
392
392
  # - query on any label's key or value. Example: `labels:prod`
393
393
  # - query by a given label. Example: `labels.env:prod`
394
394
  # - query by a given label's existence. Example: `labels.env:*`
395
- # * use a free text query. Example: `prod`
395
+ # * Use a free text query. Example: `prod`
396
396
  # @!attribute [rw] network_tags
397
397
  # @return [::Array<::String>]
398
398
  # Network tags associated with this resource. Like labels, network tags are a
@@ -403,21 +403,40 @@ module Google
403
403
  #
404
404
  # To search against the `network_tags`:
405
405
  #
406
- # * use a field query. Example: `networkTags:internal`
407
- # * use a free text query. Example: `internal`
406
+ # * Use a field query. Example: `networkTags:internal`
407
+ # * Use a free text query. Example: `internal`
408
408
  # @!attribute [rw] kms_key
409
409
  # @return [::String]
410
410
  # The Cloud KMS
411
411
  # [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
412
412
  # name or
413
413
  # [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
414
- # name. This field is available only when the resource's Protobuf contains
415
- # it.
414
+ # name.
415
+ #
416
+ # This field only presents for the purpose of backward compatibility. Please
417
+ # use the `kms_keys` field to retrieve KMS key information. This field is
418
+ # available only when the resource's Protobuf contains it and will only be
419
+ # populated for [these resource
420
+ # types](https://cloud.google.com/asset-inventory/docs/legacy-field-names#resource_types_with_the_to_be_deprecated_kmskey_field)
421
+ # for backward compatible purposes.
416
422
  #
417
423
  # To search against the `kms_key`:
418
424
  #
419
- # * use a field query. Example: `kmsKey:key`
420
- # * use a free text query. Example: `key`
425
+ # * Use a field query. Example: `kmsKey:key`
426
+ # * Use a free text query. Example: `key`
427
+ # @!attribute [rw] kms_keys
428
+ # @return [::Array<::String>]
429
+ # The Cloud KMS
430
+ # [CryptoKey](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys)
431
+ # names or
432
+ # [CryptoKeyVersion](https://cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions)
433
+ # names. This field is available only when the resource's Protobuf contains
434
+ # it.
435
+ #
436
+ # To search against the `kms_keys`:
437
+ #
438
+ # * Use a field query. Example: `kmsKeys:key`
439
+ # * Use a free text query. Example: `key`
421
440
  # @!attribute [rw] create_time
422
441
  # @return [::Google::Protobuf::Timestamp]
423
442
  # The create timestamp of this resource, at which the resource was created.
@@ -426,7 +445,7 @@ module Google
426
445
  #
427
446
  # To search against `create_time`:
428
447
  #
429
- # * use a field query.
448
+ # * Use a field query.
430
449
  # - value in seconds since unix epoch. Example: `createTime > 1609459200`
431
450
  # - value in date string. Example: `createTime > 2021-01-01`
432
451
  # - value in date-time string (must be quoted). Example: `createTime >
@@ -440,7 +459,7 @@ module Google
440
459
  #
441
460
  # To search against `update_time`:
442
461
  #
443
- # * use a field query.
462
+ # * Use a field query.
444
463
  # - value in seconds since unix epoch. Example: `updateTime < 1609459200`
445
464
  # - value in date string. Example: `updateTime < 2021-01-01`
446
465
  # - value in date-time string (must be quoted). Example: `updateTime <
@@ -465,8 +484,8 @@ module Google
465
484
  #
466
485
  # To search against the `state`:
467
486
  #
468
- # * use a field query. Example: `state:RUNNING`
469
- # * use a free text query. Example: `RUNNING`
487
+ # * Use a field query. Example: `state:RUNNING`
488
+ # * Use a free text query. Example: `RUNNING`
470
489
  # @!attribute [rw] additional_attributes
471
490
  # @return [::Google::Protobuf::Struct]
472
491
  # The additional searchable attributes of this resource. The attributes may
@@ -485,7 +504,7 @@ module Google
485
504
  #
486
505
  # To search against the `additional_attributes`:
487
506
  #
488
- # * use a free text query to match the attributes values. Example: to search
507
+ # * Use a free text query to match the attributes values. Example: to search
489
508
  # `additional_attributes = { dnsName: "foobar" }`, you can issue a query
490
509
  # `foobar`.
491
510
  # @!attribute [rw] parent_full_resource_name
@@ -493,9 +512,9 @@ module Google
493
512
  # The full resource name of this resource's parent, if it has one.
494
513
  # To search against the `parent_full_resource_name`:
495
514
  #
496
- # * use a field query. Example:
515
+ # * Use a field query. Example:
497
516
  # `parentFullResourceName:"project-name"`
498
- # * use a free text query. Example:
517
+ # * Use a free text query. Example:
499
518
  # `project-name`
500
519
  # @!attribute [rw] versioned_resources
501
520
  # @return [::Array<::Google::Cloud::Asset::V1::VersionedResource>]
@@ -528,12 +547,12 @@ module Google
528
547
  # TagKey namespaced names, in the format of \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}.
529
548
  # To search against the `tagKeys`:
530
549
  #
531
- # * use a field query. Example:
550
+ # * Use a field query. Example:
532
551
  # - `tagKeys:"123456789/env*"`
533
552
  # - `tagKeys="123456789/env"`
534
553
  # - `tagKeys:"env"`
535
554
  #
536
- # * use a free text query. Example:
555
+ # * Use a free text query. Example:
537
556
  # - `env`
538
557
  # @!attribute [rw] tag_values
539
558
  # @return [::Array<::String>]
@@ -541,24 +560,24 @@ module Google
541
560
  # \\{ORG_ID}/\\{TAG_KEY_SHORT_NAME}/\\{TAG_VALUE_SHORT_NAME}.
542
561
  # To search against the `tagValues`:
543
562
  #
544
- # * use a field query. Example:
563
+ # * Use a field query. Example:
545
564
  # - `tagValues:"env"`
546
565
  # - `tagValues:"env/prod"`
547
566
  # - `tagValues:"123456789/env/prod*"`
548
567
  # - `tagValues="123456789/env/prod"`
549
568
  #
550
- # * use a free text query. Example:
569
+ # * Use a free text query. Example:
551
570
  # - `prod`
552
571
  # @!attribute [rw] tag_value_ids
553
572
  # @return [::Array<::String>]
554
573
  # TagValue IDs, in the format of tagValues/\\{TAG_VALUE_ID}.
555
574
  # To search against the `tagValueIds`:
556
575
  #
557
- # * use a field query. Example:
576
+ # * Use a field query. Example:
558
577
  # - `tagValueIds:"456"`
559
578
  # - `tagValueIds="tagValues/456"`
560
579
  #
561
- # * use a free text query. Example:
580
+ # * Use a free text query. Example:
562
581
  # - `456`
563
582
  # @!attribute [rw] parent_asset_type
564
583
  # @return [::String]
@@ -566,9 +585,9 @@ module Google
566
585
  #
567
586
  # To search against the `parent_asset_type`:
568
587
  #
569
- # * use a field query. Example:
588
+ # * Use a field query. Example:
570
589
  # `parentAssetType:"cloudresourcemanager.googleapis.com/Project"`
571
- # * use a free text query. Example:
590
+ # * Use a free text query. Example:
572
591
  # `cloudresourcemanager.googleapis.com/Project`
573
592
  class ResourceSearchResult
574
593
  include ::Google::Protobuf::MessageExts
@@ -827,28 +846,22 @@ module Google
827
846
  # @return [::String]
828
847
  # The [full resource
829
848
  # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
830
- # of the resource to which the
831
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding}
832
- # policy attaches.
849
+ # of the resource to which the {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding} policy attaches.
833
850
  # @!attribute [rw] iam_binding
834
851
  # @return [::Google::Iam::V1::Binding]
835
852
  # The Cloud IAM policy binding under analysis.
836
853
  # @!attribute [rw] access_control_lists
837
854
  # @return [::Array<::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::AccessControlList>]
838
- # The access control lists derived from the
839
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding}
840
- # that match or potentially match resource and access selectors specified in
841
- # the request.
855
+ # The access control lists derived from the {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding} that match or
856
+ # potentially match resource and access selectors specified in the request.
842
857
  # @!attribute [rw] identity_list
843
858
  # @return [::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::IdentityList]
844
- # The identity list derived from members of the
845
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding}
846
- # that match or potentially match identity selector specified in the request.
859
+ # The identity list derived from members of the {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding} that match or
860
+ # potentially match identity selector specified in the request.
847
861
  # @!attribute [rw] fully_explored
848
862
  # @return [::Boolean]
849
- # Represents whether all analyses on the
850
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding}
851
- # have successfully finished.
863
+ # Represents whether all analyses on the {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult#iam_binding iam_binding} have successfully
864
+ # finished.
852
865
  class IamPolicyAnalysisResult
853
866
  include ::Google::Protobuf::MessageExts
854
867
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -945,10 +958,8 @@ module Google
945
958
  # @!attribute [rw] resource_edges
946
959
  # @return [::Array<::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge>]
947
960
  # Resource edges of the graph starting from the policy attached
948
- # resource to any descendant resources. The
949
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#source_node Edge.source_node}
950
- # contains the full resource name of a parent resource and
951
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#target_node Edge.target_node}
961
+ # resource to any descendant resources. The {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#source_node Edge.source_node} contains
962
+ # the full resource name of a parent resource and {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#target_node Edge.target_node}
952
963
  # contains the full resource name of a child resource. This field is
953
964
  # present only if the output_resource_edges option is enabled in request.
954
965
  # @!attribute [rw] condition_evaluation
@@ -970,15 +981,12 @@ module Google
970
981
  # @!attribute [rw] group_edges
971
982
  # @return [::Array<::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge>]
972
983
  # Group identity edges of the graph starting from the binding's
973
- # group members to any node of the
974
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::IdentityList#identities identities}.
975
- # The
976
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#source_node Edge.source_node}
984
+ # group members to any node of the {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::IdentityList#identities identities}. The {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#source_node Edge.source_node}
977
985
  # contains a group, such as `group:parent@google.com`. The
978
- # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#target_node Edge.target_node}
979
- # contains a member of the group, such as `group:child@google.com` or
980
- # `user:foo@google.com`. This field is present only if the
981
- # output_group_edges option is enabled in request.
986
+ # {::Google::Cloud::Asset::V1::IamPolicyAnalysisResult::Edge#target_node Edge.target_node} contains a member of the group,
987
+ # such as `group:child@google.com` or `user:foo@google.com`.
988
+ # This field is present only if the output_group_edges option is enabled in
989
+ # request.
982
990
  class IdentityList
983
991
  include ::Google::Protobuf::MessageExts
984
992
  extend ::Google::Protobuf::MessageExts::ClassMethods
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.21.1
4
+ version: 0.22.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: 2022-09-28 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common