google-apis-cloudasset_v1 0.8.0 → 0.12.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c38f65fcf1850393aa7f18916850c85b209fd0691b2a6696308a180d6933e254
|
4
|
+
data.tar.gz: f01a352349d9590e05a2597df3e750c8e7cabd975246a42f86502a8c32f09583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc78c758ef284a7b9dce6cfe0bb8c3418cd77c8c8e3ee3951b6b675290fc4c523268ec5d632be8bf706ff3a63d81984a1f7de6e6273e9504bbee737cadef1632
|
7
|
+
data.tar.gz: 879590b7b52b7d015374256d1dd9f6403f56c1665e9d27ffac2c113067707de1a34b0b3ba0c4a877004209fa2e810b70404c4dabf310459f1ecec62cabb26e82
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release history for google-apis-cloudasset_v1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-07-14)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210709
|
6
|
+
|
7
|
+
### v0.11.0 (2021-06-30)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210625
|
10
|
+
* Regenerated using generator version 0.4.0
|
11
|
+
|
12
|
+
### v0.10.0 (2021-06-24)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.9.0 (2021-06-16)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210611
|
19
|
+
* Regenerated using generator version 0.3.0
|
20
|
+
|
3
21
|
### v0.8.0 (2021-05-20)
|
4
22
|
|
5
23
|
* Regenerated from discovery document revision 20210518
|
@@ -282,6 +282,37 @@ module Google
|
|
282
282
|
end
|
283
283
|
end
|
284
284
|
|
285
|
+
# Attached resource representation, which is defined by the corresponding
|
286
|
+
# service provider. It represents an attached resource's payload.
|
287
|
+
class AttachedResource
|
288
|
+
include Google::Apis::Core::Hashable
|
289
|
+
|
290
|
+
# The type of this attached resource. Example: `osconfig.googleapis.com/
|
291
|
+
# Inventory` You can find the supported attached asset types of each resource in
|
292
|
+
# this table: `https://cloud.google.com/asset-inventory/docs/supported-asset-
|
293
|
+
# types#searchable_asset_types`
|
294
|
+
# Corresponds to the JSON property `assetType`
|
295
|
+
# @return [String]
|
296
|
+
attr_accessor :asset_type
|
297
|
+
|
298
|
+
# Versioned resource representations of this attached resource. This is repeated
|
299
|
+
# because there could be multiple versions of the attached resource
|
300
|
+
# representations during version migration.
|
301
|
+
# Corresponds to the JSON property `versionedResources`
|
302
|
+
# @return [Array<Google::Apis::CloudassetV1::VersionedResource>]
|
303
|
+
attr_accessor :versioned_resources
|
304
|
+
|
305
|
+
def initialize(**args)
|
306
|
+
update!(**args)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Update properties of this object
|
310
|
+
def update!(**args)
|
311
|
+
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
312
|
+
@versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
285
316
|
# Specifies the audit configuration for a service. The configuration determines
|
286
317
|
# which permission types are logged, and what identities, if any, are exempted
|
287
318
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
@@ -2776,11 +2807,36 @@ module Google
|
|
2776
2807
|
class IamPolicySearchResult
|
2777
2808
|
include Google::Apis::Core::Hashable
|
2778
2809
|
|
2810
|
+
# The type of the resource associated with this IAM policy. Example: `compute.
|
2811
|
+
# googleapis.com/Disk`. To search against the `asset_type`: * specify the `
|
2812
|
+
# asset_types` field in your search request.
|
2813
|
+
# Corresponds to the JSON property `assetType`
|
2814
|
+
# @return [String]
|
2815
|
+
attr_accessor :asset_type
|
2816
|
+
|
2779
2817
|
# Explanation about the IAM policy search result.
|
2780
2818
|
# Corresponds to the JSON property `explanation`
|
2781
2819
|
# @return [Google::Apis::CloudassetV1::Explanation]
|
2782
2820
|
attr_accessor :explanation
|
2783
2821
|
|
2822
|
+
# The folder(s) that the IAM policy belongs to, in the form of folders/`
|
2823
|
+
# FOLDER_NUMBER`. This field is available when the IAM policy belongs to one or
|
2824
|
+
# more folders. To search against `folders`: * use a field query. Example: `
|
2825
|
+
# folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `
|
2826
|
+
# scope` field as this folder in your search request.
|
2827
|
+
# Corresponds to the JSON property `folders`
|
2828
|
+
# @return [Array<String>]
|
2829
|
+
attr_accessor :folders
|
2830
|
+
|
2831
|
+
# The organization that the IAM policy belongs to, in the form of organizations/`
|
2832
|
+
# ORGANIZATION_NUMBER`. This field is available when the IAM policy belongs to
|
2833
|
+
# an organization. To search against `organization`: * use a field query.
|
2834
|
+
# Example: `organization:123` * use a free text query. Example: `123` * specify
|
2835
|
+
# the `scope` field as this organization in your search request.
|
2836
|
+
# Corresponds to the JSON property `organization`
|
2837
|
+
# @return [String]
|
2838
|
+
attr_accessor :organization
|
2839
|
+
|
2784
2840
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2785
2841
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2786
2842
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
@@ -2838,7 +2894,10 @@ module Google
|
|
2838
2894
|
|
2839
2895
|
# Update properties of this object
|
2840
2896
|
def update!(**args)
|
2897
|
+
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
2841
2898
|
@explanation = args[:explanation] if args.key?(:explanation)
|
2899
|
+
@folders = args[:folders] if args.key?(:folders)
|
2900
|
+
@organization = args[:organization] if args.key?(:organization)
|
2842
2901
|
@policy = args[:policy] if args.key?(:policy)
|
2843
2902
|
@project = args[:project] if args.key?(:project)
|
2844
2903
|
@resource = args[:resource] if args.key?(:resource)
|
@@ -3577,6 +3636,15 @@ module Google
|
|
3577
3636
|
# @return [String]
|
3578
3637
|
attr_accessor :asset_type
|
3579
3638
|
|
3639
|
+
# Attached resources of this resource. For example, an OSConfig Inventory is an
|
3640
|
+
# attached resource of a Compute Instance. This field is repeated because a
|
3641
|
+
# resource could have multiple attached resources. This `attached_resources`
|
3642
|
+
# field is not searchable. Some attributes of the attached resources are exposed
|
3643
|
+
# in `additional_attributes` field, so as to allow users to search on them.
|
3644
|
+
# Corresponds to the JSON property `attachedResources`
|
3645
|
+
# @return [Array<Google::Apis::CloudassetV1::AttachedResource>]
|
3646
|
+
attr_accessor :attached_resources
|
3647
|
+
|
3580
3648
|
# The create timestamp of this resource, at which the resource was created. The
|
3581
3649
|
# granularity is in seconds. Timestamp.nanos will always be 0. This field is
|
3582
3650
|
# available only when the resource's proto contains it. To search against `
|
@@ -3727,6 +3795,15 @@ module Google
|
|
3727
3795
|
# @return [String]
|
3728
3796
|
attr_accessor :update_time
|
3729
3797
|
|
3798
|
+
# Versioned resource representations of this resource. This is repeated because
|
3799
|
+
# there could be multiple versions of resource representations during version
|
3800
|
+
# migration. This `versioned_resources` field is not searchable. Some attributes
|
3801
|
+
# of the resource representations are exposed in `additional_attributes` field,
|
3802
|
+
# so as to allow users to search on them.
|
3803
|
+
# Corresponds to the JSON property `versionedResources`
|
3804
|
+
# @return [Array<Google::Apis::CloudassetV1::VersionedResource>]
|
3805
|
+
attr_accessor :versioned_resources
|
3806
|
+
|
3730
3807
|
def initialize(**args)
|
3731
3808
|
update!(**args)
|
3732
3809
|
end
|
@@ -3735,6 +3812,7 @@ module Google
|
|
3735
3812
|
def update!(**args)
|
3736
3813
|
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
|
3737
3814
|
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
3815
|
+
@attached_resources = args[:attached_resources] if args.key?(:attached_resources)
|
3738
3816
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3739
3817
|
@description = args[:description] if args.key?(:description)
|
3740
3818
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -3750,6 +3828,7 @@ module Google
|
|
3750
3828
|
@project = args[:project] if args.key?(:project)
|
3751
3829
|
@state = args[:state] if args.key?(:state)
|
3752
3830
|
@update_time = args[:update_time] if args.key?(:update_time)
|
3831
|
+
@versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
|
3753
3832
|
end
|
3754
3833
|
end
|
3755
3834
|
|
@@ -4088,6 +4167,40 @@ module Google
|
|
4088
4167
|
end
|
4089
4168
|
end
|
4090
4169
|
|
4170
|
+
# Resource representation as defined by the corresponding service providing the
|
4171
|
+
# resource for a given API version.
|
4172
|
+
class VersionedResource
|
4173
|
+
include Google::Apis::Core::Hashable
|
4174
|
+
|
4175
|
+
# JSON representation of the resource as defined by the corresponding service
|
4176
|
+
# providing this resource. Example: If the resource is an instance provided by
|
4177
|
+
# Compute Engine, this field will contain the JSON representation of the
|
4178
|
+
# instance as defined by Compute Engine: `https://cloud.google.com/compute/docs/
|
4179
|
+
# reference/rest/v1/instances`. You can find the resource definition for each
|
4180
|
+
# supported resource type in this table: `https://cloud.google.com/asset-
|
4181
|
+
# inventory/docs/supported-asset-types#searchable_asset_types`
|
4182
|
+
# Corresponds to the JSON property `resource`
|
4183
|
+
# @return [Hash<String,Object>]
|
4184
|
+
attr_accessor :resource
|
4185
|
+
|
4186
|
+
# API version of the resource. Example: If the resource is an instance provided
|
4187
|
+
# by Compute Engine v1 API as defined in `https://cloud.google.com/compute/docs/
|
4188
|
+
# reference/rest/v1/instances`, version will be "v1".
|
4189
|
+
# Corresponds to the JSON property `version`
|
4190
|
+
# @return [String]
|
4191
|
+
attr_accessor :version
|
4192
|
+
|
4193
|
+
def initialize(**args)
|
4194
|
+
update!(**args)
|
4195
|
+
end
|
4196
|
+
|
4197
|
+
# Update properties of this object
|
4198
|
+
def update!(**args)
|
4199
|
+
@resource = args[:resource] if args.key?(:resource)
|
4200
|
+
@version = args[:version] if args.key?(:version)
|
4201
|
+
end
|
4202
|
+
end
|
4203
|
+
|
4091
4204
|
# Information related to a Quick Fix Engineering package. Fields are taken from
|
4092
4205
|
# Windows QuickFixEngineering Interface and match the source names: https://docs.
|
4093
4206
|
# microsoft.com/en-us/windows/win32/cimwin32prov/win32-quickfixengineering
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudassetV1
|
18
18
|
# Version of the google-apis-cloudasset_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.12.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210709"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -58,6 +58,12 @@ module Google
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
+
class AttachedResource
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
|
64
|
+
include Google::Apis::Core::JsonObjectSupport
|
65
|
+
end
|
66
|
+
|
61
67
|
class AuditConfig
|
62
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
69
|
|
@@ -562,6 +568,12 @@ module Google
|
|
562
568
|
include Google::Apis::Core::JsonObjectSupport
|
563
569
|
end
|
564
570
|
|
571
|
+
class VersionedResource
|
572
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
|
+
|
574
|
+
include Google::Apis::Core::JsonObjectSupport
|
575
|
+
end
|
576
|
+
|
565
577
|
class WindowsQuickFixEngineeringPackage
|
566
578
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
579
|
|
@@ -653,6 +665,15 @@ module Google
|
|
653
665
|
end
|
654
666
|
end
|
655
667
|
|
668
|
+
class AttachedResource
|
669
|
+
# @private
|
670
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
671
|
+
property :asset_type, as: 'assetType'
|
672
|
+
collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
|
673
|
+
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
656
677
|
class AuditConfig
|
657
678
|
# @private
|
658
679
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1230,8 +1251,11 @@ module Google
|
|
1230
1251
|
class IamPolicySearchResult
|
1231
1252
|
# @private
|
1232
1253
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1254
|
+
property :asset_type, as: 'assetType'
|
1233
1255
|
property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1::Explanation, decorator: Google::Apis::CloudassetV1::Explanation::Representation
|
1234
1256
|
|
1257
|
+
collection :folders, as: 'folders'
|
1258
|
+
property :organization, as: 'organization'
|
1235
1259
|
property :policy, as: 'policy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
|
1236
1260
|
|
1237
1261
|
property :project, as: 'project'
|
@@ -1416,6 +1440,8 @@ module Google
|
|
1416
1440
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1417
1441
|
hash :additional_attributes, as: 'additionalAttributes'
|
1418
1442
|
property :asset_type, as: 'assetType'
|
1443
|
+
collection :attached_resources, as: 'attachedResources', class: Google::Apis::CloudassetV1::AttachedResource, decorator: Google::Apis::CloudassetV1::AttachedResource::Representation
|
1444
|
+
|
1419
1445
|
property :create_time, as: 'createTime'
|
1420
1446
|
property :description, as: 'description'
|
1421
1447
|
property :display_name, as: 'displayName'
|
@@ -1431,6 +1457,8 @@ module Google
|
|
1431
1457
|
property :project, as: 'project'
|
1432
1458
|
property :state, as: 'state'
|
1433
1459
|
property :update_time, as: 'updateTime'
|
1460
|
+
collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
|
1461
|
+
|
1434
1462
|
end
|
1435
1463
|
end
|
1436
1464
|
|
@@ -1530,6 +1558,14 @@ module Google
|
|
1530
1558
|
end
|
1531
1559
|
end
|
1532
1560
|
|
1561
|
+
class VersionedResource
|
1562
|
+
# @private
|
1563
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1564
|
+
hash :resource, as: 'resource'
|
1565
|
+
property :version, as: 'version'
|
1566
|
+
end
|
1567
|
+
end
|
1568
|
+
|
1533
1569
|
class WindowsQuickFixEngineeringPackage
|
1534
1570
|
# @private
|
1535
1571
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -650,6 +650,26 @@ module Google
|
|
650
650
|
# bar") * projects/`PROJECT_NUMBER` (e.g., "projects/12345678") * folders/`
|
651
651
|
# FOLDER_NUMBER` (e.g., "folders/1234567") * organizations/`ORGANIZATION_NUMBER`
|
652
652
|
# (e.g., "organizations/123456")
|
653
|
+
# @param [Array<String>, String] asset_types
|
654
|
+
# Optional. A list of asset types that the IAM policies are attached to. If
|
655
|
+
# empty, it will search the IAM policies that are attached to all the [
|
656
|
+
# searchable asset types](https://cloud.google.com/asset-inventory/docs/
|
657
|
+
# supported-asset-types#searchable_asset_types). Regular expressions are also
|
658
|
+
# supported. For example: * "compute.googleapis.com.*" snapshots IAM policies
|
659
|
+
# attached to asset type starts with "compute.googleapis.com". * ".*Instance"
|
660
|
+
# snapshots IAM policies attached to asset type ends with "Instance". * ".*
|
661
|
+
# Instance.*" snapshots IAM policies attached to asset type contains "Instance".
|
662
|
+
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported regular
|
663
|
+
# expression syntax. If the regular expression does not match any supported
|
664
|
+
# asset type, an INVALID_ARGUMENT error will be returned.
|
665
|
+
# @param [String] order_by
|
666
|
+
# Optional. A comma-separated list of fields specifying the sorting order of the
|
667
|
+
# results. The default order is ascending. Add " DESC" after the field name to
|
668
|
+
# indicate descending order. Redundant space characters are ignored. Example: "
|
669
|
+
# assetType DESC, resource". Only singular primitive fields in the response are
|
670
|
+
# sortable: * resource * assetType * project All the other fields such as
|
671
|
+
# repeated fields (e.g., `folders`) and non-primitive fields (e.g., `policy`)
|
672
|
+
# are not supported.
|
653
673
|
# @param [Fixnum] page_size
|
654
674
|
# Optional. The page size for search result pagination. Page size is capped at
|
655
675
|
# 500 even if a larger value is given. If set to zero, server will pick an
|
@@ -688,7 +708,10 @@ module Google
|
|
688
708
|
# IAM policy bindings that contain "Important" as a word in any of the
|
689
709
|
# searchable fields (except for the included permissions). * `resource:(
|
690
710
|
# instance1 OR instance2) policy:amy` to find IAM policy bindings that are set
|
691
|
-
# on resources "instance1" or "instance2" and also specify user "amy".
|
711
|
+
# on resources "instance1" or "instance2" and also specify user "amy". * `roles:
|
712
|
+
# roles/compute.admin` to find IAM policy bindings that specify the Compute
|
713
|
+
# Admin role. * `memberTypes:user` to find IAM policy bindings that contain the "
|
714
|
+
# user" member type.
|
692
715
|
# @param [String] fields
|
693
716
|
# Selector specifying which fields to include in a partial response.
|
694
717
|
# @param [String] quota_user
|
@@ -706,11 +729,13 @@ module Google
|
|
706
729
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
707
730
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
708
731
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
709
|
-
def search_all_iam_policies(scope, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
732
|
+
def search_all_iam_policies(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
710
733
|
command = make_simple_command(:get, 'v1/{+scope}:searchAllIamPolicies', options)
|
711
734
|
command.response_representation = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse::Representation
|
712
735
|
command.response_class = Google::Apis::CloudassetV1::SearchAllIamPoliciesResponse
|
713
736
|
command.params['scope'] = scope unless scope.nil?
|
737
|
+
command.query['assetTypes'] = asset_types unless asset_types.nil?
|
738
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
714
739
|
command.query['pageSize'] = page_size unless page_size.nil?
|
715
740
|
command.query['pageToken'] = page_token unless page_token.nil?
|
716
741
|
command.query['query'] = query unless query.nil?
|
@@ -779,18 +804,29 @@ module Google
|
|
779
804
|
# kmsKey:key` to find Cloud resources encrypted with a customer-managed
|
780
805
|
# encryption key whose name contains the word "key". * `state:ACTIVE` to find
|
781
806
|
# Cloud resources whose state contains "ACTIVE" as a word. * `NOT state:ACTIVE`
|
782
|
-
# to find
|
783
|
-
#
|
784
|
-
#
|
785
|
-
#
|
786
|
-
#
|
787
|
-
#
|
788
|
-
#
|
789
|
-
#
|
790
|
-
#
|
791
|
-
#
|
792
|
-
#
|
793
|
-
#
|
807
|
+
# to find Cloud resources whose state doesn't contain "ACTIVE" as a word. * `
|
808
|
+
# createTime<1609459200` to find Cloud resources that were created before "2021-
|
809
|
+
# 01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "2021-01-01 00:00:00
|
810
|
+
# UTC" in seconds. * `updateTime>1609459200` to find Cloud resources that were
|
811
|
+
# updated after "2021-01-01 00:00:00 UTC". 1609459200 is the epoch timestamp of "
|
812
|
+
# 2021-01-01 00:00:00 UTC" in seconds. * `Important` to find Cloud resources
|
813
|
+
# that contain "Important" as a word in any of the searchable fields. * `Impor*`
|
814
|
+
# to find Cloud resources that contain "Impor" as a prefix of any word in any of
|
815
|
+
# the searchable fields. * `Important location:(us-west1 OR global)` to find
|
816
|
+
# Cloud resources that contain "Important" as a word in any of the searchable
|
817
|
+
# fields and are also located in the "us-west1" region or the "global" location.
|
818
|
+
# @param [String] read_mask
|
819
|
+
# Optional. A comma-separated list of fields specifying which fields to be
|
820
|
+
# returned in ResourceSearchResult. Only '*' or combination of top level fields
|
821
|
+
# can be specified. Field names of both snake_case and camelCase are supported.
|
822
|
+
# Examples: `"*"`, `"name,location"`, `"name,versionedResources"`. The read_mask
|
823
|
+
# paths must be valid field paths listed but not limited to (both snake_case and
|
824
|
+
# camelCase are supported): * name * assetType * project * displayName *
|
825
|
+
# description * location * labels * networkTags * kmsKey * createTime *
|
826
|
+
# updateTime * state * additionalAttributes * versionedResources If read_mask is
|
827
|
+
# not specified, all fields except versionedResources will be returned. If only '
|
828
|
+
# *' is specified, all fields including versionedResources will be returned. Any
|
829
|
+
# invalid field path will trigger INVALID_ARGUMENT error.
|
794
830
|
# @param [String] fields
|
795
831
|
# Selector specifying which fields to include in a partial response.
|
796
832
|
# @param [String] quota_user
|
@@ -808,7 +844,7 @@ module Google
|
|
808
844
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
809
845
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
810
846
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
811
|
-
def search_all_resources(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
847
|
+
def search_all_resources(scope, asset_types: nil, order_by: nil, page_size: nil, page_token: nil, query: nil, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
812
848
|
command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
|
813
849
|
command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
|
814
850
|
command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
|
@@ -818,6 +854,7 @@ module Google
|
|
818
854
|
command.query['pageSize'] = page_size unless page_size.nil?
|
819
855
|
command.query['pageToken'] = page_token unless page_token.nil?
|
820
856
|
command.query['query'] = query unless query.nil?
|
857
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
821
858
|
command.query['fields'] = fields unless fields.nil?
|
822
859
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
823
860
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudasset_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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-
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud Asset API V1. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.12.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|