google-cloud-asset-v1 0.23.0 → 0.25.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/README.md +2 -2
- data/lib/google/cloud/asset/v1/asset_service/client.rb +58 -57
- data/lib/google/cloud/asset/v1/asset_service/operations.rb +14 -16
- data/lib/google/cloud/asset/v1/asset_service/rest/client.rb +2716 -0
- data/lib/google/cloud/asset/v1/asset_service/rest/operations.rb +793 -0
- data/lib/google/cloud/asset/v1/asset_service/rest/service_stub.rb +1412 -0
- data/lib/google/cloud/asset/v1/asset_service/rest.rb +53 -0
- data/lib/google/cloud/asset/v1/asset_service.rb +6 -0
- data/lib/google/cloud/asset/v1/rest.rb +37 -0
- data/lib/google/cloud/asset/v1/version.rb +1 -1
- data/lib/google/cloud/asset/v1.rb +5 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/asset/v1/asset_service.rb +15 -15
- data/proto_docs/google/cloud/asset/v1/assets.rb +1 -1
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +12 -7
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/asset/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/asset/v1/asset_service/credentials"
|
26
|
+
require "google/cloud/asset/v1/asset_service/paths"
|
27
|
+
require "google/cloud/asset/v1/asset_service/rest/operations"
|
28
|
+
require "google/cloud/asset/v1/asset_service/rest/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module Asset
|
33
|
+
module V1
|
34
|
+
##
|
35
|
+
# Asset service definition.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/asset/v1/asset_service/rest"
|
40
|
+
# client = ::Google::Cloud::Asset::V1::AssetService::Rest::Client.new
|
41
|
+
#
|
42
|
+
module AssetService
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/asset/v1/asset_service/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/asset/v1/asset_service/credentials"
|
|
26
26
|
require "google/cloud/asset/v1/asset_service/paths"
|
27
27
|
require "google/cloud/asset/v1/asset_service/operations"
|
28
28
|
require "google/cloud/asset/v1/asset_service/client"
|
29
|
+
require "google/cloud/asset/v1/asset_service/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -39,6 +40,11 @@ module Google
|
|
39
40
|
# require "google/cloud/asset/v1/asset_service"
|
40
41
|
# client = ::Google::Cloud::Asset::V1::AssetService::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/asset/v1/asset_service/rest"
|
46
|
+
# client = ::Google::Cloud::Asset::V1::AssetService::Rest::Client.new
|
47
|
+
#
|
42
48
|
module AssetService
|
43
49
|
end
|
44
50
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/asset/v1/asset_service/rest"
|
20
|
+
require "google/cloud/asset/v1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Asset
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/asset/v1/rest"
|
31
|
+
# client = ::Google::Cloud::Asset::V1::AssetService::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V1
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -30,6 +30,11 @@ module Google
|
|
30
30
|
# require "google/cloud/asset/v1"
|
31
31
|
# client = ::Google::Cloud::Asset::V1::AssetService::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/asset/v1"
|
36
|
+
# client = ::Google::Cloud::Asset::V1::AssetService::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1
|
34
39
|
end
|
35
40
|
end
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -270,7 +270,7 @@ module Google
|
|
270
270
|
# Required. The name of the project/folder/organization where this feed
|
271
271
|
# should be created in. It can only be an organization number (such as
|
272
272
|
# "organizations/123"), a folder number (such as "folders/123"), a project ID
|
273
|
-
# (such as "projects/my-project-id")
|
273
|
+
# (such as "projects/my-project-id"), or a project number (such as
|
274
274
|
# "projects/12345").
|
275
275
|
# @!attribute [rw] feed_id
|
276
276
|
# @return [::String]
|
@@ -1388,8 +1388,8 @@ module Google
|
|
1388
1388
|
# Required. The name of the project/folder/organization where this
|
1389
1389
|
# saved_query should be created in. It can only be an organization number
|
1390
1390
|
# (such as "organizations/123"), a folder number (such as "folders/123"), a
|
1391
|
-
# project ID (such as "projects/my-project-id")
|
1392
|
-
#
|
1391
|
+
# project ID (such as "projects/my-project-id"), or a project number (such as
|
1392
|
+
# "projects/12345").
|
1393
1393
|
# @!attribute [rw] saved_query
|
1394
1394
|
# @return [::Google::Cloud::Asset::V1::SavedQuery]
|
1395
1395
|
# Required. The saved_query details. The `name` field must be empty as it
|
@@ -1442,8 +1442,8 @@ module Google
|
|
1442
1442
|
# @return [::Integer]
|
1443
1443
|
# Optional. The maximum number of saved queries to return per page. The
|
1444
1444
|
# service may return fewer than this value. If unspecified, at most 50 will
|
1445
|
-
# be returned.
|
1446
|
-
#
|
1445
|
+
# be returned. The maximum value is 1000; values above 1000 will be coerced
|
1446
|
+
# to 1000.
|
1447
1447
|
# @!attribute [rw] page_token
|
1448
1448
|
# @return [::String]
|
1449
1449
|
# Optional. A page token, received from a previous `ListSavedQueries` call.
|
@@ -2356,19 +2356,19 @@ module Google
|
|
2356
2356
|
# {::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse::GovernedResource#full_resource_name AnalyzeOrgPolicyGovernedAssetsResponse.GovernedResource.full_resource_name}.
|
2357
2357
|
# @!attribute [rw] project
|
2358
2358
|
# @return [::String]
|
2359
|
-
# The project that this resource belongs to, in the
|
2359
|
+
# The project that this resource belongs to, in the format of
|
2360
2360
|
# projects/\\{PROJECT_NUMBER}. This field is available when the resource
|
2361
2361
|
# belongs to a project.
|
2362
2362
|
# @!attribute [rw] folders
|
2363
2363
|
# @return [::Array<::String>]
|
2364
|
-
# The folder(s) that this resource belongs to, in the
|
2364
|
+
# The folder(s) that this resource belongs to, in the format of
|
2365
2365
|
# folders/\\{FOLDER_NUMBER}. This field is available when the resource
|
2366
|
-
# belongs(directly or cascadingly) to one or more folders.
|
2366
|
+
# belongs (directly or cascadingly) to one or more folders.
|
2367
2367
|
# @!attribute [rw] organization
|
2368
2368
|
# @return [::String]
|
2369
|
-
# The organization that this resource belongs to, in the
|
2369
|
+
# The organization that this resource belongs to, in the format of
|
2370
2370
|
# organizations/\\{ORGANIZATION_NUMBER}. This field is available when the
|
2371
|
-
# resource belongs(directly or cascadingly) to an organization.
|
2371
|
+
# resource belongs (directly or cascadingly) to an organization.
|
2372
2372
|
class GovernedResource
|
2373
2373
|
include ::Google::Protobuf::MessageExts
|
2374
2374
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -2389,19 +2389,19 @@ module Google
|
|
2389
2389
|
# The IAM policy directly set on the given resource.
|
2390
2390
|
# @!attribute [rw] project
|
2391
2391
|
# @return [::String]
|
2392
|
-
# The project that this IAM policy belongs to, in the
|
2392
|
+
# The project that this IAM policy belongs to, in the format of
|
2393
2393
|
# projects/\\{PROJECT_NUMBER}. This field is available when the IAM policy
|
2394
2394
|
# belongs to a project.
|
2395
2395
|
# @!attribute [rw] folders
|
2396
2396
|
# @return [::Array<::String>]
|
2397
|
-
# The folder(s) that this IAM policy belongs to, in the
|
2397
|
+
# The folder(s) that this IAM policy belongs to, in the format of
|
2398
2398
|
# folders/\\{FOLDER_NUMBER}. This field is available when the IAM policy
|
2399
|
-
# belongs(directly or cascadingly) to one or more folders.
|
2399
|
+
# belongs (directly or cascadingly) to one or more folders.
|
2400
2400
|
# @!attribute [rw] organization
|
2401
2401
|
# @return [::String]
|
2402
|
-
# The organization that this IAM policy belongs to, in the
|
2402
|
+
# The organization that this IAM policy belongs to, in the format of
|
2403
2403
|
# organizations/\\{ORGANIZATION_NUMBER}. This field is available when the
|
2404
|
-
# IAM policy belongs(directly or cascadingly) to an organization.
|
2404
|
+
# IAM policy belongs (directly or cascadingly) to an organization.
|
2405
2405
|
class GovernedIamPolicy
|
2406
2406
|
include ::Google::Protobuf::MessageExts
|
2407
2407
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-asset-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.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: 2023-
|
11
|
+
date: 2023-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.18.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.18.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -104,14 +104,14 @@ dependencies:
|
|
104
104
|
requirements:
|
105
105
|
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version: 1.26.
|
107
|
+
version: 1.26.3
|
108
108
|
type: :development
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
112
|
- - "~>"
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
version: 1.26.
|
114
|
+
version: 1.26.3
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: minitest
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
@@ -231,9 +231,14 @@ files:
|
|
231
231
|
- lib/google/cloud/asset/v1/asset_service/helpers.rb
|
232
232
|
- lib/google/cloud/asset/v1/asset_service/operations.rb
|
233
233
|
- lib/google/cloud/asset/v1/asset_service/paths.rb
|
234
|
+
- lib/google/cloud/asset/v1/asset_service/rest.rb
|
235
|
+
- lib/google/cloud/asset/v1/asset_service/rest/client.rb
|
236
|
+
- lib/google/cloud/asset/v1/asset_service/rest/operations.rb
|
237
|
+
- lib/google/cloud/asset/v1/asset_service/rest/service_stub.rb
|
234
238
|
- lib/google/cloud/asset/v1/asset_service_pb.rb
|
235
239
|
- lib/google/cloud/asset/v1/asset_service_services_pb.rb
|
236
240
|
- lib/google/cloud/asset/v1/assets_pb.rb
|
241
|
+
- lib/google/cloud/asset/v1/rest.rb
|
237
242
|
- lib/google/cloud/asset/v1/version.rb
|
238
243
|
- lib/google/cloud/orgpolicy/v1/orgpolicy_pb.rb
|
239
244
|
- proto_docs/README.md
|
@@ -283,5 +288,5 @@ requirements: []
|
|
283
288
|
rubygems_version: 3.4.2
|
284
289
|
signing_key:
|
285
290
|
specification_version: 4
|
286
|
-
summary:
|
291
|
+
summary: The Cloud Asset API manages the history and inventory of Google Cloud resources.
|
287
292
|
test_files: []
|