google-apis-cloudasset_v1 0.10.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3de4425fb99ae03ded58a93432a8647ffed3147f7ddec71e4484e7d77554d748
|
4
|
+
data.tar.gz: 14291e4f62c1cc4671c7464f63aa230b4a22e78889e02b8f9a9f192f51ff1846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1f4ed6870f2147e2ded8accf8926a67a7d5556c85a676ff31a86bd35bd2ab7419e2eb26eb98da4aa7b57b0d9a23909105ad625644adbe050fead16037e0299e
|
7
|
+
data.tar.gz: 43103fdfe26a3d5bf5f0b5347338237e9836dfbdec692028ef671cd0238430daa6cf7bb046cba415cb6fd06ee77ca802f0773c816e3dfca178a15d3292513c2f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-cloudasset_v1
|
2
2
|
|
3
|
+
### v0.14.0 (2021-07-28)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210723
|
6
|
+
|
7
|
+
### v0.13.0 (2021-07-21)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210716
|
10
|
+
|
11
|
+
### v0.12.0 (2021-07-14)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210709
|
14
|
+
|
15
|
+
### v0.11.0 (2021-06-30)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210625
|
18
|
+
* Regenerated using generator version 0.4.0
|
19
|
+
|
3
20
|
### v0.10.0 (2021-06-24)
|
4
21
|
|
5
22
|
* Unspecified changes
|
@@ -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
|
@@ -1765,8 +1796,8 @@ module Google
|
|
1765
1796
|
|
1766
1797
|
# Required. Resource name for the Access Level. The `short_name` component must
|
1767
1798
|
# begin with a letter and only include alphanumeric and '_'. Format: `
|
1768
|
-
# accessPolicies/`
|
1769
|
-
# the `
|
1799
|
+
# accessPolicies/`access_policy`/accessLevels/`access_level``. The maximum
|
1800
|
+
# length of the `access_level` component is 50 characters.
|
1770
1801
|
# Corresponds to the JSON property `name`
|
1771
1802
|
# @return [String]
|
1772
1803
|
attr_accessor :name
|
@@ -1807,7 +1838,7 @@ module Google
|
|
1807
1838
|
attr_accessor :etag
|
1808
1839
|
|
1809
1840
|
# Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/`
|
1810
|
-
#
|
1841
|
+
# access_policy``
|
1811
1842
|
# Corresponds to the JSON property `name`
|
1812
1843
|
# @return [String]
|
1813
1844
|
attr_accessor :name
|
@@ -2412,7 +2443,7 @@ module Google
|
|
2412
2443
|
|
2413
2444
|
# Required. Resource name for the ServicePerimeter. The `short_name` component
|
2414
2445
|
# must begin with a letter and only include alphanumeric and '_'. Format: `
|
2415
|
-
# accessPolicies/`
|
2446
|
+
# accessPolicies/`access_policy`/servicePerimeters/`service_perimeter``
|
2416
2447
|
# Corresponds to the JSON property `name`
|
2417
2448
|
# @return [String]
|
2418
2449
|
attr_accessor :name
|
@@ -3605,6 +3636,15 @@ module Google
|
|
3605
3636
|
# @return [String]
|
3606
3637
|
attr_accessor :asset_type
|
3607
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
|
+
|
3608
3648
|
# The create timestamp of this resource, at which the resource was created. The
|
3609
3649
|
# granularity is in seconds. Timestamp.nanos will always be 0. This field is
|
3610
3650
|
# available only when the resource's proto contains it. To search against `
|
@@ -3755,6 +3795,15 @@ module Google
|
|
3755
3795
|
# @return [String]
|
3756
3796
|
attr_accessor :update_time
|
3757
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
|
+
|
3758
3807
|
def initialize(**args)
|
3759
3808
|
update!(**args)
|
3760
3809
|
end
|
@@ -3763,6 +3812,7 @@ module Google
|
|
3763
3812
|
def update!(**args)
|
3764
3813
|
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
|
3765
3814
|
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
3815
|
+
@attached_resources = args[:attached_resources] if args.key?(:attached_resources)
|
3766
3816
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3767
3817
|
@description = args[:description] if args.key?(:description)
|
3768
3818
|
@display_name = args[:display_name] if args.key?(:display_name)
|
@@ -3778,6 +3828,7 @@ module Google
|
|
3778
3828
|
@project = args[:project] if args.key?(:project)
|
3779
3829
|
@state = args[:state] if args.key?(:state)
|
3780
3830
|
@update_time = args[:update_time] if args.key?(:update_time)
|
3831
|
+
@versioned_resources = args[:versioned_resources] if args.key?(:versioned_resources)
|
3781
3832
|
end
|
3782
3833
|
end
|
3783
3834
|
|
@@ -4116,6 +4167,40 @@ module Google
|
|
4116
4167
|
end
|
4117
4168
|
end
|
4118
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
|
+
|
4119
4204
|
# Information related to a Quick Fix Engineering package. Fields are taken from
|
4120
4205
|
# Windows QuickFixEngineering Interface and match the source names: https://docs.
|
4121
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.14.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 = "20210723"
|
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
|
@@ -1419,6 +1440,8 @@ module Google
|
|
1419
1440
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1420
1441
|
hash :additional_attributes, as: 'additionalAttributes'
|
1421
1442
|
property :asset_type, as: 'assetType'
|
1443
|
+
collection :attached_resources, as: 'attachedResources', class: Google::Apis::CloudassetV1::AttachedResource, decorator: Google::Apis::CloudassetV1::AttachedResource::Representation
|
1444
|
+
|
1422
1445
|
property :create_time, as: 'createTime'
|
1423
1446
|
property :description, as: 'description'
|
1424
1447
|
property :display_name, as: 'displayName'
|
@@ -1434,6 +1457,8 @@ module Google
|
|
1434
1457
|
property :project, as: 'project'
|
1435
1458
|
property :state, as: 'state'
|
1436
1459
|
property :update_time, as: 'updateTime'
|
1460
|
+
collection :versioned_resources, as: 'versionedResources', class: Google::Apis::CloudassetV1::VersionedResource, decorator: Google::Apis::CloudassetV1::VersionedResource::Representation
|
1461
|
+
|
1437
1462
|
end
|
1438
1463
|
end
|
1439
1464
|
|
@@ -1533,6 +1558,14 @@ module Google
|
|
1533
1558
|
end
|
1534
1559
|
end
|
1535
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
|
+
|
1536
1569
|
class WindowsQuickFixEngineeringPackage
|
1537
1570
|
# @private
|
1538
1571
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -452,7 +452,7 @@ module Google
|
|
452
452
|
# method implements the google.longrunning.Operation, which allows you to track
|
453
453
|
# the operation status. We recommend intervals of at least 2 seconds with
|
454
454
|
# exponential backoff retry to poll the operation result. The metadata contains
|
455
|
-
# the
|
455
|
+
# the metadata for the long-running operation.
|
456
456
|
# @param [String] scope
|
457
457
|
# Required. The relative name of the root asset. Only resources and IAM policies
|
458
458
|
# within the scope will be analyzed. This can only be an organization number (
|
@@ -804,18 +804,29 @@ module Google
|
|
804
804
|
# kmsKey:key` to find Cloud resources encrypted with a customer-managed
|
805
805
|
# encryption key whose name contains the word "key". * `state:ACTIVE` to find
|
806
806
|
# Cloud resources whose state contains "ACTIVE" as a word. * `NOT state:ACTIVE`
|
807
|
-
# to find
|
808
|
-
#
|
809
|
-
#
|
810
|
-
#
|
811
|
-
#
|
812
|
-
#
|
813
|
-
#
|
814
|
-
#
|
815
|
-
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
#
|
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.
|
819
830
|
# @param [String] fields
|
820
831
|
# Selector specifying which fields to include in a partial response.
|
821
832
|
# @param [String] quota_user
|
@@ -833,7 +844,7 @@ module Google
|
|
833
844
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
834
845
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
835
846
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
836
|
-
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)
|
837
848
|
command = make_simple_command(:get, 'v1/{+scope}:searchAllResources', options)
|
838
849
|
command.response_representation = Google::Apis::CloudassetV1::SearchAllResourcesResponse::Representation
|
839
850
|
command.response_class = Google::Apis::CloudassetV1::SearchAllResourcesResponse
|
@@ -843,6 +854,7 @@ module Google
|
|
843
854
|
command.query['pageSize'] = page_size unless page_size.nil?
|
844
855
|
command.query['pageToken'] = page_token unless page_token.nil?
|
845
856
|
command.query['query'] = query unless query.nil?
|
857
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
846
858
|
command.query['fields'] = fields unless fields.nil?
|
847
859
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
860
|
execute_or_queue_command(command, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.14.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-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.14.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|