google-cloud-asset 0.2.1 → 0.3.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 +4 -4
- data/lib/google/cloud/asset.rb +4 -0
- data/lib/google/cloud/asset/v1.rb +8 -0
- data/lib/google/cloud/asset/v1/asset_service_client.rb +13 -3
- data/lib/google/cloud/asset/v1/doc/google/iam/v1/policy.rb +29 -10
- data/lib/google/cloud/asset/v1/doc/google/type/expr.rb +45 -0
- data/lib/google/cloud/asset/v1/helpers.rb +4 -2
- data/lib/google/cloud/asset/v1beta1.rb +8 -0
- data/lib/google/cloud/asset/v1beta1/asset_service_client.rb +13 -3
- data/lib/google/cloud/asset/v1beta1/doc/google/iam/v1/policy.rb +29 -10
- data/lib/google/cloud/asset/v1beta1/doc/google/type/expr.rb +45 -0
- data/lib/google/cloud/asset/v1beta1/helpers.rb +4 -2
- data/lib/google/cloud/asset/version.rb +22 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b94aefd00fb24b6c689ec9a582a97ff86b49faecbec1ce479f92ef6fc19d91c5
|
4
|
+
data.tar.gz: fba8f3d9d4551225ff2b358ea8c1b782afaf14d2ec1fb80cd5ca272616606ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc4425a4012ce03b823e66d9ebef3cc0fff14d9331591d591ff4de80fee0c12291bf728517532fea6188f209e57602319427489baefc1a14b85e5054bb6dfa2b
|
7
|
+
data.tar.gz: 06fe8ce03e73371b23b28a80dc6a8df8ab76275ee916cf8b30a7e8bbbe289b2b938ff3e7a5ebcf9218afd09d4670c691531e4bdf92d71ad6e1e90394fdc6e6ad
|
data/lib/google/cloud/asset.rb
CHANGED
@@ -119,6 +119,10 @@ module Google
|
|
119
119
|
# The default timeout, in seconds, for calls made through this client.
|
120
120
|
# @param metadata [Hash]
|
121
121
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
122
|
+
# @param service_address [String]
|
123
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
124
|
+
# @param service_port [Integer]
|
125
|
+
# Override for the service port, or `nil` to leave as the default.
|
122
126
|
# @param exception_transformer [Proc]
|
123
127
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
124
128
|
# custom error handling.
|
@@ -108,6 +108,10 @@ module Google
|
|
108
108
|
# The default timeout, in seconds, for calls made through this client.
|
109
109
|
# @param metadata [Hash]
|
110
110
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
111
|
+
# @param service_address [String]
|
112
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
113
|
+
# @param service_port [Integer]
|
114
|
+
# Override for the service port, or `nil` to leave as the default.
|
111
115
|
# @param exception_transformer [Proc]
|
112
116
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
113
117
|
# custom error handling.
|
@@ -117,6 +121,8 @@ module Google
|
|
117
121
|
client_config: nil,
|
118
122
|
timeout: nil,
|
119
123
|
metadata: nil,
|
124
|
+
service_address: nil,
|
125
|
+
service_port: nil,
|
120
126
|
exception_transformer: nil,
|
121
127
|
lib_name: nil,
|
122
128
|
lib_version: nil
|
@@ -128,6 +134,8 @@ module Google
|
|
128
134
|
metadata: metadata,
|
129
135
|
exception_transformer: exception_transformer,
|
130
136
|
lib_name: lib_name,
|
137
|
+
service_address: service_address,
|
138
|
+
service_port: service_port,
|
131
139
|
lib_version: lib_version
|
132
140
|
}.select { |_, v| v != nil }
|
133
141
|
Google::Cloud::Asset::V1::AssetServiceClient.new(**kwargs)
|
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
|
|
29
29
|
|
30
30
|
require "google/cloud/asset/v1/asset_service_pb"
|
31
31
|
require "google/cloud/asset/v1/credentials"
|
32
|
+
require "google/cloud/asset/version"
|
32
33
|
|
33
34
|
module Google
|
34
35
|
module Cloud
|
@@ -106,6 +107,10 @@ module Google
|
|
106
107
|
# The default timeout, in seconds, for calls made through this client.
|
107
108
|
# @param metadata [Hash]
|
108
109
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
110
|
+
# @param service_address [String]
|
111
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
112
|
+
# @param service_port [Integer]
|
113
|
+
# Override for the service port, or `nil` to leave as the default.
|
109
114
|
# @param exception_transformer [Proc]
|
110
115
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
111
116
|
# custom error handling.
|
@@ -115,6 +120,8 @@ module Google
|
|
115
120
|
client_config: {},
|
116
121
|
timeout: DEFAULT_TIMEOUT,
|
117
122
|
metadata: nil,
|
123
|
+
service_address: nil,
|
124
|
+
service_port: nil,
|
118
125
|
exception_transformer: nil,
|
119
126
|
lib_name: nil,
|
120
127
|
lib_version: ""
|
@@ -132,7 +139,10 @@ module Google
|
|
132
139
|
client_config: client_config,
|
133
140
|
timeout: timeout,
|
134
141
|
lib_name: lib_name,
|
142
|
+
service_address: service_address,
|
143
|
+
service_port: service_port,
|
135
144
|
lib_version: lib_version,
|
145
|
+
metadata: metadata,
|
136
146
|
)
|
137
147
|
|
138
148
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
@@ -151,7 +161,7 @@ module Google
|
|
151
161
|
updater_proc = credentials.updater_proc
|
152
162
|
end
|
153
163
|
|
154
|
-
package_version =
|
164
|
+
package_version = Google::Cloud::Asset::VERSION
|
155
165
|
|
156
166
|
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
157
167
|
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
@@ -177,8 +187,8 @@ module Google
|
|
177
187
|
end
|
178
188
|
|
179
189
|
# Allow overriding the service path/port in subclasses.
|
180
|
-
service_path = self.class::SERVICE_ADDRESS
|
181
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
190
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
191
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
182
192
|
interceptors = self.class::GRPC_INTERCEPTORS
|
183
193
|
@asset_service_stub = Google::Gax::Grpc.create_stub(
|
184
194
|
service_path,
|
@@ -20,12 +20,12 @@ module Google
|
|
20
20
|
# specify access control policies for Cloud Platform resources.
|
21
21
|
#
|
22
22
|
#
|
23
|
-
# A `Policy` consists of a list of `bindings`. A `
|
23
|
+
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
24
24
|
# `members` to a `role`, where the members can be user accounts, Google groups,
|
25
25
|
# Google domains, and service accounts. A `role` is a named list of permissions
|
26
26
|
# defined by IAM.
|
27
27
|
#
|
28
|
-
# **Example**
|
28
|
+
# **JSON Example**
|
29
29
|
#
|
30
30
|
# {
|
31
31
|
# "bindings": [
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# "user:mike@example.com",
|
36
36
|
# "group:admins@example.com",
|
37
37
|
# "domain:google.com",
|
38
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
38
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
39
39
|
# ]
|
40
40
|
# },
|
41
41
|
# {
|
@@ -45,15 +45,28 @@ module Google
|
|
45
45
|
# ]
|
46
46
|
# }
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
48
|
+
# **YAML Example**
|
49
|
+
#
|
50
|
+
# bindings:
|
51
|
+
# * members:
|
52
|
+
# * user:mike@example.com
|
53
|
+
# * group:admins@example.com
|
54
|
+
# * domain:google.com
|
55
|
+
# * serviceAccount:my-other-app@appspot.gserviceaccount.com
|
56
|
+
# role: roles/owner
|
57
|
+
# * members:
|
58
|
+
# * user:sean@example.com
|
59
|
+
# role: roles/viewer
|
60
|
+
#
|
61
|
+
#
|
62
|
+
# For a description of IAM and its features, see the
|
63
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
50
64
|
# @!attribute [rw] version
|
51
65
|
# @return [Integer]
|
52
|
-
#
|
66
|
+
# Deprecated.
|
53
67
|
# @!attribute [rw] bindings
|
54
68
|
# @return [Array<Google::Iam::V1::Binding>]
|
55
69
|
# Associates a list of `members` to a `role`.
|
56
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
57
70
|
# `bindings` with no members will result in an error.
|
58
71
|
# @!attribute [rw] etag
|
59
72
|
# @return [String]
|
@@ -74,7 +87,6 @@ module Google
|
|
74
87
|
# @return [String]
|
75
88
|
# Role that is assigned to `members`.
|
76
89
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
77
|
-
# Required
|
78
90
|
# @!attribute [rw] members
|
79
91
|
# @return [Array<String>]
|
80
92
|
# Specifies the identities requesting access for a Cloud Platform resource.
|
@@ -87,7 +99,7 @@ module Google
|
|
87
99
|
# who is authenticated with a Google account or a service account.
|
88
100
|
#
|
89
101
|
# * `user:{emailid}`: An email address that represents a specific Google
|
90
|
-
# account. For example, `alice@gmail.com`
|
102
|
+
# account. For example, `alice@gmail.com` .
|
91
103
|
#
|
92
104
|
#
|
93
105
|
# * `serviceAccount:{emailid}`: An email address that represents a service
|
@@ -96,8 +108,15 @@ module Google
|
|
96
108
|
# * `group:{emailid}`: An email address that represents a Google group.
|
97
109
|
# For example, `admins@example.com`.
|
98
110
|
#
|
99
|
-
#
|
111
|
+
#
|
112
|
+
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
100
113
|
# users of that domain. For example, `google.com` or `example.com`.
|
114
|
+
# @!attribute [rw] condition
|
115
|
+
# @return [Google::Type::Expr]
|
116
|
+
# The condition that is associated with this binding.
|
117
|
+
# NOTE: An unsatisfied condition will not allow user access via current
|
118
|
+
# binding. Different bindings, including their conditions, are examined
|
119
|
+
# independently.
|
101
120
|
class Binding; end
|
102
121
|
end
|
103
122
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Copyright 2019 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Type
|
18
|
+
# Represents an expression text. Example:
|
19
|
+
#
|
20
|
+
# title: "User account presence"
|
21
|
+
# description: "Determines whether the request has a user account"
|
22
|
+
# expression: "size(request.user) > 0"
|
23
|
+
# @!attribute [rw] expression
|
24
|
+
# @return [String]
|
25
|
+
# Textual representation of an expression in
|
26
|
+
# Common Expression Language syntax.
|
27
|
+
#
|
28
|
+
# The application context of the containing message determines which
|
29
|
+
# well-known feature set of CEL is supported.
|
30
|
+
# @!attribute [rw] title
|
31
|
+
# @return [String]
|
32
|
+
# An optional title for the expression, i.e. a short string describing
|
33
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
34
|
+
# expression.
|
35
|
+
# @!attribute [rw] description
|
36
|
+
# @return [String]
|
37
|
+
# An optional description of the expression. This is a longer text which
|
38
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
39
|
+
# @!attribute [rw] location
|
40
|
+
# @return [String]
|
41
|
+
# An optional string indicating the location of the expression for error
|
42
|
+
# reporting, e.g. a file name and a position in the file.
|
43
|
+
class Expr; end
|
44
|
+
end
|
45
|
+
end
|
@@ -11,11 +11,13 @@
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# # limitations under the License.
|
14
|
-
|
14
|
+
|
15
|
+
module Google
|
15
16
|
module Cloud
|
16
17
|
module Asset
|
17
18
|
module V1
|
18
19
|
class AssetServiceClient
|
20
|
+
|
19
21
|
# Alias for Google::Cloud::Asset::V1::AssetServiceClient.project_path.
|
20
22
|
# @param project [String]
|
21
23
|
# @return [String]
|
@@ -26,4 +28,4 @@
|
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
29
|
-
end
|
31
|
+
end
|
@@ -108,6 +108,10 @@ module Google
|
|
108
108
|
# The default timeout, in seconds, for calls made through this client.
|
109
109
|
# @param metadata [Hash]
|
110
110
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
111
|
+
# @param service_address [String]
|
112
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
113
|
+
# @param service_port [Integer]
|
114
|
+
# Override for the service port, or `nil` to leave as the default.
|
111
115
|
# @param exception_transformer [Proc]
|
112
116
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
113
117
|
# custom error handling.
|
@@ -117,6 +121,8 @@ module Google
|
|
117
121
|
client_config: nil,
|
118
122
|
timeout: nil,
|
119
123
|
metadata: nil,
|
124
|
+
service_address: nil,
|
125
|
+
service_port: nil,
|
120
126
|
exception_transformer: nil,
|
121
127
|
lib_name: nil,
|
122
128
|
lib_version: nil
|
@@ -128,6 +134,8 @@ module Google
|
|
128
134
|
metadata: metadata,
|
129
135
|
exception_transformer: exception_transformer,
|
130
136
|
lib_name: lib_name,
|
137
|
+
service_address: service_address,
|
138
|
+
service_port: service_port,
|
131
139
|
lib_version: lib_version
|
132
140
|
}.select { |_, v| v != nil }
|
133
141
|
Google::Cloud::Asset::V1beta1::AssetServiceClient.new(**kwargs)
|
@@ -29,6 +29,7 @@ require "google/longrunning/operations_client"
|
|
29
29
|
|
30
30
|
require "google/cloud/asset/v1beta1/asset_service_pb"
|
31
31
|
require "google/cloud/asset/v1beta1/credentials"
|
32
|
+
require "google/cloud/asset/version"
|
32
33
|
|
33
34
|
module Google
|
34
35
|
module Cloud
|
@@ -106,6 +107,10 @@ module Google
|
|
106
107
|
# The default timeout, in seconds, for calls made through this client.
|
107
108
|
# @param metadata [Hash]
|
108
109
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
110
|
+
# @param service_address [String]
|
111
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
112
|
+
# @param service_port [Integer]
|
113
|
+
# Override for the service port, or `nil` to leave as the default.
|
109
114
|
# @param exception_transformer [Proc]
|
110
115
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
111
116
|
# custom error handling.
|
@@ -115,6 +120,8 @@ module Google
|
|
115
120
|
client_config: {},
|
116
121
|
timeout: DEFAULT_TIMEOUT,
|
117
122
|
metadata: nil,
|
123
|
+
service_address: nil,
|
124
|
+
service_port: nil,
|
118
125
|
exception_transformer: nil,
|
119
126
|
lib_name: nil,
|
120
127
|
lib_version: ""
|
@@ -132,7 +139,10 @@ module Google
|
|
132
139
|
client_config: client_config,
|
133
140
|
timeout: timeout,
|
134
141
|
lib_name: lib_name,
|
142
|
+
service_address: service_address,
|
143
|
+
service_port: service_port,
|
135
144
|
lib_version: lib_version,
|
145
|
+
metadata: metadata,
|
136
146
|
)
|
137
147
|
|
138
148
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
@@ -151,7 +161,7 @@ module Google
|
|
151
161
|
updater_proc = credentials.updater_proc
|
152
162
|
end
|
153
163
|
|
154
|
-
package_version =
|
164
|
+
package_version = Google::Cloud::Asset::VERSION
|
155
165
|
|
156
166
|
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
157
167
|
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
@@ -177,8 +187,8 @@ module Google
|
|
177
187
|
end
|
178
188
|
|
179
189
|
# Allow overriding the service path/port in subclasses.
|
180
|
-
service_path = self.class::SERVICE_ADDRESS
|
181
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
190
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
191
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
182
192
|
interceptors = self.class::GRPC_INTERCEPTORS
|
183
193
|
@asset_service_stub = Google::Gax::Grpc.create_stub(
|
184
194
|
service_path,
|
@@ -20,12 +20,12 @@ module Google
|
|
20
20
|
# specify access control policies for Cloud Platform resources.
|
21
21
|
#
|
22
22
|
#
|
23
|
-
# A `Policy` consists of a list of `bindings`. A `
|
23
|
+
# A `Policy` consists of a list of `bindings`. A `binding` binds a list of
|
24
24
|
# `members` to a `role`, where the members can be user accounts, Google groups,
|
25
25
|
# Google domains, and service accounts. A `role` is a named list of permissions
|
26
26
|
# defined by IAM.
|
27
27
|
#
|
28
|
-
# **Example**
|
28
|
+
# **JSON Example**
|
29
29
|
#
|
30
30
|
# {
|
31
31
|
# "bindings": [
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# "user:mike@example.com",
|
36
36
|
# "group:admins@example.com",
|
37
37
|
# "domain:google.com",
|
38
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
38
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com"
|
39
39
|
# ]
|
40
40
|
# },
|
41
41
|
# {
|
@@ -45,15 +45,28 @@ module Google
|
|
45
45
|
# ]
|
46
46
|
# }
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
48
|
+
# **YAML Example**
|
49
|
+
#
|
50
|
+
# bindings:
|
51
|
+
# * members:
|
52
|
+
# * user:mike@example.com
|
53
|
+
# * group:admins@example.com
|
54
|
+
# * domain:google.com
|
55
|
+
# * serviceAccount:my-other-app@appspot.gserviceaccount.com
|
56
|
+
# role: roles/owner
|
57
|
+
# * members:
|
58
|
+
# * user:sean@example.com
|
59
|
+
# role: roles/viewer
|
60
|
+
#
|
61
|
+
#
|
62
|
+
# For a description of IAM and its features, see the
|
63
|
+
# [IAM developer's guide](https://cloud.google.com/iam/docs).
|
50
64
|
# @!attribute [rw] version
|
51
65
|
# @return [Integer]
|
52
|
-
#
|
66
|
+
# Deprecated.
|
53
67
|
# @!attribute [rw] bindings
|
54
68
|
# @return [Array<Google::Iam::V1::Binding>]
|
55
69
|
# Associates a list of `members` to a `role`.
|
56
|
-
# Multiple `bindings` must not be specified for the same `role`.
|
57
70
|
# `bindings` with no members will result in an error.
|
58
71
|
# @!attribute [rw] etag
|
59
72
|
# @return [String]
|
@@ -74,7 +87,6 @@ module Google
|
|
74
87
|
# @return [String]
|
75
88
|
# Role that is assigned to `members`.
|
76
89
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
77
|
-
# Required
|
78
90
|
# @!attribute [rw] members
|
79
91
|
# @return [Array<String>]
|
80
92
|
# Specifies the identities requesting access for a Cloud Platform resource.
|
@@ -87,7 +99,7 @@ module Google
|
|
87
99
|
# who is authenticated with a Google account or a service account.
|
88
100
|
#
|
89
101
|
# * `user:{emailid}`: An email address that represents a specific Google
|
90
|
-
# account. For example, `alice@gmail.com`
|
102
|
+
# account. For example, `alice@gmail.com` .
|
91
103
|
#
|
92
104
|
#
|
93
105
|
# * `serviceAccount:{emailid}`: An email address that represents a service
|
@@ -96,8 +108,15 @@ module Google
|
|
96
108
|
# * `group:{emailid}`: An email address that represents a Google group.
|
97
109
|
# For example, `admins@example.com`.
|
98
110
|
#
|
99
|
-
#
|
111
|
+
#
|
112
|
+
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
100
113
|
# users of that domain. For example, `google.com` or `example.com`.
|
114
|
+
# @!attribute [rw] condition
|
115
|
+
# @return [Google::Type::Expr]
|
116
|
+
# The condition that is associated with this binding.
|
117
|
+
# NOTE: An unsatisfied condition will not allow user access via current
|
118
|
+
# binding. Different bindings, including their conditions, are examined
|
119
|
+
# independently.
|
101
120
|
class Binding; end
|
102
121
|
end
|
103
122
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Copyright 2019 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Type
|
18
|
+
# Represents an expression text. Example:
|
19
|
+
#
|
20
|
+
# title: "User account presence"
|
21
|
+
# description: "Determines whether the request has a user account"
|
22
|
+
# expression: "size(request.user) > 0"
|
23
|
+
# @!attribute [rw] expression
|
24
|
+
# @return [String]
|
25
|
+
# Textual representation of an expression in
|
26
|
+
# Common Expression Language syntax.
|
27
|
+
#
|
28
|
+
# The application context of the containing message determines which
|
29
|
+
# well-known feature set of CEL is supported.
|
30
|
+
# @!attribute [rw] title
|
31
|
+
# @return [String]
|
32
|
+
# An optional title for the expression, i.e. a short string describing
|
33
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
34
|
+
# expression.
|
35
|
+
# @!attribute [rw] description
|
36
|
+
# @return [String]
|
37
|
+
# An optional description of the expression. This is a longer text which
|
38
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
39
|
+
# @!attribute [rw] location
|
40
|
+
# @return [String]
|
41
|
+
# An optional string indicating the location of the expression for error
|
42
|
+
# reporting, e.g. a file name and a position in the file.
|
43
|
+
class Expr; end
|
44
|
+
end
|
45
|
+
end
|
@@ -11,11 +11,13 @@
|
|
11
11
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
12
|
# See the License for the specific language governing permissions and
|
13
13
|
# # limitations under the License.
|
14
|
-
|
14
|
+
|
15
|
+
module Google
|
15
16
|
module Cloud
|
16
17
|
module Asset
|
17
18
|
module V1beta1
|
18
19
|
class AssetServiceClient
|
20
|
+
|
19
21
|
# Alias for Google::Cloud::Asset::V1beta1::AssetServiceClient.project_path.
|
20
22
|
# @param project [String]
|
21
23
|
# @return [String]
|
@@ -26,4 +28,4 @@
|
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
29
|
-
end
|
31
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Copyright 2019 Google LLC
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
|
16
|
+
module Google
|
17
|
+
module Cloud
|
18
|
+
module Asset
|
19
|
+
VERSION = "0.3.0".freeze
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2019-
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: grpc-google-iam-v1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- lib/google/cloud/asset/v1/doc/google/protobuf/struct.rb
|
135
135
|
- lib/google/cloud/asset/v1/doc/google/protobuf/timestamp.rb
|
136
136
|
- lib/google/cloud/asset/v1/doc/google/rpc/status.rb
|
137
|
+
- lib/google/cloud/asset/v1/doc/google/type/expr.rb
|
137
138
|
- lib/google/cloud/asset/v1/helpers.rb
|
138
139
|
- lib/google/cloud/asset/v1beta1.rb
|
139
140
|
- lib/google/cloud/asset/v1beta1/asset_service_client.rb
|
@@ -150,7 +151,9 @@ files:
|
|
150
151
|
- lib/google/cloud/asset/v1beta1/doc/google/protobuf/struct.rb
|
151
152
|
- lib/google/cloud/asset/v1beta1/doc/google/protobuf/timestamp.rb
|
152
153
|
- lib/google/cloud/asset/v1beta1/doc/google/rpc/status.rb
|
154
|
+
- lib/google/cloud/asset/v1beta1/doc/google/type/expr.rb
|
153
155
|
- lib/google/cloud/asset/v1beta1/helpers.rb
|
156
|
+
- lib/google/cloud/asset/version.rb
|
154
157
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-asset
|
155
158
|
licenses:
|
156
159
|
- Apache-2.0
|