google-cloud-asset-v1beta1 0.1.3 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +5 -1
- data/lib/google/cloud/asset/v1beta1.rb +1 -1
- data/lib/google/cloud/asset/v1beta1/asset_service.rb +1 -1
- data/lib/google/cloud/asset/v1beta1/asset_service/client.rb +87 -82
- data/lib/google/cloud/asset/v1beta1/asset_service/credentials.rb +1 -1
- data/lib/google/cloud/asset/v1beta1/asset_service/operations.rb +109 -103
- data/lib/google/cloud/asset/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/asset/v1beta1/asset_service.rb +28 -28
- data/proto_docs/google/cloud/asset/v1beta1/assets.rb +23 -23
- data/proto_docs/google/cloud/orgpolicy/v1/orgpolicy.rb +21 -21
- data/proto_docs/google/iam/v1/policy.rb +26 -26
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/expr.rb +6 -6
- metadata +33 -6
- data/lib/google/cloud/common_resources_pb.rb +0 -15
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
# - pattern: "shelves/{shelf}"
|
129
129
|
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
130
130
|
# @!attribute [rw] type
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# The resource type. It must be in the format of
|
133
133
|
# \\{service_name}/\\{resource_type_kind}. The `resource_type_kind` must be
|
134
134
|
# singular and must not include version numbers.
|
@@ -140,7 +140,7 @@ module Google
|
|
140
140
|
# should use PascalCase (UpperCamelCase). The maximum number of
|
141
141
|
# characters allowed for the `resource_type_kind` is 100.
|
142
142
|
# @!attribute [rw] pattern
|
143
|
-
# @return [Array
|
143
|
+
# @return [::Array<::String>]
|
144
144
|
# Optional. The relative resource name pattern associated with this resource
|
145
145
|
# type. The DNS prefix of the full resource name shouldn't be specified here.
|
146
146
|
#
|
@@ -161,11 +161,11 @@ module Google
|
|
161
161
|
# the same component name (e.g. "project") refers to IDs of the same
|
162
162
|
# type of resource.
|
163
163
|
# @!attribute [rw] name_field
|
164
|
-
# @return [String]
|
164
|
+
# @return [::String]
|
165
165
|
# Optional. The field on the resource that designates the resource name
|
166
166
|
# field. If omitted, this is assumed to be "name".
|
167
167
|
# @!attribute [rw] history
|
168
|
-
# @return [Google::Api::ResourceDescriptor::History]
|
168
|
+
# @return [::Google::Api::ResourceDescriptor::History]
|
169
169
|
# Optional. The historical or future-looking state of the resource pattern.
|
170
170
|
#
|
171
171
|
# Example:
|
@@ -182,19 +182,19 @@ module Google
|
|
182
182
|
# };
|
183
183
|
# }
|
184
184
|
# @!attribute [rw] plural
|
185
|
-
# @return [String]
|
185
|
+
# @return [::String]
|
186
186
|
# The plural name used in the resource name, such as 'projects' for
|
187
187
|
# the name of 'projects/\\{project}'. It is the same concept of the `plural`
|
188
188
|
# field in k8s CRD spec
|
189
189
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
190
190
|
# @!attribute [rw] singular
|
191
|
-
# @return [String]
|
191
|
+
# @return [::String]
|
192
192
|
# The same concept of the `singular` field in k8s CRD spec
|
193
193
|
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
194
194
|
# Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
195
195
|
class ResourceDescriptor
|
196
|
-
include Google::Protobuf::MessageExts
|
197
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
196
|
+
include ::Google::Protobuf::MessageExts
|
197
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
198
198
|
|
199
199
|
# A description of the historical or future-looking state of the
|
200
200
|
# resource pattern.
|
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
# Defines a proto annotation that describes a string field that refers to
|
217
217
|
# an API resource.
|
218
218
|
# @!attribute [rw] type
|
219
|
-
# @return [String]
|
219
|
+
# @return [::String]
|
220
220
|
# The resource type that the annotated field references.
|
221
221
|
#
|
222
222
|
# Example:
|
@@ -227,7 +227,7 @@ module Google
|
|
227
227
|
# }];
|
228
228
|
# }
|
229
229
|
# @!attribute [rw] child_type
|
230
|
-
# @return [String]
|
230
|
+
# @return [::String]
|
231
231
|
# The resource type of a child collection that the annotated field
|
232
232
|
# references. This is useful for annotating the `parent` field that
|
233
233
|
# doesn't have a fixed resource type.
|
@@ -240,8 +240,8 @@ module Google
|
|
240
240
|
# };
|
241
241
|
# }
|
242
242
|
class ResourceReference
|
243
|
-
include Google::Protobuf::MessageExts
|
244
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
243
|
+
include ::Google::Protobuf::MessageExts
|
244
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
245
|
end
|
246
246
|
end
|
247
247
|
end
|
@@ -23,63 +23,63 @@ module Google
|
|
23
23
|
module V1beta1
|
24
24
|
# Export asset request.
|
25
25
|
# @!attribute [rw] parent
|
26
|
-
# @return [String]
|
26
|
+
# @return [::String]
|
27
27
|
# Required. The relative name of the root asset. This can only be an
|
28
28
|
# organization number (such as "organizations/123"), a project ID (such as
|
29
29
|
# "projects/my-project-id"), a project number (such as "projects/12345"), or
|
30
30
|
# a folder number (such as "folders/123").
|
31
31
|
# @!attribute [rw] read_time
|
32
|
-
# @return [Google::Protobuf::Timestamp]
|
32
|
+
# @return [::Google::Protobuf::Timestamp]
|
33
33
|
# Timestamp to take an asset snapshot. This can only be set to a timestamp
|
34
34
|
# between 2018-10-02 UTC (inclusive) and the current time. If not specified,
|
35
35
|
# the current time will be used. Due to delays in resource data collection
|
36
36
|
# and indexing, there is a volatile window during which running the same
|
37
37
|
# query may get different results.
|
38
38
|
# @!attribute [rw] asset_types
|
39
|
-
# @return [Array
|
39
|
+
# @return [::Array<::String>]
|
40
40
|
# A list of asset types of which to take a snapshot for. For example:
|
41
41
|
# "google.compute.Disk". If specified, only matching assets will be returned.
|
42
42
|
# See [Introduction to Cloud Asset
|
43
43
|
# Inventory](https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview)
|
44
44
|
# for all supported asset types.
|
45
45
|
# @!attribute [rw] content_type
|
46
|
-
# @return [Google::Cloud::Asset::V1beta1::ContentType]
|
46
|
+
# @return [::Google::Cloud::Asset::V1beta1::ContentType]
|
47
47
|
# Asset content type. If not specified, no content but the asset name will be
|
48
48
|
# returned.
|
49
49
|
# @!attribute [rw] output_config
|
50
|
-
# @return [Google::Cloud::Asset::V1beta1::OutputConfig]
|
50
|
+
# @return [::Google::Cloud::Asset::V1beta1::OutputConfig]
|
51
51
|
# Required. Output configuration indicating where the results will be output
|
52
52
|
# to. All results will be in newline delimited JSON format.
|
53
53
|
class ExportAssetsRequest
|
54
|
-
include Google::Protobuf::MessageExts
|
55
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
56
|
end
|
57
57
|
|
58
58
|
# The export asset response. This message is returned by the
|
59
59
|
# google.longrunning.Operations.GetOperation
|
60
60
|
# method in the returned
|
61
|
-
# {Google::Longrunning::Operation#response google.longrunning.Operation.response}
|
61
|
+
# {::Google::Longrunning::Operation#response google.longrunning.Operation.response}
|
62
62
|
# field.
|
63
63
|
# @!attribute [rw] read_time
|
64
|
-
# @return [Google::Protobuf::Timestamp]
|
64
|
+
# @return [::Google::Protobuf::Timestamp]
|
65
65
|
# Time the snapshot was taken.
|
66
66
|
# @!attribute [rw] output_config
|
67
|
-
# @return [Google::Cloud::Asset::V1beta1::OutputConfig]
|
67
|
+
# @return [::Google::Cloud::Asset::V1beta1::OutputConfig]
|
68
68
|
# Output configuration indicating where the results were output to.
|
69
69
|
# All results are in JSON format.
|
70
70
|
class ExportAssetsResponse
|
71
|
-
include Google::Protobuf::MessageExts
|
72
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
73
|
end
|
74
74
|
|
75
75
|
# Batch get assets history request.
|
76
76
|
# @!attribute [rw] parent
|
77
|
-
# @return [String]
|
77
|
+
# @return [::String]
|
78
78
|
# Required. The relative name of the root asset. It can only be an
|
79
79
|
# organization number (such as "organizations/123"), a project ID (such as
|
80
80
|
# "projects/my-project-id")", or a project number (such as "projects/12345").
|
81
81
|
# @!attribute [rw] asset_names
|
82
|
-
# @return [Array
|
82
|
+
# @return [::Array<::String>]
|
83
83
|
# A list of the full names of the assets. For example:
|
84
84
|
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
|
85
85
|
# See [Resource
|
@@ -89,10 +89,10 @@ module Google
|
|
89
89
|
# The request becomes a no-op if the asset name list is empty, and the max
|
90
90
|
# size of the asset name list is 100 in one request.
|
91
91
|
# @!attribute [rw] content_type
|
92
|
-
# @return [Google::Cloud::Asset::V1beta1::ContentType]
|
92
|
+
# @return [::Google::Cloud::Asset::V1beta1::ContentType]
|
93
93
|
# Optional. The content type.
|
94
94
|
# @!attribute [rw] read_time_window
|
95
|
-
# @return [Google::Cloud::Asset::V1beta1::TimeWindow]
|
95
|
+
# @return [::Google::Cloud::Asset::V1beta1::TimeWindow]
|
96
96
|
# Optional. The time window for the asset history. Both start_time and
|
97
97
|
# end_time are optional and if set, it must be after 2018-10-02 UTC. If
|
98
98
|
# end_time is not set, it is default to current timestamp. If start_time is
|
@@ -100,38 +100,38 @@ module Google
|
|
100
100
|
# returned results contain all temporal assets whose time window overlap with
|
101
101
|
# read_time_window.
|
102
102
|
class BatchGetAssetsHistoryRequest
|
103
|
-
include Google::Protobuf::MessageExts
|
104
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
include ::Google::Protobuf::MessageExts
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
105
105
|
end
|
106
106
|
|
107
107
|
# Batch get assets history response.
|
108
108
|
# @!attribute [rw] assets
|
109
|
-
# @return [Array
|
109
|
+
# @return [::Array<::Google::Cloud::Asset::V1beta1::TemporalAsset>]
|
110
110
|
# A list of assets with valid time windows.
|
111
111
|
class BatchGetAssetsHistoryResponse
|
112
|
-
include Google::Protobuf::MessageExts
|
113
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
112
|
+
include ::Google::Protobuf::MessageExts
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
114
|
end
|
115
115
|
|
116
116
|
# Output configuration for export assets destination.
|
117
117
|
# @!attribute [rw] gcs_destination
|
118
|
-
# @return [Google::Cloud::Asset::V1beta1::GcsDestination]
|
118
|
+
# @return [::Google::Cloud::Asset::V1beta1::GcsDestination]
|
119
119
|
# Destination on Cloud Storage.
|
120
120
|
class OutputConfig
|
121
|
-
include Google::Protobuf::MessageExts
|
122
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
121
|
+
include ::Google::Protobuf::MessageExts
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
123
123
|
end
|
124
124
|
|
125
125
|
# A Cloud Storage location.
|
126
126
|
# @!attribute [rw] uri
|
127
|
-
# @return [String]
|
127
|
+
# @return [::String]
|
128
128
|
# The uri of the Cloud Storage object. It's the same uri that is used by
|
129
129
|
# gsutil. For example: "gs://bucket_name/object_name". See [Viewing and
|
130
130
|
# Editing Object
|
131
131
|
# Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
|
132
132
|
# for more information.
|
133
133
|
# @!attribute [rw] uri_prefix
|
134
|
-
# @return [String]
|
134
|
+
# @return [::String]
|
135
135
|
# The uri prefix of all generated Cloud Storage objects. For example:
|
136
136
|
# "gs://bucket_name/object_name_prefix". Each object uri is in format:
|
137
137
|
# "gs://bucket_name/object_name_prefix/<asset type>/<shard number> and only
|
@@ -141,8 +141,8 @@ module Google
|
|
141
141
|
# An INVALID_ARGUMENT error will be returned if file with the same name
|
142
142
|
# "gs://bucket_name/object_name_prefix" already exists.
|
143
143
|
class GcsDestination
|
144
|
-
include Google::Protobuf::MessageExts
|
145
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
146
|
end
|
147
147
|
|
148
148
|
# Asset content type.
|
@@ -24,81 +24,81 @@ module Google
|
|
24
24
|
# Temporal asset. In addition to the asset, the temporal asset includes the
|
25
25
|
# status of the asset and valid from and to time of it.
|
26
26
|
# @!attribute [rw] window
|
27
|
-
# @return [Google::Cloud::Asset::V1beta1::TimeWindow]
|
27
|
+
# @return [::Google::Cloud::Asset::V1beta1::TimeWindow]
|
28
28
|
# The time window when the asset data and state was observed.
|
29
29
|
# @!attribute [rw] deleted
|
30
|
-
# @return [Boolean]
|
30
|
+
# @return [::Boolean]
|
31
31
|
# If the asset is deleted or not.
|
32
32
|
# @!attribute [rw] asset
|
33
|
-
# @return [Google::Cloud::Asset::V1beta1::Asset]
|
33
|
+
# @return [::Google::Cloud::Asset::V1beta1::Asset]
|
34
34
|
# Asset.
|
35
35
|
class TemporalAsset
|
36
|
-
include Google::Protobuf::MessageExts
|
37
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
38
|
end
|
39
39
|
|
40
40
|
# A time window of (start_time, end_time].
|
41
41
|
# @!attribute [rw] start_time
|
42
|
-
# @return [Google::Protobuf::Timestamp]
|
42
|
+
# @return [::Google::Protobuf::Timestamp]
|
43
43
|
# Start time of the time window (exclusive).
|
44
44
|
# @!attribute [rw] end_time
|
45
|
-
# @return [Google::Protobuf::Timestamp]
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
46
46
|
# End time of the time window (inclusive).
|
47
47
|
# Current timestamp if not specified.
|
48
48
|
class TimeWindow
|
49
|
-
include Google::Protobuf::MessageExts
|
50
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
49
|
+
include ::Google::Protobuf::MessageExts
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
51
51
|
end
|
52
52
|
|
53
53
|
# Cloud asset. This includes all Google Cloud Platform resources,
|
54
54
|
# Cloud IAM policies, and other non-GCP assets.
|
55
55
|
# @!attribute [rw] name
|
56
|
-
# @return [String]
|
56
|
+
# @return [::String]
|
57
57
|
# The full name of the asset. For example:
|
58
58
|
# `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
|
59
59
|
# See [Resource
|
60
60
|
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
61
61
|
# for more information.
|
62
62
|
# @!attribute [rw] asset_type
|
63
|
-
# @return [String]
|
63
|
+
# @return [::String]
|
64
64
|
# Type of the asset. Example: "google.compute.Disk".
|
65
65
|
# @!attribute [rw] resource
|
66
|
-
# @return [Google::Cloud::Asset::V1beta1::Resource]
|
66
|
+
# @return [::Google::Cloud::Asset::V1beta1::Resource]
|
67
67
|
# Representation of the resource.
|
68
68
|
# @!attribute [rw] iam_policy
|
69
|
-
# @return [Google::Iam::V1::Policy]
|
69
|
+
# @return [::Google::Iam::V1::Policy]
|
70
70
|
# Representation of the actual Cloud IAM policy set on a cloud resource. For
|
71
71
|
# each resource, there must be at most one Cloud IAM policy set on it.
|
72
72
|
class Asset
|
73
|
-
include Google::Protobuf::MessageExts
|
74
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
75
|
end
|
76
76
|
|
77
77
|
# Representation of a cloud resource.
|
78
78
|
# @!attribute [rw] version
|
79
|
-
# @return [String]
|
79
|
+
# @return [::String]
|
80
80
|
# The API version. Example: "v1".
|
81
81
|
# @!attribute [rw] discovery_document_uri
|
82
|
-
# @return [String]
|
82
|
+
# @return [::String]
|
83
83
|
# The URL of the discovery document containing the resource's JSON schema.
|
84
84
|
# For example:
|
85
85
|
# `"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"`.
|
86
86
|
# It will be left unspecified for resources without a discovery-based API,
|
87
87
|
# such as Cloud Bigtable.
|
88
88
|
# @!attribute [rw] discovery_name
|
89
|
-
# @return [String]
|
89
|
+
# @return [::String]
|
90
90
|
# The JSON schema name listed in the discovery document.
|
91
91
|
# Example: "Project". It will be left unspecified for resources (such as
|
92
92
|
# Cloud Bigtable) without a discovery-based API.
|
93
93
|
# @!attribute [rw] resource_url
|
94
|
-
# @return [String]
|
94
|
+
# @return [::String]
|
95
95
|
# The REST URL for accessing the resource. An HTTP GET operation using this
|
96
96
|
# URL returns the resource itself.
|
97
97
|
# Example:
|
98
98
|
# `https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123`.
|
99
99
|
# It will be left unspecified for resources without a REST API.
|
100
100
|
# @!attribute [rw] parent
|
101
|
-
# @return [String]
|
101
|
+
# @return [::String]
|
102
102
|
# The full name of the immediate parent of this resource. See
|
103
103
|
# [Resource
|
104
104
|
# Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
|
@@ -111,12 +111,12 @@ module Google
|
|
111
111
|
#
|
112
112
|
# For third-party assets, it is up to the users to define.
|
113
113
|
# @!attribute [rw] data
|
114
|
-
# @return [Google::Protobuf::Struct]
|
114
|
+
# @return [::Google::Protobuf::Struct]
|
115
115
|
# The content of the resource, in which some sensitive fields are scrubbed
|
116
116
|
# away and may not be present.
|
117
117
|
class Resource
|
118
|
-
include Google::Protobuf::MessageExts
|
119
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
118
|
+
include ::Google::Protobuf::MessageExts
|
119
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
120
120
|
end
|
121
121
|
end
|
122
122
|
end
|
@@ -24,16 +24,16 @@ module Google
|
|
24
24
|
# Defines a Cloud Organization `Policy` which is used to specify `Constraints`
|
25
25
|
# for configurations of Cloud Platform resources.
|
26
26
|
# @!attribute [rw] version
|
27
|
-
# @return [Integer]
|
27
|
+
# @return [::Integer]
|
28
28
|
# Version of the `Policy`. Default version is 0;
|
29
29
|
# @!attribute [rw] constraint
|
30
|
-
# @return [String]
|
30
|
+
# @return [::String]
|
31
31
|
# The name of the `Constraint` the `Policy` is configuring, for example,
|
32
32
|
# `constraints/serviceuser.services`.
|
33
33
|
#
|
34
34
|
# Immutable after creation.
|
35
35
|
# @!attribute [rw] etag
|
36
|
-
# @return [String]
|
36
|
+
# @return [::String]
|
37
37
|
# An opaque tag indicating the current version of the `Policy`, used for
|
38
38
|
# concurrency control.
|
39
39
|
#
|
@@ -50,24 +50,24 @@ module Google
|
|
50
50
|
# `SetOrgPolicy` request will result in an unconditional write of the
|
51
51
|
# `Policy`.
|
52
52
|
# @!attribute [rw] update_time
|
53
|
-
# @return [Google::Protobuf::Timestamp]
|
53
|
+
# @return [::Google::Protobuf::Timestamp]
|
54
54
|
# The time stamp the `Policy` was previously updated. This is set by the
|
55
55
|
# server, not specified by the caller, and represents the last time a call to
|
56
56
|
# `SetOrgPolicy` was made for that `Policy`. Any value set by the client will
|
57
57
|
# be ignored.
|
58
58
|
# @!attribute [rw] list_policy
|
59
|
-
# @return [Google::Cloud::OrgPolicy::V1::Policy::ListPolicy]
|
59
|
+
# @return [::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy]
|
60
60
|
# List of values either allowed or disallowed.
|
61
61
|
# @!attribute [rw] boolean_policy
|
62
|
-
# @return [Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy]
|
62
|
+
# @return [::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy]
|
63
63
|
# For boolean `Constraints`, whether to enforce the `Constraint` or not.
|
64
64
|
# @!attribute [rw] restore_default
|
65
|
-
# @return [Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault]
|
65
|
+
# @return [::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault]
|
66
66
|
# Restores the default behavior of the constraint; independent of
|
67
67
|
# `Constraint` type.
|
68
68
|
class Policy
|
69
|
-
include Google::Protobuf::MessageExts
|
70
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
include ::Google::Protobuf::MessageExts
|
70
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
71
71
|
|
72
72
|
# Used in `policy_type` to specify how `list_policy` behaves at this
|
73
73
|
# resource.
|
@@ -91,24 +91,24 @@ module Google
|
|
91
91
|
# values. If `all_values` is set to either `ALLOW` or `DENY`,
|
92
92
|
# `allowed_values` and `denied_values` must be unset.
|
93
93
|
# @!attribute [rw] allowed_values
|
94
|
-
# @return [Array
|
94
|
+
# @return [::Array<::String>]
|
95
95
|
# List of values allowed at this resource. Can only be set if `all_values`
|
96
96
|
# is set to `ALL_VALUES_UNSPECIFIED`.
|
97
97
|
# @!attribute [rw] denied_values
|
98
|
-
# @return [Array
|
98
|
+
# @return [::Array<::String>]
|
99
99
|
# List of values denied at this resource. Can only be set if `all_values`
|
100
100
|
# is set to `ALL_VALUES_UNSPECIFIED`.
|
101
101
|
# @!attribute [rw] all_values
|
102
|
-
# @return [Google::Cloud::OrgPolicy::V1::Policy::ListPolicy::AllValues]
|
102
|
+
# @return [::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy::AllValues]
|
103
103
|
# The policy all_values state.
|
104
104
|
# @!attribute [rw] suggested_value
|
105
|
-
# @return [String]
|
105
|
+
# @return [::String]
|
106
106
|
# Optional. The Google Cloud Console will try to default to a configuration
|
107
107
|
# that matches the value specified in this `Policy`. If `suggested_value`
|
108
108
|
# is not set, it will inherit the value specified higher in the hierarchy,
|
109
109
|
# unless `inherit_from_parent` is `false`.
|
110
110
|
# @!attribute [rw] inherit_from_parent
|
111
|
-
# @return [Boolean]
|
111
|
+
# @return [::Boolean]
|
112
112
|
# Determines the inheritance behavior for this `Policy`.
|
113
113
|
#
|
114
114
|
# By default, a `ListPolicy` set at a resource supercedes any `Policy` set
|
@@ -207,8 +207,8 @@ module Google
|
|
207
207
|
# The accepted values at `projects/bar` are `organizations/O1`,
|
208
208
|
# `folders/F1`, `projects/P1`.
|
209
209
|
class ListPolicy
|
210
|
-
include Google::Protobuf::MessageExts
|
211
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
210
|
+
include ::Google::Protobuf::MessageExts
|
211
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
212
212
|
|
213
213
|
# This enum can be used to set `Policies` that apply to all possible
|
214
214
|
# configuration values rather than specific values in `allowed_values` or
|
@@ -234,7 +234,7 @@ module Google
|
|
234
234
|
# Used in `policy_type` to specify how `boolean_policy` will behave at this
|
235
235
|
# resource.
|
236
236
|
# @!attribute [rw] enforced
|
237
|
-
# @return [Boolean]
|
237
|
+
# @return [::Boolean]
|
238
238
|
# If `true`, then the `Policy` is enforced. If `false`, then any
|
239
239
|
# configuration is acceptable.
|
240
240
|
#
|
@@ -280,8 +280,8 @@ module Google
|
|
280
280
|
# The constraint at `projects/bar` is not enforced, because
|
281
281
|
# `constraint_default` for the `Constraint` is `ALLOW`.
|
282
282
|
class BooleanPolicy
|
283
|
-
include Google::Protobuf::MessageExts
|
284
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
283
|
+
include ::Google::Protobuf::MessageExts
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
285
285
|
end
|
286
286
|
|
287
287
|
# Ignores policies set above this resource and restores the
|
@@ -297,8 +297,8 @@ module Google
|
|
297
297
|
# enforcement of the `Constraint` for only those projects, allowing those
|
298
298
|
# projects to have all services activated.
|
299
299
|
class RestoreDefault
|
300
|
-
include Google::Protobuf::MessageExts
|
301
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
300
|
+
include ::Google::Protobuf::MessageExts
|
301
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
302
302
|
end
|
303
303
|
end
|
304
304
|
end
|