google-apis-cloudasset_v1 0.8.0 → 0.9.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: 558a06e37bce99cf51a7c6fbc13888f2ba23212ae707fea12ee49cc5e310badf
|
4
|
+
data.tar.gz: 2986b2615d0b7508a6ba66b826f4c9aeb59a6bf166b7eec0048aefa88d0e6067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abb0f7f0990887b3590047b883f96ef50193e11eda30f302699550460924f0424d642598d43c98e013f80528575815ebe57d858a2dd3bcc0023b61102e54cbb9
|
7
|
+
data.tar.gz: 5c5a2bd69c6dcec6567b68b6cfc5e0305e0b41ab2ce137e749ef3e8dd80b4703438b1c394ba0ae5fd8a9ec5defb72ffed58ff41c51a2a2db43a69735af43a2ba
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-cloudasset_v1
|
2
2
|
|
3
|
+
### v0.9.0 (2021-06-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210611
|
6
|
+
* Regenerated using generator version 0.3.0
|
7
|
+
|
3
8
|
### v0.8.0 (2021-05-20)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20210518
|
@@ -2776,11 +2776,36 @@ module Google
|
|
2776
2776
|
class IamPolicySearchResult
|
2777
2777
|
include Google::Apis::Core::Hashable
|
2778
2778
|
|
2779
|
+
# The type of the resource associated with this IAM policy. Example: `compute.
|
2780
|
+
# googleapis.com/Disk`. To search against the `asset_type`: * specify the `
|
2781
|
+
# asset_types` field in your search request.
|
2782
|
+
# Corresponds to the JSON property `assetType`
|
2783
|
+
# @return [String]
|
2784
|
+
attr_accessor :asset_type
|
2785
|
+
|
2779
2786
|
# Explanation about the IAM policy search result.
|
2780
2787
|
# Corresponds to the JSON property `explanation`
|
2781
2788
|
# @return [Google::Apis::CloudassetV1::Explanation]
|
2782
2789
|
attr_accessor :explanation
|
2783
2790
|
|
2791
|
+
# The folder(s) that the IAM policy belongs to, in the form of folders/`
|
2792
|
+
# FOLDER_NUMBER`. This field is available when the IAM policy belongs to one or
|
2793
|
+
# more folders. To search against `folders`: * use a field query. Example: `
|
2794
|
+
# folders:(123 OR 456)` * use a free text query. Example: `123` * specify the `
|
2795
|
+
# scope` field as this folder in your search request.
|
2796
|
+
# Corresponds to the JSON property `folders`
|
2797
|
+
# @return [Array<String>]
|
2798
|
+
attr_accessor :folders
|
2799
|
+
|
2800
|
+
# The organization that the IAM policy belongs to, in the form of organizations/`
|
2801
|
+
# ORGANIZATION_NUMBER`. This field is available when the IAM policy belongs to
|
2802
|
+
# an organization. To search against `organization`: * use a field query.
|
2803
|
+
# Example: `organization:123` * use a free text query. Example: `123` * specify
|
2804
|
+
# the `scope` field as this organization in your search request.
|
2805
|
+
# Corresponds to the JSON property `organization`
|
2806
|
+
# @return [String]
|
2807
|
+
attr_accessor :organization
|
2808
|
+
|
2784
2809
|
# An Identity and Access Management (IAM) policy, which specifies access
|
2785
2810
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
2786
2811
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
@@ -2838,7 +2863,10 @@ module Google
|
|
2838
2863
|
|
2839
2864
|
# Update properties of this object
|
2840
2865
|
def update!(**args)
|
2866
|
+
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
2841
2867
|
@explanation = args[:explanation] if args.key?(:explanation)
|
2868
|
+
@folders = args[:folders] if args.key?(:folders)
|
2869
|
+
@organization = args[:organization] if args.key?(:organization)
|
2842
2870
|
@policy = args[:policy] if args.key?(:policy)
|
2843
2871
|
@project = args[:project] if args.key?(:project)
|
2844
2872
|
@resource = args[:resource] if args.key?(:resource)
|
@@ -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.9.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210611"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1230,8 +1230,11 @@ module Google
|
|
1230
1230
|
class IamPolicySearchResult
|
1231
1231
|
# @private
|
1232
1232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1233
|
+
property :asset_type, as: 'assetType'
|
1233
1234
|
property :explanation, as: 'explanation', class: Google::Apis::CloudassetV1::Explanation, decorator: Google::Apis::CloudassetV1::Explanation::Representation
|
1234
1235
|
|
1236
|
+
collection :folders, as: 'folders'
|
1237
|
+
property :organization, as: 'organization'
|
1235
1238
|
property :policy, as: 'policy', class: Google::Apis::CloudassetV1::Policy, decorator: Google::Apis::CloudassetV1::Policy::Representation
|
1236
1239
|
|
1237
1240
|
property :project, as: 'project'
|
@@ -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?
|
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.9.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-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
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.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudasset_v1/v0.9.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudasset_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|