google-apis-digitalassetlinks_v1 0.19.0 → 0.20.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/CHANGELOG.md +4 -0
- data/lib/google/apis/digitalassetlinks_v1/classes.rb +35 -0
- data/lib/google/apis/digitalassetlinks_v1/gem_version.rb +2 -2
- data/lib/google/apis/digitalassetlinks_v1/representations.rb +3 -0
- data/lib/google/apis/digitalassetlinks_v1/service.rb +19 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 858dbd99b2219d2047bf68ffb2fae7b508835b6c4b2866593ecd7ed52bb5b5db
|
4
|
+
data.tar.gz: b65b792b99ea0df8d35bdb2fb19612fffa974b0d7fbc7e7b2be2e128885d0296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30fd3ed37d3f83b1509001a6536b556484dbd91571fd9f5c4a88635cfa7e9aaa657e828ab4cb14dff6df1b6f7dfe2b7d0461a68795d5f16b4c8c4b15a73b781d
|
7
|
+
data.tar.gz: a0affcef0eabc0e22a9e6030342d6194f7925bcfab3924d4239c17a80315563c0bc3be58e275d39066186f5ab954e1c16074c3f3faeb531234f133b91a6e5c1d
|
data/CHANGELOG.md
CHANGED
@@ -101,6 +101,13 @@ module Google
|
|
101
101
|
# @return [Google::Apis::DigitalassetlinksV1::Asset]
|
102
102
|
attr_accessor :default_target
|
103
103
|
|
104
|
+
# Same configuration as in CheckRequest; all statement checks will use the same
|
105
|
+
# configuration.
|
106
|
+
# Corresponds to the JSON property `returnRelationExtensions`
|
107
|
+
# @return [Boolean]
|
108
|
+
attr_accessor :return_relation_extensions
|
109
|
+
alias_method :return_relation_extensions?, :return_relation_extensions
|
110
|
+
|
104
111
|
# List of statements to check. For each statement, you can omit a field if the
|
105
112
|
# corresponding default_* field below was supplied. Minimum 1 statement; maximum
|
106
113
|
# 1,000 statements. Any additional statements will be ignored.
|
@@ -117,6 +124,7 @@ module Google
|
|
117
124
|
@default_relation = args[:default_relation] if args.key?(:default_relation)
|
118
125
|
@default_source = args[:default_source] if args.key?(:default_source)
|
119
126
|
@default_target = args[:default_target] if args.key?(:default_target)
|
127
|
+
@return_relation_extensions = args[:return_relation_extensions] if args.key?(:return_relation_extensions)
|
120
128
|
@statements = args[:statements] if args.key?(:statements)
|
121
129
|
end
|
122
130
|
end
|
@@ -214,6 +222,15 @@ module Google
|
|
214
222
|
# @return [String]
|
215
223
|
attr_accessor :max_age
|
216
224
|
|
225
|
+
# Statements may specify relation level extensions/payloads to express more
|
226
|
+
# details when declaring permissions to grant from the source asset to the
|
227
|
+
# target asset. When requested, the API will return relation_extensions
|
228
|
+
# specified in any and all statements linking the requested source and target
|
229
|
+
# assets by the relation specified in the request.
|
230
|
+
# Corresponds to the JSON property `relationExtensions`
|
231
|
+
# @return [Array<Hash<String,Object>>]
|
232
|
+
attr_accessor :relation_extensions
|
233
|
+
|
217
234
|
def initialize(**args)
|
218
235
|
update!(**args)
|
219
236
|
end
|
@@ -224,6 +241,7 @@ module Google
|
|
224
241
|
@error_code = args[:error_code] if args.key?(:error_code)
|
225
242
|
@linked = args[:linked] if args.key?(:linked)
|
226
243
|
@max_age = args[:max_age] if args.key?(:max_age)
|
244
|
+
@relation_extensions = args[:relation_extensions] if args.key?(:relation_extensions)
|
227
245
|
end
|
228
246
|
end
|
229
247
|
|
@@ -292,6 +310,22 @@ module Google
|
|
292
310
|
# @return [String]
|
293
311
|
attr_accessor :relation
|
294
312
|
|
313
|
+
# Statements may specify relation level extensions/payloads to express more
|
314
|
+
# details when declaring permissions to grant from the source asset to the
|
315
|
+
# target asset. These relation extensions should be specified in the `
|
316
|
+
# relation_extensions` object, keyed by the relation type they're associated
|
317
|
+
# with. ` relation: ["delegate_permission/common.handle_all_urls"], target: `...`
|
318
|
+
# , relation_extensions: ` "delegate_permission/common.handle_all_urls": ` ...
|
319
|
+
# handle_all_urls specific payload specified here... ` ` ` When requested, and
|
320
|
+
# specified in the statement file, the API will return relation_extensions
|
321
|
+
# associated with the statement's relation type. i.e. the API will only return
|
322
|
+
# relation_extensions specified for "delegate_permission/common.handle_all_urls"
|
323
|
+
# if this statement object's relation type is "delegate_permission/common.
|
324
|
+
# handle_all_urls".
|
325
|
+
# Corresponds to the JSON property `relationExtensions`
|
326
|
+
# @return [Hash<String,Object>]
|
327
|
+
attr_accessor :relation_extensions
|
328
|
+
|
295
329
|
# Uniquely identifies an asset. A digital asset is an identifiable and
|
296
330
|
# addressable online entity that typically provides some service or content.
|
297
331
|
# Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
|
@@ -313,6 +347,7 @@ module Google
|
|
313
347
|
# Update properties of this object
|
314
348
|
def update!(**args)
|
315
349
|
@relation = args[:relation] if args.key?(:relation)
|
350
|
+
@relation_extensions = args[:relation_extensions] if args.key?(:relation_extensions)
|
316
351
|
@source = args[:source] if args.key?(:source)
|
317
352
|
@target = args[:target] if args.key?(:target)
|
318
353
|
end
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.20.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250405"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -109,6 +109,7 @@ module Google
|
|
109
109
|
|
110
110
|
property :default_target, as: 'defaultTarget', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
|
111
111
|
|
112
|
+
property :return_relation_extensions, as: 'returnRelationExtensions'
|
112
113
|
collection :statements, as: 'statements', class: Google::Apis::DigitalassetlinksV1::StatementTemplate, decorator: Google::Apis::DigitalassetlinksV1::StatementTemplate::Representation
|
113
114
|
|
114
115
|
end
|
@@ -137,6 +138,7 @@ module Google
|
|
137
138
|
collection :error_code, as: 'errorCode'
|
138
139
|
property :linked, as: 'linked'
|
139
140
|
property :max_age, as: 'maxAge'
|
141
|
+
collection :relation_extensions, as: 'relationExtensions'
|
140
142
|
end
|
141
143
|
end
|
142
144
|
|
@@ -155,6 +157,7 @@ module Google
|
|
155
157
|
# @private
|
156
158
|
class Representation < Google::Apis::Core::JsonRepresentation
|
157
159
|
property :relation, as: 'relation'
|
160
|
+
hash :relation_extensions, as: 'relationExtensions'
|
158
161
|
property :source, as: 'source', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
|
159
162
|
|
160
163
|
property :target, as: 'target', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
|
@@ -112,6 +112,14 @@ module Google
|
|
112
112
|
# relation strings must match exactly. Example: A query with relation `
|
113
113
|
# delegate_permission/common.handle_all_urls` matches an asset link with
|
114
114
|
# relation `delegate_permission/common.handle_all_urls`.
|
115
|
+
# @param [Boolean] return_relation_extensions
|
116
|
+
# Whether to return relation_extensions payloads specified in the source Digital
|
117
|
+
# Asset Links statements linking the requested source and target assets by the
|
118
|
+
# requested relation type. If this is set to `false` (default),
|
119
|
+
# relation_extensions specified will not be returned, even if they are specified
|
120
|
+
# in the DAL statement file. If set to `true`, the API will propagate any and
|
121
|
+
# all relation_extensions, across statements, linking the source and target
|
122
|
+
# assets by the requested relation type, if specified in the DAL statement file.
|
115
123
|
# @param [String] source_android_app_certificate_sha256_fingerprint
|
116
124
|
# The uppercase SHA-265 fingerprint of the certificate. From the PEM certificate,
|
117
125
|
# it can be acquired like this: $ keytool -printcert -file $CERTFILE | grep
|
@@ -193,11 +201,12 @@ module Google
|
|
193
201
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
194
202
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
195
203
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
196
|
-
def check_assetlink(relation: nil, source_android_app_certificate_sha256_fingerprint: nil, source_android_app_package_name: nil, source_web_site: nil, target_android_app_certificate_sha256_fingerprint: nil, target_android_app_package_name: nil, target_web_site: nil, fields: nil, quota_user: nil, options: nil, &block)
|
204
|
+
def check_assetlink(relation: nil, return_relation_extensions: nil, source_android_app_certificate_sha256_fingerprint: nil, source_android_app_package_name: nil, source_web_site: nil, target_android_app_certificate_sha256_fingerprint: nil, target_android_app_package_name: nil, target_web_site: nil, fields: nil, quota_user: nil, options: nil, &block)
|
197
205
|
command = make_simple_command(:get, 'v1/assetlinks:check', options)
|
198
206
|
command.response_representation = Google::Apis::DigitalassetlinksV1::CheckResponse::Representation
|
199
207
|
command.response_class = Google::Apis::DigitalassetlinksV1::CheckResponse
|
200
208
|
command.query['relation'] = relation unless relation.nil?
|
209
|
+
command.query['returnRelationExtensions'] = return_relation_extensions unless return_relation_extensions.nil?
|
201
210
|
command.query['source.androidApp.certificate.sha256Fingerprint'] = source_android_app_certificate_sha256_fingerprint unless source_android_app_certificate_sha256_fingerprint.nil?
|
202
211
|
command.query['source.androidApp.packageName'] = source_android_app_package_name unless source_android_app_package_name.nil?
|
203
212
|
command.query['source.web.site'] = source_web_site unless source_web_site.nil?
|
@@ -230,6 +239,13 @@ module Google
|
|
230
239
|
# string is empty or missing. Example: A query with relation `
|
231
240
|
# delegate_permission/common.handle_all_urls` matches an asset link with
|
232
241
|
# relation `delegate_permission/common.handle_all_urls`.
|
242
|
+
# @param [Boolean] return_relation_extensions
|
243
|
+
# Whether to return any relation_extensions payloads specified in the source
|
244
|
+
# digital asset links statements. If this is set to `false` (default),
|
245
|
+
# relation_extensions specified will not be returned, even if they are specified
|
246
|
+
# in the DAL statement file. If set to `true`, the API will propagate
|
247
|
+
# relation_extensions associated with each statement's relation type, if
|
248
|
+
# specified in the DAL statement file.
|
233
249
|
# @param [String] source_android_app_certificate_sha256_fingerprint
|
234
250
|
# The uppercase SHA-265 fingerprint of the certificate. From the PEM certificate,
|
235
251
|
# it can be acquired like this: $ keytool -printcert -file $CERTFILE | grep
|
@@ -279,11 +295,12 @@ module Google
|
|
279
295
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
280
296
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
281
297
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
282
|
-
def list_statements(relation: nil, source_android_app_certificate_sha256_fingerprint: nil, source_android_app_package_name: nil, source_web_site: nil, fields: nil, quota_user: nil, options: nil, &block)
|
298
|
+
def list_statements(relation: nil, return_relation_extensions: nil, source_android_app_certificate_sha256_fingerprint: nil, source_android_app_package_name: nil, source_web_site: nil, fields: nil, quota_user: nil, options: nil, &block)
|
283
299
|
command = make_simple_command(:get, 'v1/statements:list', options)
|
284
300
|
command.response_representation = Google::Apis::DigitalassetlinksV1::ListResponse::Representation
|
285
301
|
command.response_class = Google::Apis::DigitalassetlinksV1::ListResponse
|
286
302
|
command.query['relation'] = relation unless relation.nil?
|
303
|
+
command.query['returnRelationExtensions'] = return_relation_extensions unless return_relation_extensions.nil?
|
287
304
|
command.query['source.androidApp.certificate.sha256Fingerprint'] = source_android_app_certificate_sha256_fingerprint unless source_android_app_certificate_sha256_fingerprint.nil?
|
288
305
|
command.query['source.androidApp.packageName'] = source_android_app_package_name unless source_android_app_package_name.nil?
|
289
306
|
command.query['source.web.site'] = source_web_site unless source_web_site.nil?
|
metadata
CHANGED
@@ -1,13 +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.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-digitalassetlinks_v1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-digitalassetlinks_v1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-digitalassetlinks_v1/v0.20.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-digitalassetlinks_v1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|