google-apis-digitalassetlinks_v1 0.18.0 → 0.19.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35dd7c4b500a6dc3da145b304cfb3cc4ce653177c537854a50aa455469099b5f
4
- data.tar.gz: de6e4d2ab373cdbed87bea1c257ac6559706c99f52b59bcf03373c4716e2a577
3
+ metadata.gz: '0850e091c1eceea132995143bc966c330e7de6fa4a87325238c74e30532433e1'
4
+ data.tar.gz: b9b2dd2850dfe0aeccb15298c89cd9f5b70447dc91bfc4997ffc31eb413dabbd
5
5
  SHA512:
6
- metadata.gz: 7eda0e1ed29a88ea527a65ccbd89be91e594cb52ce77e39419df0a2d4e9f7affd7a78c86388f7e243222940fdaa4791a98a73541a51a2b7c83c2202317028d36
7
- data.tar.gz: 34cf239364071ca71dd522381c14aa01d37fcd4179af2ad0cdce563134bd22202ecb69e083fdffd361b8b5a756cbb58c450677a446d3c9bbcd1d688259f92063
6
+ metadata.gz: c72d4acb6d3c25864524fc69a392ec6220aba4065be611918410de71cf687ff76ee763c5d62aa374c9c49c91679f7d2ac538eab6b2cf2827f62f4e61268067d0
7
+ data.tar.gz: da5ede29e5a2c09d526682b921a273f0958d0c83b30fbfae4d583228aab227b25cfe0a21babdbcc21f9f745e7674123aed1e4fd7378496439aed72ffe19ff929
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-digitalassetlinks_v1
2
2
 
3
+ ### v0.19.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250211
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.18.0 (2024-11-17)
4
9
 
5
10
  * Regenerated from discovery document revision 20241109
@@ -76,6 +76,81 @@ module Google
76
76
  end
77
77
  end
78
78
 
79
+ # Message used to check for the existence of multiple digital asset links within
80
+ # a single RPC.
81
+ class BulkCheckRequest
82
+ include Google::Apis::Core::Hashable
83
+
84
+ # If specified, will be used in any given template statement that doesn’t
85
+ # specify a relation.
86
+ # Corresponds to the JSON property `defaultRelation`
87
+ # @return [String]
88
+ attr_accessor :default_relation
89
+
90
+ # Uniquely identifies an asset. A digital asset is an identifiable and
91
+ # addressable online entity that typically provides some service or content.
92
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
93
+ # Corresponds to the JSON property `defaultSource`
94
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
95
+ attr_accessor :default_source
96
+
97
+ # Uniquely identifies an asset. A digital asset is an identifiable and
98
+ # addressable online entity that typically provides some service or content.
99
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
100
+ # Corresponds to the JSON property `defaultTarget`
101
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
102
+ attr_accessor :default_target
103
+
104
+ # List of statements to check. For each statement, you can omit a field if the
105
+ # corresponding default_* field below was supplied. Minimum 1 statement; maximum
106
+ # 1,000 statements. Any additional statements will be ignored.
107
+ # Corresponds to the JSON property `statements`
108
+ # @return [Array<Google::Apis::DigitalassetlinksV1::StatementTemplate>]
109
+ attr_accessor :statements
110
+
111
+ def initialize(**args)
112
+ update!(**args)
113
+ end
114
+
115
+ # Update properties of this object
116
+ def update!(**args)
117
+ @default_relation = args[:default_relation] if args.key?(:default_relation)
118
+ @default_source = args[:default_source] if args.key?(:default_source)
119
+ @default_target = args[:default_target] if args.key?(:default_target)
120
+ @statements = args[:statements] if args.key?(:statements)
121
+ end
122
+ end
123
+
124
+ # Response for BulkCheck call. Results are sent in a list in the same order in
125
+ # which they were sent. Individual check errors are described in the appropriate
126
+ # check_results entry. If the entire call fails, the response will include a
127
+ # bulk_error_code field describing the error.
128
+ class BulkCheckResponse
129
+ include Google::Apis::Core::Hashable
130
+
131
+ # Error code for the entire request. Present only if the entire request failed.
132
+ # Individual check errors will not trigger the presence of this field.
133
+ # Corresponds to the JSON property `bulkErrorCode`
134
+ # @return [String]
135
+ attr_accessor :bulk_error_code
136
+
137
+ # List of results for each check request. Results are returned in the same order
138
+ # in which they were sent in the request.
139
+ # Corresponds to the JSON property `checkResults`
140
+ # @return [Array<Google::Apis::DigitalassetlinksV1::CheckResponse>]
141
+ attr_accessor :check_results
142
+
143
+ def initialize(**args)
144
+ update!(**args)
145
+ end
146
+
147
+ # Update properties of this object
148
+ def update!(**args)
149
+ @bulk_error_code = args[:bulk_error_code] if args.key?(:bulk_error_code)
150
+ @check_results = args[:check_results] if args.key?(:check_results)
151
+ end
152
+ end
153
+
79
154
  # Describes an X509 certificate.
80
155
  class CertificateInfo
81
156
  include Google::Apis::Core::Hashable
@@ -243,6 +318,43 @@ module Google
243
318
  end
244
319
  end
245
320
 
321
+ # A single statement to check in a bulk call using BulkCheck. See CheckRequest
322
+ # for details about each field.
323
+ class StatementTemplate
324
+ include Google::Apis::Core::Hashable
325
+
326
+ # The relationship being asserted between the source and target. If omitted, you
327
+ # must specify a BulkCheckRequest.default_relation value to use here.
328
+ # Corresponds to the JSON property `relation`
329
+ # @return [String]
330
+ attr_accessor :relation
331
+
332
+ # Uniquely identifies an asset. A digital asset is an identifiable and
333
+ # addressable online entity that typically provides some service or content.
334
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
335
+ # Corresponds to the JSON property `source`
336
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
337
+ attr_accessor :source
338
+
339
+ # Uniquely identifies an asset. A digital asset is an identifiable and
340
+ # addressable online entity that typically provides some service or content.
341
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
342
+ # Corresponds to the JSON property `target`
343
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
344
+ attr_accessor :target
345
+
346
+ def initialize(**args)
347
+ update!(**args)
348
+ end
349
+
350
+ # Update properties of this object
351
+ def update!(**args)
352
+ @relation = args[:relation] if args.key?(:relation)
353
+ @source = args[:source] if args.key?(:source)
354
+ @target = args[:target] if args.key?(:target)
355
+ end
356
+ end
357
+
246
358
  # Describes a web asset.
247
359
  class WebAsset
248
360
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DigitalassetlinksV1
18
18
  # Version of the google-apis-digitalassetlinks_v1 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241109"
25
+ REVISION = "20250211"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class BulkCheckRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class BulkCheckResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class CertificateInfo
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -58,6 +70,12 @@ module Google
58
70
  include Google::Apis::Core::JsonObjectSupport
59
71
  end
60
72
 
73
+ class StatementTemplate
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
61
79
  class WebAsset
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
81
 
@@ -83,6 +101,28 @@ module Google
83
101
  end
84
102
  end
85
103
 
104
+ class BulkCheckRequest
105
+ # @private
106
+ class Representation < Google::Apis::Core::JsonRepresentation
107
+ property :default_relation, as: 'defaultRelation'
108
+ property :default_source, as: 'defaultSource', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
109
+
110
+ property :default_target, as: 'defaultTarget', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
111
+
112
+ collection :statements, as: 'statements', class: Google::Apis::DigitalassetlinksV1::StatementTemplate, decorator: Google::Apis::DigitalassetlinksV1::StatementTemplate::Representation
113
+
114
+ end
115
+ end
116
+
117
+ class BulkCheckResponse
118
+ # @private
119
+ class Representation < Google::Apis::Core::JsonRepresentation
120
+ property :bulk_error_code, as: 'bulkErrorCode'
121
+ collection :check_results, as: 'checkResults', class: Google::Apis::DigitalassetlinksV1::CheckResponse, decorator: Google::Apis::DigitalassetlinksV1::CheckResponse::Representation
122
+
123
+ end
124
+ end
125
+
86
126
  class CertificateInfo
87
127
  # @private
88
128
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +162,17 @@ module Google
122
162
  end
123
163
  end
124
164
 
165
+ class StatementTemplate
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :relation, as: 'relation'
169
+ property :source, as: 'source', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
170
+
171
+ property :target, as: 'target', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
172
+
173
+ end
174
+ end
175
+
125
176
  class WebAsset
126
177
  # @private
127
178
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,6 +51,39 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Send a bundle of statement checks in a single RPC to minimize latency and
55
+ # service load. Statements need not be all for the same source and/or target. We
56
+ # recommend using this method when you need to check more than one statement in
57
+ # a short period of time.
58
+ # @param [Google::Apis::DigitalassetlinksV1::BulkCheckRequest] bulk_check_request_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::DigitalassetlinksV1::BulkCheckResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::DigitalassetlinksV1::BulkCheckResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def bulk_assetlink_check(bulk_check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1/assetlinks:bulkCheck', options)
78
+ command.request_representation = Google::Apis::DigitalassetlinksV1::BulkCheckRequest::Representation
79
+ command.request_object = bulk_check_request_object
80
+ command.response_representation = Google::Apis::DigitalassetlinksV1::BulkCheckResponse::Representation
81
+ command.response_class = Google::Apis::DigitalassetlinksV1::BulkCheckResponse
82
+ command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ execute_or_queue_command(command, &block)
85
+ end
86
+
54
87
  # Determines whether the specified (directional) relationship exists between the
55
88
  # specified source and target assets. The relation describes the intent of the
56
89
  # link between the two assets as claimed by the source asset. An example for
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-digitalassetlinks_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-digitalassetlinks_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-digitalassetlinks_v1/v0.18.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-digitalassetlinks_v1/v0.19.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-digitalassetlinks_v1
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.22
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Digital Asset Links API V1
82
79
  test_files: []