google-api-client 0.41.0 → 0.41.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3 -5
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +132 -42
- data/generated/google/apis/apigee_v1/representations.rb +16 -0
- data/generated/google/apis/apigee_v1/service.rb +23 -24
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +36 -6
- data/generated/google/apis/bigquery_v2/representations.rb +4 -0
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
- data/generated/google/apis/civicinfo_v2/service.rb +27 -62
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +391 -3
- data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
- data/generated/google/apis/cloudasset_v1/service.rb +178 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
- data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/service.rb +0 -42
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -6
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -3
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
- data/generated/google/apis/composer_v1beta1/service.rb +13 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +45 -31
- data/generated/google/apis/compute_alpha/service.rb +9 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +262 -31
- data/generated/google/apis/compute_beta/representations.rb +70 -0
- data/generated/google/apis/compute_beta/service.rb +233 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +592 -29
- data/generated/google/apis/compute_v1/representations.rb +182 -0
- data/generated/google/apis/compute_v1/service.rb +501 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +29 -3
- data/generated/google/apis/container_v1/representations.rb +15 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +172 -0
- data/generated/google/apis/content_v2_1/representations.rb +71 -0
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +194 -20
- data/generated/google/apis/dialogflow_v2/representations.rb +77 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +194 -20
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +77 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +105 -2
- data/generated/google/apis/displayvideo_v1/representations.rb +11 -0
- data/generated/google/apis/displayvideo_v1/service.rb +78 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
- data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +6 -6
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +6 -6
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +69 -21
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +8 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +2 -2
- data/generated/google/apis/people_v1.rb +4 -1
- data/generated/google/apis/playablelocations_v3.rb +31 -0
- data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
- data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
- data/generated/google/apis/playablelocations_v3/service.rb +157 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +19 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +4 -2
- data/generated/google/apis/realtimebidding_v1.rb +40 -0
- data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
- data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
- data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +1 -1
- data/generated/google/apis/redis_v1/service.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
- data/generated/google/apis/redis_v1beta1/service.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/run_v1.rb +2 -2
- data/generated/google/apis/run_v1/classes.rb +4 -1
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +2 -2
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +2 -2
- data/generated/google/apis/run_v1beta1/service.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +19 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/service.rb +4 -5
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +2 -5
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +90 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +25 -20
- data/generated/google/apis/spanner_v1/service.rb +2 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +2 -3
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/vectortile_v1.rb +31 -0
- data/generated/google/apis/vectortile_v1/classes.rb +881 -0
- data/generated/google/apis/vectortile_v1/representations.rb +329 -0
- data/generated/google/apis/vectortile_v1/service.rb +268 -0
- data/generated/google/apis/webfonts_v1.rb +5 -5
- data/generated/google/apis/webfonts_v1/classes.rb +4 -3
- data/generated/google/apis/webfonts_v1/representations.rb +1 -2
- data/generated/google/apis/webfonts_v1/service.rb +14 -21
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/asset-inventory/docs/quickstart
|
26
26
|
module CloudassetV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200619'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -505,13 +505,47 @@ module Google
|
|
505
505
|
end
|
506
506
|
end
|
507
507
|
|
508
|
+
# Explanation about the IAM policy search result.
|
509
|
+
class Explanation
|
510
|
+
include Google::Apis::Core::Hashable
|
511
|
+
|
512
|
+
# The map from roles to their included permissions that match the
|
513
|
+
# permission query (i.e., a query containing `policy.role.permissions:`).
|
514
|
+
# Example: if query `policy.role.permissions : "compute.disk.get"`
|
515
|
+
# matches a policy binding that contains owner role, the
|
516
|
+
# matched_permissions will be ``"roles/owner": ["compute.disk.get"]``. The
|
517
|
+
# roles can also be found in the returned `policy` bindings. Note that the
|
518
|
+
# map is populated only for requests with permission queries.
|
519
|
+
# Corresponds to the JSON property `matchedPermissions`
|
520
|
+
# @return [Hash<String,Google::Apis::CloudassetV1::Permissions>]
|
521
|
+
attr_accessor :matched_permissions
|
522
|
+
|
523
|
+
def initialize(**args)
|
524
|
+
update!(**args)
|
525
|
+
end
|
526
|
+
|
527
|
+
# Update properties of this object
|
528
|
+
def update!(**args)
|
529
|
+
@matched_permissions = args[:matched_permissions] if args.key?(:matched_permissions)
|
530
|
+
end
|
531
|
+
end
|
532
|
+
|
508
533
|
# Export asset request.
|
509
534
|
class ExportAssetsRequest
|
510
535
|
include Google::Apis::Core::Hashable
|
511
536
|
|
512
|
-
# A list of asset types
|
513
|
-
# "compute.googleapis.com/Disk".
|
514
|
-
#
|
537
|
+
# A list of asset types to take a snapshot for. For example:
|
538
|
+
# "compute.googleapis.com/Disk".
|
539
|
+
# Regular expressions are also supported. For example:
|
540
|
+
# * "compute.googleapis.com.*" snapshots resources whose asset type starts
|
541
|
+
# with "compute.googleapis.com".
|
542
|
+
# * ".*Instance" snapshots resources whose asset type ends with "Instance".
|
543
|
+
# * ".*Instance.*" snapshots resources whose asset type contains "Instance".
|
544
|
+
# See [RE2](https://github.com/google/re2/wiki/Syntax) for all supported
|
545
|
+
# regular expression syntax. If the regular expression does not match any
|
546
|
+
# supported asset type, an INVALID_ARGUMENT error will be returned.
|
547
|
+
# If specified, only matching assets will be returned, otherwise, it will
|
548
|
+
# snapshot all asset types. See [Introduction to Cloud Asset
|
515
549
|
# Inventory](https://cloud.google.com/asset-inventory/docs/overview)
|
516
550
|
# for all supported asset types.
|
517
551
|
# Corresponds to the JSON property `assetTypes`
|
@@ -646,6 +680,32 @@ module Google
|
|
646
680
|
# @return [Array<String>]
|
647
681
|
attr_accessor :asset_types
|
648
682
|
|
683
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
684
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
685
|
+
# are documented at https://github.com/google/cel-spec.
|
686
|
+
# Example (Comparison):
|
687
|
+
# title: "Summary size limit"
|
688
|
+
# description: "Determines if a summary is less than 100 chars"
|
689
|
+
# expression: "document.summary.size() < 100"
|
690
|
+
# Example (Equality):
|
691
|
+
# title: "Requestor is owner"
|
692
|
+
# description: "Determines if requestor is the document owner"
|
693
|
+
# expression: "document.owner == request.auth.claims.email"
|
694
|
+
# Example (Logic):
|
695
|
+
# title: "Public documents"
|
696
|
+
# description: "Determine whether the document should be publicly visible"
|
697
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
698
|
+
# Example (Data Manipulation):
|
699
|
+
# title: "Notification string"
|
700
|
+
# description: "Create a notification string with a timestamp."
|
701
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
702
|
+
# The exact variables and functions that may be referenced within an expression
|
703
|
+
# are determined by the service that evaluates it. See the service
|
704
|
+
# documentation for additional information.
|
705
|
+
# Corresponds to the JSON property `condition`
|
706
|
+
# @return [Google::Apis::CloudassetV1::Expr]
|
707
|
+
attr_accessor :condition
|
708
|
+
|
649
709
|
# Asset content type. If not specified, no content but the asset name and
|
650
710
|
# type will be returned.
|
651
711
|
# Corresponds to the JSON property `contentType`
|
@@ -675,6 +735,7 @@ module Google
|
|
675
735
|
def update!(**args)
|
676
736
|
@asset_names = args[:asset_names] if args.key?(:asset_names)
|
677
737
|
@asset_types = args[:asset_types] if args.key?(:asset_types)
|
738
|
+
@condition = args[:condition] if args.key?(:condition)
|
678
739
|
@content_type = args[:content_type] if args.key?(:content_type)
|
679
740
|
@feed_output_config = args[:feed_output_config] if args.key?(:feed_output_config)
|
680
741
|
@name = args[:name] if args.key?(:name)
|
@@ -1588,6 +1649,117 @@ module Google
|
|
1588
1649
|
end
|
1589
1650
|
end
|
1590
1651
|
|
1652
|
+
# A result of IAM Policy search, containing information of an IAM policy.
|
1653
|
+
class IamPolicySearchResult
|
1654
|
+
include Google::Apis::Core::Hashable
|
1655
|
+
|
1656
|
+
# Explanation about the IAM policy search result.
|
1657
|
+
# Corresponds to the JSON property `explanation`
|
1658
|
+
# @return [Google::Apis::CloudassetV1::Explanation]
|
1659
|
+
attr_accessor :explanation
|
1660
|
+
|
1661
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
1662
|
+
# controls for Google Cloud resources.
|
1663
|
+
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
1664
|
+
# `members` to a single `role`. Members can be user accounts, service accounts,
|
1665
|
+
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
1666
|
+
# permissions; each `role` can be an IAM predefined role or a user-created
|
1667
|
+
# custom role.
|
1668
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
1669
|
+
# `condition`, which is a logical expression that allows access to a resource
|
1670
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
1671
|
+
# based on attributes of the request, the resource, or both. To learn which
|
1672
|
+
# resources support conditions in their IAM policies, see the
|
1673
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
1674
|
+
# policies).
|
1675
|
+
# **JSON example:**
|
1676
|
+
# `
|
1677
|
+
# "bindings": [
|
1678
|
+
# `
|
1679
|
+
# "role": "roles/resourcemanager.organizationAdmin",
|
1680
|
+
# "members": [
|
1681
|
+
# "user:mike@example.com",
|
1682
|
+
# "group:admins@example.com",
|
1683
|
+
# "domain:google.com",
|
1684
|
+
# "serviceAccount:my-project-id@appspot.gserviceaccount.com"
|
1685
|
+
# ]
|
1686
|
+
# `,
|
1687
|
+
# `
|
1688
|
+
# "role": "roles/resourcemanager.organizationViewer",
|
1689
|
+
# "members": [
|
1690
|
+
# "user:eve@example.com"
|
1691
|
+
# ],
|
1692
|
+
# "condition": `
|
1693
|
+
# "title": "expirable access",
|
1694
|
+
# "description": "Does not grant access after Sep 2020",
|
1695
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')
|
1696
|
+
# ",
|
1697
|
+
# `
|
1698
|
+
# `
|
1699
|
+
# ],
|
1700
|
+
# "etag": "BwWWja0YfJA=",
|
1701
|
+
# "version": 3
|
1702
|
+
# `
|
1703
|
+
# **YAML example:**
|
1704
|
+
# bindings:
|
1705
|
+
# - members:
|
1706
|
+
# - user:mike@example.com
|
1707
|
+
# - group:admins@example.com
|
1708
|
+
# - domain:google.com
|
1709
|
+
# - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
1710
|
+
# role: roles/resourcemanager.organizationAdmin
|
1711
|
+
# - members:
|
1712
|
+
# - user:eve@example.com
|
1713
|
+
# role: roles/resourcemanager.organizationViewer
|
1714
|
+
# condition:
|
1715
|
+
# title: expirable access
|
1716
|
+
# description: Does not grant access after Sep 2020
|
1717
|
+
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
1718
|
+
# - etag: BwWWja0YfJA=
|
1719
|
+
# - version: 3
|
1720
|
+
# For a description of IAM and its features, see the
|
1721
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
1722
|
+
# Corresponds to the JSON property `policy`
|
1723
|
+
# @return [Google::Apis::CloudassetV1::Policy]
|
1724
|
+
attr_accessor :policy
|
1725
|
+
|
1726
|
+
# The project that the associated GCP resource belongs to, in the form of
|
1727
|
+
# projects/`PROJECT_NUMBER`. If an IAM policy is set on a resource (like VM
|
1728
|
+
# instance, Cloud Storage bucket), the project field will indicate the
|
1729
|
+
# project that contains the resource. If an IAM policy is set on a folder or
|
1730
|
+
# orgnization, the project field will be empty.
|
1731
|
+
# To search against the `project`:
|
1732
|
+
# * specify the `scope` field as this project in your search request.
|
1733
|
+
# Corresponds to the JSON property `project`
|
1734
|
+
# @return [String]
|
1735
|
+
attr_accessor :project
|
1736
|
+
|
1737
|
+
# The full resource name of the resource associated with this IAM policy.
|
1738
|
+
# Example:
|
1739
|
+
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
|
1740
|
+
# instance1`.
|
1741
|
+
# See [Cloud Asset Inventory Resource Name
|
1742
|
+
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
|
1743
|
+
# for more information.
|
1744
|
+
# To search against the `resource`:
|
1745
|
+
# * use a field query. Example: `resource : "organizations/123"`
|
1746
|
+
# Corresponds to the JSON property `resource`
|
1747
|
+
# @return [String]
|
1748
|
+
attr_accessor :resource
|
1749
|
+
|
1750
|
+
def initialize(**args)
|
1751
|
+
update!(**args)
|
1752
|
+
end
|
1753
|
+
|
1754
|
+
# Update properties of this object
|
1755
|
+
def update!(**args)
|
1756
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
1757
|
+
@policy = args[:policy] if args.key?(:policy)
|
1758
|
+
@project = args[:project] if args.key?(:project)
|
1759
|
+
@resource = args[:resource] if args.key?(:resource)
|
1760
|
+
end
|
1761
|
+
end
|
1762
|
+
|
1591
1763
|
#
|
1592
1764
|
class ListFeedsResponse
|
1593
1765
|
include Google::Apis::Core::Hashable
|
@@ -1696,6 +1868,25 @@ module Google
|
|
1696
1868
|
end
|
1697
1869
|
end
|
1698
1870
|
|
1871
|
+
# IAM permissions
|
1872
|
+
class Permissions
|
1873
|
+
include Google::Apis::Core::Hashable
|
1874
|
+
|
1875
|
+
# A list of permissions. A sample permission string: `compute.disk.get`.
|
1876
|
+
# Corresponds to the JSON property `permissions`
|
1877
|
+
# @return [Array<String>]
|
1878
|
+
attr_accessor :permissions
|
1879
|
+
|
1880
|
+
def initialize(**args)
|
1881
|
+
update!(**args)
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
# Update properties of this object
|
1885
|
+
def update!(**args)
|
1886
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
1887
|
+
end
|
1888
|
+
end
|
1889
|
+
|
1699
1890
|
# An Identity and Access Management (IAM) policy, which specifies access
|
1700
1891
|
# controls for Google Cloud resources.
|
1701
1892
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
@@ -1920,6 +2111,183 @@ module Google
|
|
1920
2111
|
end
|
1921
2112
|
end
|
1922
2113
|
|
2114
|
+
# A result of Resource Search, containing information of a cloud resoure.
|
2115
|
+
class ResourceSearchResult
|
2116
|
+
include Google::Apis::Core::Hashable
|
2117
|
+
|
2118
|
+
# The additional attributes of this resource. The attributes may vary from
|
2119
|
+
# one resource type to another. Examples: `projectId` for Project,
|
2120
|
+
# `dnsName` for DNS ManagedZone. This field contains a subset of the resource
|
2121
|
+
# metadata fields that are returned by the List or Get APIs provided by the
|
2122
|
+
# corresponding GCP service (e.g., Compute Engine). see [API
|
2123
|
+
# references](https://cloud.google.com/asset-inventory/docs/supported-asset-
|
2124
|
+
# types#supported_resource_types)
|
2125
|
+
# of CAIS supported resource types. You can search values of these fields
|
2126
|
+
# through free text search. However, you should not consume the field
|
2127
|
+
# programically as the field names and values may change as the GCP service
|
2128
|
+
# (e.g., Compute Engine) updates to a new incompatible API version.
|
2129
|
+
# To search against the `additional_attributes`:
|
2130
|
+
# * use a free text query to match the attributes values. Example: to search
|
2131
|
+
# `additional_attributes = ` dnsName: "foobar" ``, you can issue a query
|
2132
|
+
# `"foobar"`.
|
2133
|
+
# Corresponds to the JSON property `additionalAttributes`
|
2134
|
+
# @return [Hash<String,Object>]
|
2135
|
+
attr_accessor :additional_attributes
|
2136
|
+
|
2137
|
+
# The type of this resource. Example: `compute.googleapis.com/Disk`.
|
2138
|
+
# To search against the `asset_type`:
|
2139
|
+
# * specify the `asset_type` field in your search request.
|
2140
|
+
# Corresponds to the JSON property `assetType`
|
2141
|
+
# @return [String]
|
2142
|
+
attr_accessor :asset_type
|
2143
|
+
|
2144
|
+
# One or more paragraphs of text description of this resource. Maximum length
|
2145
|
+
# could be up to 1M bytes.
|
2146
|
+
# To search against the `description`:
|
2147
|
+
# * use a field query. Example: `description : "*important instance*"`
|
2148
|
+
# * use a free text query. Example: `"*important instance*"`
|
2149
|
+
# Corresponds to the JSON property `description`
|
2150
|
+
# @return [String]
|
2151
|
+
attr_accessor :description
|
2152
|
+
|
2153
|
+
# The display name of this resource.
|
2154
|
+
# To search against the `display_name`:
|
2155
|
+
# * use a field query. Example: `displayName : "My Instance"`
|
2156
|
+
# * use a free text query. Example: `"My Instance"`
|
2157
|
+
# Corresponds to the JSON property `displayName`
|
2158
|
+
# @return [String]
|
2159
|
+
attr_accessor :display_name
|
2160
|
+
|
2161
|
+
# Labels associated with this resource. See [Labelling and grouping GCP
|
2162
|
+
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
|
2163
|
+
# your-google-cloud-platform-resources)
|
2164
|
+
# for more information.
|
2165
|
+
# To search against the `labels`:
|
2166
|
+
# * use a field query, as following:
|
2167
|
+
# - query on any label's key or value. Example: `labels : "prod"`
|
2168
|
+
# - query by a given label. Example: `labels.env : "prod"`
|
2169
|
+
# - query by a given label'sexistence. Example: `labels.env : *`
|
2170
|
+
# * use a free text query. Example: `"prod"`
|
2171
|
+
# Corresponds to the JSON property `labels`
|
2172
|
+
# @return [Hash<String,String>]
|
2173
|
+
attr_accessor :labels
|
2174
|
+
|
2175
|
+
# Location can be `global`, regional like `us-east1`, or zonal like
|
2176
|
+
# `us-west1-b`.
|
2177
|
+
# To search against the `location`:
|
2178
|
+
# * use a field query. Example: `location : "us-west*"`
|
2179
|
+
# * use a free text query. Example: `"us-west*"`
|
2180
|
+
# Corresponds to the JSON property `location`
|
2181
|
+
# @return [String]
|
2182
|
+
attr_accessor :location
|
2183
|
+
|
2184
|
+
# The full resource name of this resource. Example:
|
2185
|
+
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/
|
2186
|
+
# instance1`.
|
2187
|
+
# See [Cloud Asset Inventory Resource Name
|
2188
|
+
# Format](https://cloud.google.com/asset-inventory/docs/resource-name-format)
|
2189
|
+
# for more information.
|
2190
|
+
# To search against the `name`:
|
2191
|
+
# * use a field query. Example: `name : "instance1"`
|
2192
|
+
# * use a free text query. Example: `"instance1"`
|
2193
|
+
# Corresponds to the JSON property `name`
|
2194
|
+
# @return [String]
|
2195
|
+
attr_accessor :name
|
2196
|
+
|
2197
|
+
# Network tags associated with this resource. Like labels, network tags are a
|
2198
|
+
# type of annotations used to group GCP resources. See [Labelling GCP
|
2199
|
+
# resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-
|
2200
|
+
# your-google-cloud-platform-resources)
|
2201
|
+
# for more information.
|
2202
|
+
# To search against the `network_tags`:
|
2203
|
+
# * use a field query. Example: `networkTags : "internal"`
|
2204
|
+
# * use a free text query. Example: `"internal"`
|
2205
|
+
# Corresponds to the JSON property `networkTags`
|
2206
|
+
# @return [Array<String>]
|
2207
|
+
attr_accessor :network_tags
|
2208
|
+
|
2209
|
+
# The project that this resource belongs to, in the form of
|
2210
|
+
# projects/`PROJECT_NUMBER`.
|
2211
|
+
# To search against the `project`:
|
2212
|
+
# * specify the `scope` field as this project in your search request.
|
2213
|
+
# Corresponds to the JSON property `project`
|
2214
|
+
# @return [String]
|
2215
|
+
attr_accessor :project
|
2216
|
+
|
2217
|
+
def initialize(**args)
|
2218
|
+
update!(**args)
|
2219
|
+
end
|
2220
|
+
|
2221
|
+
# Update properties of this object
|
2222
|
+
def update!(**args)
|
2223
|
+
@additional_attributes = args[:additional_attributes] if args.key?(:additional_attributes)
|
2224
|
+
@asset_type = args[:asset_type] if args.key?(:asset_type)
|
2225
|
+
@description = args[:description] if args.key?(:description)
|
2226
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
2227
|
+
@labels = args[:labels] if args.key?(:labels)
|
2228
|
+
@location = args[:location] if args.key?(:location)
|
2229
|
+
@name = args[:name] if args.key?(:name)
|
2230
|
+
@network_tags = args[:network_tags] if args.key?(:network_tags)
|
2231
|
+
@project = args[:project] if args.key?(:project)
|
2232
|
+
end
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
# Search all IAM policies response.
|
2236
|
+
class SearchAllIamPoliciesResponse
|
2237
|
+
include Google::Apis::Core::Hashable
|
2238
|
+
|
2239
|
+
# Set if there are more results than those appearing in this response; to get
|
2240
|
+
# the next set of results, call this method again, using this value as the
|
2241
|
+
# `page_token`.
|
2242
|
+
# Corresponds to the JSON property `nextPageToken`
|
2243
|
+
# @return [String]
|
2244
|
+
attr_accessor :next_page_token
|
2245
|
+
|
2246
|
+
# A list of IamPolicy that match the search query. Related information such
|
2247
|
+
# as the associated resource is returned along with the policy.
|
2248
|
+
# Corresponds to the JSON property `results`
|
2249
|
+
# @return [Array<Google::Apis::CloudassetV1::IamPolicySearchResult>]
|
2250
|
+
attr_accessor :results
|
2251
|
+
|
2252
|
+
def initialize(**args)
|
2253
|
+
update!(**args)
|
2254
|
+
end
|
2255
|
+
|
2256
|
+
# Update properties of this object
|
2257
|
+
def update!(**args)
|
2258
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2259
|
+
@results = args[:results] if args.key?(:results)
|
2260
|
+
end
|
2261
|
+
end
|
2262
|
+
|
2263
|
+
# Search all resources response.
|
2264
|
+
class SearchAllResourcesResponse
|
2265
|
+
include Google::Apis::Core::Hashable
|
2266
|
+
|
2267
|
+
# If there are more results than those appearing in this response, then
|
2268
|
+
# `next_page_token` is included. To get the next set of results, call this
|
2269
|
+
# method again using the value of `next_page_token` as `page_token`.
|
2270
|
+
# Corresponds to the JSON property `nextPageToken`
|
2271
|
+
# @return [String]
|
2272
|
+
attr_accessor :next_page_token
|
2273
|
+
|
2274
|
+
# A list of Resources that match the search query. It contains the resource
|
2275
|
+
# standard metadata information.
|
2276
|
+
# Corresponds to the JSON property `results`
|
2277
|
+
# @return [Array<Google::Apis::CloudassetV1::ResourceSearchResult>]
|
2278
|
+
attr_accessor :results
|
2279
|
+
|
2280
|
+
def initialize(**args)
|
2281
|
+
update!(**args)
|
2282
|
+
end
|
2283
|
+
|
2284
|
+
# Update properties of this object
|
2285
|
+
def update!(**args)
|
2286
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2287
|
+
@results = args[:results] if args.key?(:results)
|
2288
|
+
end
|
2289
|
+
end
|
2290
|
+
|
1923
2291
|
# The `Status` type defines a logical error model that is suitable for
|
1924
2292
|
# different programming environments, including REST APIs and RPC APIs. It is
|
1925
2293
|
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
@@ -1983,6 +2351,24 @@ module Google
|
|
1983
2351
|
attr_accessor :deleted
|
1984
2352
|
alias_method :deleted?, :deleted
|
1985
2353
|
|
2354
|
+
# An asset in Google Cloud. An asset can be any resource in the Google Cloud
|
2355
|
+
# [resource
|
2356
|
+
# hierarchy](https://cloud.google.com/resource-manager/docs/cloud-platform-
|
2357
|
+
# resource-hierarchy),
|
2358
|
+
# a resource outside the Google Cloud resource hierarchy (such as Google
|
2359
|
+
# Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy).
|
2360
|
+
# See [Supported asset
|
2361
|
+
# types](https://cloud.google.com/asset-inventory/docs/supported-asset-types)
|
2362
|
+
# for more information.
|
2363
|
+
# Corresponds to the JSON property `priorAsset`
|
2364
|
+
# @return [Google::Apis::CloudassetV1::Asset]
|
2365
|
+
attr_accessor :prior_asset
|
2366
|
+
|
2367
|
+
# State of prior_asset.
|
2368
|
+
# Corresponds to the JSON property `priorAssetState`
|
2369
|
+
# @return [String]
|
2370
|
+
attr_accessor :prior_asset_state
|
2371
|
+
|
1986
2372
|
# A time window specified by its `start_time` and `end_time`.
|
1987
2373
|
# Corresponds to the JSON property `window`
|
1988
2374
|
# @return [Google::Apis::CloudassetV1::TimeWindow]
|
@@ -1996,6 +2382,8 @@ module Google
|
|
1996
2382
|
def update!(**args)
|
1997
2383
|
@asset = args[:asset] if args.key?(:asset)
|
1998
2384
|
@deleted = args[:deleted] if args.key?(:deleted)
|
2385
|
+
@prior_asset = args[:prior_asset] if args.key?(:prior_asset)
|
2386
|
+
@prior_asset_state = args[:prior_asset_state] if args.key?(:prior_asset_state)
|
1999
2387
|
@window = args[:window] if args.key?(:window)
|
2000
2388
|
end
|
2001
2389
|
end
|