Skip to content

Commit 5fd1073

Browse files
feat: Automated regeneration of digitalassetlinks v1 client (googleapis#22389)
Auto-created at 2025-04-13 09:32:29 +0000 using the toys pull request generator.
1 parent 1ecd7a8 commit 5fd1073

File tree

6 files changed

+71
-4
lines changed

6 files changed

+71
-4
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191951,6 +191951,7 @@
191951191951
"/digitalassetlinks:v1/BulkCheckRequest/defaultRelation": default_relation
191952191952
"/digitalassetlinks:v1/BulkCheckRequest/defaultSource": default_source
191953191953
"/digitalassetlinks:v1/BulkCheckRequest/defaultTarget": default_target
191954+
"/digitalassetlinks:v1/BulkCheckRequest/returnRelationExtensions": return_relation_extensions
191954191955
"/digitalassetlinks:v1/BulkCheckRequest/skipCacheLookup": skip_cache_lookup
191955191956
"/digitalassetlinks:v1/BulkCheckRequest/statements": statements
191956191957
"/digitalassetlinks:v1/BulkCheckRequest/statements/statement": statement
@@ -191966,6 +191967,9 @@
191966191967
"/digitalassetlinks:v1/CheckResponse/errorCode/error_code": error_code
191967191968
"/digitalassetlinks:v1/CheckResponse/linked": linked
191968191969
"/digitalassetlinks:v1/CheckResponse/maxAge": max_age
191970+
"/digitalassetlinks:v1/CheckResponse/relationExtensions": relation_extensions
191971+
"/digitalassetlinks:v1/CheckResponse/relationExtensions/relation_extension": relation_extension
191972+
"/digitalassetlinks:v1/CheckResponse/relationExtensions/relation_extension/relation_extension": relation_extension
191969191973
"/digitalassetlinks:v1/ListResponse": list_response
191970191974
"/digitalassetlinks:v1/ListResponse/debugString": debug_string
191971191975
"/digitalassetlinks:v1/ListResponse/errorCode": error_code
@@ -191975,6 +191979,8 @@
191975191979
"/digitalassetlinks:v1/ListResponse/statements/statement": statement
191976191980
"/digitalassetlinks:v1/Statement": statement
191977191981
"/digitalassetlinks:v1/Statement/relation": relation
191982+
"/digitalassetlinks:v1/Statement/relationExtensions": relation_extensions
191983+
"/digitalassetlinks:v1/Statement/relationExtensions/relation_extension": relation_extension
191978191984
"/digitalassetlinks:v1/Statement/source": source
191979191985
"/digitalassetlinks:v1/Statement/target": target
191980191986
"/digitalassetlinks:v1/StatementTemplate": statement_template
@@ -191986,6 +191992,7 @@
191986191992
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.bulkCheck": bulk_assetlink_check
191987191993
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check": check_assetlink
191988191994
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/relation": relation
191995+
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/returnRelationExtensions": return_relation_extensions
191989191996
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/source.androidApp.certificate.sha256Fingerprint": source_android_app_certificate_sha256_fingerprint
191990191997
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/source.androidApp.packageName": source_android_app_package_name
191991191998
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/source.web.site": source_web_site
@@ -191994,6 +192001,7 @@
191994192001
"/digitalassetlinks:v1/digitalassetlinks.assetlinks.check/target.web.site": target_web_site
191995192002
"/digitalassetlinks:v1/digitalassetlinks.statements.list": list_statements
191996192003
"/digitalassetlinks:v1/digitalassetlinks.statements.list/relation": relation
192004+
"/digitalassetlinks:v1/digitalassetlinks.statements.list/returnRelationExtensions": return_relation_extensions
191997192005
"/digitalassetlinks:v1/digitalassetlinks.statements.list/source.androidApp.certificate.sha256Fingerprint": source_android_app_certificate_sha256_fingerprint
191998192006
"/digitalassetlinks:v1/digitalassetlinks.statements.list/source.androidApp.packageName": source_android_app_package_name
191999192007
"/digitalassetlinks:v1/digitalassetlinks.statements.list/source.web.site": source_web_site

generated/google-apis-digitalassetlinks_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-digitalassetlinks_v1
22

3+
### v0.20.0 (2025-04-13)
4+
5+
* Regenerated from discovery document revision 20250405
6+
37
### v0.19.0 (2025-02-26)
48

59
* Regenerated from discovery document revision 20250211

generated/google-apis-digitalassetlinks_v1/lib/google/apis/digitalassetlinks_v1/classes.rb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ class BulkCheckRequest
101101
# @return [Google::Apis::DigitalassetlinksV1::Asset]
102102
attr_accessor :default_target
103103

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+
104111
# List of statements to check. For each statement, you can omit a field if the
105112
# corresponding default_* field below was supplied. Minimum 1 statement; maximum
106113
# 1,000 statements. Any additional statements will be ignored.
@@ -117,6 +124,7 @@ def update!(**args)
117124
@default_relation = args[:default_relation] if args.key?(:default_relation)
118125
@default_source = args[:default_source] if args.key?(:default_source)
119126
@default_target = args[:default_target] if args.key?(:default_target)
127+
@return_relation_extensions = args[:return_relation_extensions] if args.key?(:return_relation_extensions)
120128
@statements = args[:statements] if args.key?(:statements)
121129
end
122130
end
@@ -214,6 +222,15 @@ class CheckResponse
214222
# @return [String]
215223
attr_accessor :max_age
216224

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+
217234
def initialize(**args)
218235
update!(**args)
219236
end
@@ -224,6 +241,7 @@ def update!(**args)
224241
@error_code = args[:error_code] if args.key?(:error_code)
225242
@linked = args[:linked] if args.key?(:linked)
226243
@max_age = args[:max_age] if args.key?(:max_age)
244+
@relation_extensions = args[:relation_extensions] if args.key?(:relation_extensions)
227245
end
228246
end
229247

@@ -292,6 +310,22 @@ class Statement
292310
# @return [String]
293311
attr_accessor :relation
294312

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+
295329
# Uniquely identifies an asset. A digital asset is an identifiable and
296330
# addressable online entity that typically provides some service or content.
297331
# Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
@@ -313,6 +347,7 @@ def initialize(**args)
313347
# Update properties of this object
314348
def update!(**args)
315349
@relation = args[:relation] if args.key?(:relation)
350+
@relation_extensions = args[:relation_extensions] if args.key?(:relation_extensions)
316351
@source = args[:source] if args.key?(:source)
317352
@target = args[:target] if args.key?(:target)
318353
end

generated/google-apis-digitalassetlinks_v1/lib/google/apis/digitalassetlinks_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DigitalassetlinksV1
1818
# Version of the google-apis-digitalassetlinks_v1 gem
19-
GEM_VERSION = "0.19.0"
19+
GEM_VERSION = "0.20.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250211"
25+
REVISION = "20250405"
2626
end
2727
end
2828
end

generated/google-apis-digitalassetlinks_v1/lib/google/apis/digitalassetlinks_v1/representations.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
109109

110110
property :default_target, as: 'defaultTarget', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
111111

112+
property :return_relation_extensions, as: 'returnRelationExtensions'
112113
collection :statements, as: 'statements', class: Google::Apis::DigitalassetlinksV1::StatementTemplate, decorator: Google::Apis::DigitalassetlinksV1::StatementTemplate::Representation
113114

114115
end
@@ -137,6 +138,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
137138
collection :error_code, as: 'errorCode'
138139
property :linked, as: 'linked'
139140
property :max_age, as: 'maxAge'
141+
collection :relation_extensions, as: 'relationExtensions'
140142
end
141143
end
142144

@@ -155,6 +157,7 @@ class Statement
155157
# @private
156158
class Representation < Google::Apis::Core::JsonRepresentation
157159
property :relation, as: 'relation'
160+
hash :relation_extensions, as: 'relationExtensions'
158161
property :source, as: 'source', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
159162

160163
property :target, as: 'target', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation

generated/google-apis-digitalassetlinks_v1/lib/google/apis/digitalassetlinks_v1/service.rb

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ def bulk_assetlink_check(bulk_check_request_object = nil, fields: nil, quota_use
112112
# relation strings must match exactly. Example: A query with relation `
113113
# delegate_permission/common.handle_all_urls` matches an asset link with
114114
# 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.
115123
# @param [String] source_android_app_certificate_sha256_fingerprint
116124
# The uppercase SHA-265 fingerprint of the certificate. From the PEM certificate,
117125
# it can be acquired like this: $ keytool -printcert -file $CERTFILE | grep
@@ -193,11 +201,12 @@ def bulk_assetlink_check(bulk_check_request_object = nil, fields: nil, quota_use
193201
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194202
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195203
# @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)
197205
command = make_simple_command(:get, 'v1/assetlinks:check', options)
198206
command.response_representation = Google::Apis::DigitalassetlinksV1::CheckResponse::Representation
199207
command.response_class = Google::Apis::DigitalassetlinksV1::CheckResponse
200208
command.query['relation'] = relation unless relation.nil?
209+
command.query['returnRelationExtensions'] = return_relation_extensions unless return_relation_extensions.nil?
201210
command.query['source.androidApp.certificate.sha256Fingerprint'] = source_android_app_certificate_sha256_fingerprint unless source_android_app_certificate_sha256_fingerprint.nil?
202211
command.query['source.androidApp.packageName'] = source_android_app_package_name unless source_android_app_package_name.nil?
203212
command.query['source.web.site'] = source_web_site unless source_web_site.nil?
@@ -230,6 +239,13 @@ def check_assetlink(relation: nil, source_android_app_certificate_sha256_fingerp
230239
# string is empty or missing. Example: A query with relation `
231240
# delegate_permission/common.handle_all_urls` matches an asset link with
232241
# 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.
233249
# @param [String] source_android_app_certificate_sha256_fingerprint
234250
# The uppercase SHA-265 fingerprint of the certificate. From the PEM certificate,
235251
# it can be acquired like this: $ keytool -printcert -file $CERTFILE | grep
@@ -279,11 +295,12 @@ def check_assetlink(relation: nil, source_android_app_certificate_sha256_fingerp
279295
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
280296
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281297
# @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)
283299
command = make_simple_command(:get, 'v1/statements:list', options)
284300
command.response_representation = Google::Apis::DigitalassetlinksV1::ListResponse::Representation
285301
command.response_class = Google::Apis::DigitalassetlinksV1::ListResponse
286302
command.query['relation'] = relation unless relation.nil?
303+
command.query['returnRelationExtensions'] = return_relation_extensions unless return_relation_extensions.nil?
287304
command.query['source.androidApp.certificate.sha256Fingerprint'] = source_android_app_certificate_sha256_fingerprint unless source_android_app_certificate_sha256_fingerprint.nil?
288305
command.query['source.androidApp.packageName'] = source_android_app_package_name unless source_android_app_package_name.nil?
289306
command.query['source.web.site'] = source_web_site unless source_web_site.nil?

0 commit comments

Comments
 (0)