grafeas-v1 0.12.1 → 0.14.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/grafeas/v1/grafeas/client.rb +38 -7
- data/lib/grafeas/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dc483f35aea84826a3f17799cd6ad678c17bd8f63b5b145ae9d32b8dcd6b6ef
|
4
|
+
data.tar.gz: cda9d17d6c50dda477cf4a08282eb0a434645cca94b3eb5847db857e32ecab9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d77d8c9c05573c26ca50d9deab597fc66a1dcaafe3ffa57e418c38231034a78e9a4d1d63e85d16db16652fd2f04eed1e01934aeb2f30e409ce1967a0bad174f0
|
7
|
+
data.tar.gz: 666157449afc366ceda10ea1c1d076cc3a5ec9e78f5d34ab73cf37a5c6b09388581230d183cc19899e180b492e72fbde212da90b1ba7f344a44f28ba096182d1
|
@@ -41,6 +41,9 @@ module Grafeas
|
|
41
41
|
# image with the vulnerability referring to that note.
|
42
42
|
#
|
43
43
|
class Client
|
44
|
+
# @private
|
45
|
+
DEFAULT_ENDPOINT_TEMPLATE = nil
|
46
|
+
|
44
47
|
include Paths
|
45
48
|
|
46
49
|
# @private
|
@@ -153,6 +156,15 @@ module Grafeas
|
|
153
156
|
@config
|
154
157
|
end
|
155
158
|
|
159
|
+
##
|
160
|
+
# The effective universe domain
|
161
|
+
#
|
162
|
+
# @return [String]
|
163
|
+
#
|
164
|
+
def universe_domain
|
165
|
+
@grafeas_stub.universe_domain
|
166
|
+
end
|
167
|
+
|
156
168
|
##
|
157
169
|
# Create a new Grafeas client object.
|
158
170
|
#
|
@@ -189,10 +201,13 @@ module Grafeas
|
|
189
201
|
|
190
202
|
@grafeas_stub = ::Gapic::ServiceStub.new(
|
191
203
|
::Grafeas::V1::Grafeas::Stub,
|
192
|
-
credentials:
|
193
|
-
endpoint:
|
204
|
+
credentials: credentials,
|
205
|
+
endpoint: @config.endpoint,
|
206
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
207
|
+
universe_domain: @config.universe_domain,
|
194
208
|
channel_args: @config.channel_args,
|
195
|
-
interceptors: @config.interceptors
|
209
|
+
interceptors: @config.interceptors,
|
210
|
+
channel_pool_config: @config.channel_pool
|
196
211
|
)
|
197
212
|
end
|
198
213
|
|
@@ -1490,9 +1505,9 @@ module Grafeas
|
|
1490
1505
|
# end
|
1491
1506
|
#
|
1492
1507
|
# @!attribute [rw] endpoint
|
1493
|
-
#
|
1494
|
-
#
|
1495
|
-
# @return [::String]
|
1508
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
1509
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
1510
|
+
# @return [::String,nil]
|
1496
1511
|
# @!attribute [rw] credentials
|
1497
1512
|
# Credentials to send with calls. You may provide any of the following types:
|
1498
1513
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -1538,13 +1553,20 @@ module Grafeas
|
|
1538
1553
|
# @!attribute [rw] quota_project
|
1539
1554
|
# A separate project against which to charge quota.
|
1540
1555
|
# @return [::String]
|
1556
|
+
# @!attribute [rw] universe_domain
|
1557
|
+
# The universe domain within which to make requests. This determines the
|
1558
|
+
# default endpoint URL. The default value of nil uses the environment
|
1559
|
+
# universe (usually the default "googleapis.com" universe).
|
1560
|
+
# @return [::String,nil]
|
1541
1561
|
#
|
1542
1562
|
class Configuration
|
1543
1563
|
extend ::Gapic::Config
|
1544
1564
|
|
1565
|
+
# @private
|
1566
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
1545
1567
|
DEFAULT_ENDPOINT = nil
|
1546
1568
|
|
1547
|
-
config_attr :endpoint,
|
1569
|
+
config_attr :endpoint, nil, ::String, nil
|
1548
1570
|
config_attr :credentials, nil do |value|
|
1549
1571
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1550
1572
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1559,6 +1581,7 @@ module Grafeas
|
|
1559
1581
|
config_attr :metadata, nil, ::Hash, nil
|
1560
1582
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1561
1583
|
config_attr :quota_project, nil, ::String, nil
|
1584
|
+
config_attr :universe_domain, nil, ::String, nil
|
1562
1585
|
|
1563
1586
|
# @private
|
1564
1587
|
def initialize parent_config = nil
|
@@ -1579,6 +1602,14 @@ module Grafeas
|
|
1579
1602
|
end
|
1580
1603
|
end
|
1581
1604
|
|
1605
|
+
##
|
1606
|
+
# Configuration for the channel pool
|
1607
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1608
|
+
#
|
1609
|
+
def channel_pool
|
1610
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1611
|
+
end
|
1612
|
+
|
1582
1613
|
##
|
1583
1614
|
# Configuration RPC class for the Grafeas API.
|
1584
1615
|
#
|
data/lib/grafeas/v1/version.rb
CHANGED
@@ -21,6 +21,7 @@ module Google
|
|
21
21
|
module Api
|
22
22
|
# Required information for every language.
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
24
25
|
# @return [::String]
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
@@ -304,6 +305,19 @@ module Google
|
|
304
305
|
# seconds: 360 # 6 minutes
|
305
306
|
# total_poll_timeout:
|
306
307
|
# seconds: 54000 # 90 minutes
|
308
|
+
# @!attribute [rw] auto_populated_fields
|
309
|
+
# @return [::Array<::String>]
|
310
|
+
# List of top-level fields of the request message, that should be
|
311
|
+
# automatically populated by the client libraries based on their
|
312
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
313
|
+
#
|
314
|
+
# Example of a YAML configuration:
|
315
|
+
#
|
316
|
+
# publishing:
|
317
|
+
# method_settings:
|
318
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
319
|
+
# auto_populated_fields:
|
320
|
+
# - request_id
|
307
321
|
class MethodSettings
|
308
322
|
include ::Google::Protobuf::MessageExts
|
309
323
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grafeas-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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:
|
11
|
+
date: 2024-01-11 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.21.1
|
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.21.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
246
246
|
- !ruby/object:Gem::Version
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
249
|
+
rubygems_version: 3.5.3
|
250
250
|
signing_key:
|
251
251
|
specification_version: 4
|
252
252
|
summary: An implementation of the Grafeas API, which stores, and enables querying
|