google-apis-digitalassetlinks_v1 0.4.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d43f4414e435de3d0fb2fe73fd187b16437d4e918993041004f9a26d4e24bd
4
- data.tar.gz: fe39b9a61d9507c6ca6a20b50c943e583a340772515c4ff6e6941f2ef2e0a672
3
+ metadata.gz: cf52542ae73defbd377460c3d407cddd11988854601652000924e370aa012cb8
4
+ data.tar.gz: d6eadca518599757fd41f567a6f2c79705a438c4abc3553cea9ce3a13d65a440
5
5
  SHA512:
6
- metadata.gz: 027f3ace76ae73fca83bbbc68daae10a806fa36bb1d6e8e2d3f34d23233f7471f2dcc06d1c4ebc171ed1f569440fb1eef3c0c4afbb9a7ee91f69dca7f95c0b15
7
- data.tar.gz: a8fa056752fa3e49a57e6b4ca392579308cd3b217b487cab9079556b97f2cbfd77e03c2798d0a3a1a2cdb6e4785abd4f74ef5a301f28c4ecfbaed06192396e34
6
+ metadata.gz: fbd36232c2599923333044c4d8622cabb361e79ef4339083e5ac722a6596387771dd319d46eefa265523880bb8511f8df2ce36c4559d0225cb9f5482e3c2fdbf
7
+ data.tar.gz: a30fd1bf3fa828c3c71b6deeda1e821adc1c9470c2d7e7575c1e31b013748b1c42afbeb12c83ba089d38a6619a5cf964de1493dd1f5e82e0a2469b40e2ea7b5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-digitalassetlinks_v1
2
2
 
3
+ ### v0.8.0 (2022-01-26)
4
+
5
+ * Regenerated from discovery document revision 20220122
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.7.0 (2021-12-14)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.6.0 (2021-10-21)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.5.0 (2021-06-29)
17
+
18
+ * Regenerated using generator version 0.4.0
19
+
3
20
  ### v0.4.0 (2021-06-24)
4
21
 
5
22
  * Regenerated using generator version 0.3.0
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/digitalassetlinks_v1"
51
51
  client = Google::Apis::DigitalassetlinksV1::DigitalassetlinksService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Digitalassetlinks service in particular.)
67
67
 
@@ -76,6 +76,97 @@ 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
+ # Same configuration as in Check request, all statements checks will use same
85
+ # configurations.
86
+ # Corresponds to the JSON property `allowGoogleInternalDataSources`
87
+ # @return [Boolean]
88
+ attr_accessor :allow_google_internal_data_sources
89
+ alias_method :allow_google_internal_data_sources?, :allow_google_internal_data_sources
90
+
91
+ # If specified, will be used in any given template statement that doesn’t
92
+ # specify a relation.
93
+ # Corresponds to the JSON property `defaultRelation`
94
+ # @return [String]
95
+ attr_accessor :default_relation
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 `defaultSource`
101
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
102
+ attr_accessor :default_source
103
+
104
+ # Uniquely identifies an asset. A digital asset is an identifiable and
105
+ # addressable online entity that typically provides some service or content.
106
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
107
+ # Corresponds to the JSON property `defaultTarget`
108
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
109
+ attr_accessor :default_target
110
+
111
+ # Same configuration as in Check request, all statements checks will use same
112
+ # configurations.
113
+ # Corresponds to the JSON property `skipCacheLookup`
114
+ # @return [Boolean]
115
+ attr_accessor :skip_cache_lookup
116
+ alias_method :skip_cache_lookup?, :skip_cache_lookup
117
+
118
+ # List of statements to check. For each statement, you can omit a field if the
119
+ # corresponding default_* field below was supplied. Minimum 1 statement; maximum
120
+ # 1,000 statements. Any additional statements will be ignored.
121
+ # Corresponds to the JSON property `statements`
122
+ # @return [Array<Google::Apis::DigitalassetlinksV1::StatementTemplate>]
123
+ attr_accessor :statements
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ @allow_google_internal_data_sources = args[:allow_google_internal_data_sources] if args.key?(:allow_google_internal_data_sources)
132
+ @default_relation = args[:default_relation] if args.key?(:default_relation)
133
+ @default_source = args[:default_source] if args.key?(:default_source)
134
+ @default_target = args[:default_target] if args.key?(:default_target)
135
+ @skip_cache_lookup = args[:skip_cache_lookup] if args.key?(:skip_cache_lookup)
136
+ @statements = args[:statements] if args.key?(:statements)
137
+ end
138
+ end
139
+
140
+ # Response for BulkCheck call. Results are sent in a list in the same order in
141
+ # which they were sent. Individual check errors are described in the appropriate
142
+ # check_results entry. If the entire call fails, the response will include a
143
+ # bulk_error_code field describing the error.
144
+ class BulkCheckResponse
145
+ include Google::Apis::Core::Hashable
146
+
147
+ # Error code for the entire request. Present only if the entire request failed.
148
+ # Individual check errors will not trigger the presence of this field.
149
+ # Corresponds to the JSON property `bulkErrorCode`
150
+ # @return [String]
151
+ attr_accessor :bulk_error_code
152
+
153
+ # List of results for each check request. Results are returned in the same order
154
+ # in which they were sent in the request.
155
+ # Corresponds to the JSON property `checkResults`
156
+ # @return [Array<Google::Apis::DigitalassetlinksV1::CheckResponse>]
157
+ attr_accessor :check_results
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @bulk_error_code = args[:bulk_error_code] if args.key?(:bulk_error_code)
166
+ @check_results = args[:check_results] if args.key?(:check_results)
167
+ end
168
+ end
169
+
79
170
  # Describes an X509 certificate.
80
171
  class CertificateInfo
81
172
  include Google::Apis::Core::Hashable
@@ -243,6 +334,43 @@ module Google
243
334
  end
244
335
  end
245
336
 
337
+ # A single statement to check in a bulk call using BulkCheck. See CheckRequest
338
+ # for details about each field.
339
+ class StatementTemplate
340
+ include Google::Apis::Core::Hashable
341
+
342
+ # The relationship being asserted between the source and target. If omitted, you
343
+ # must specify a BulkCheckRequest.default_relation value to use here.
344
+ # Corresponds to the JSON property `relation`
345
+ # @return [String]
346
+ attr_accessor :relation
347
+
348
+ # Uniquely identifies an asset. A digital asset is an identifiable and
349
+ # addressable online entity that typically provides some service or content.
350
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
351
+ # Corresponds to the JSON property `source`
352
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
353
+ attr_accessor :source
354
+
355
+ # Uniquely identifies an asset. A digital asset is an identifiable and
356
+ # addressable online entity that typically provides some service or content.
357
+ # Examples of assets are websites, Android apps, Twitter feeds, and Plus Pages.
358
+ # Corresponds to the JSON property `target`
359
+ # @return [Google::Apis::DigitalassetlinksV1::Asset]
360
+ attr_accessor :target
361
+
362
+ def initialize(**args)
363
+ update!(**args)
364
+ end
365
+
366
+ # Update properties of this object
367
+ def update!(**args)
368
+ @relation = args[:relation] if args.key?(:relation)
369
+ @source = args[:source] if args.key?(:source)
370
+ @target = args[:target] if args.key?(:target)
371
+ end
372
+ end
373
+
246
374
  # Describes a web asset.
247
375
  class WebAsset
248
376
  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.4.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.3.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20200829"
25
+ REVISION = "20220122"
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,30 @@ module Google
83
101
  end
84
102
  end
85
103
 
104
+ class BulkCheckRequest
105
+ # @private
106
+ class Representation < Google::Apis::Core::JsonRepresentation
107
+ property :allow_google_internal_data_sources, as: 'allowGoogleInternalDataSources'
108
+ property :default_relation, as: 'defaultRelation'
109
+ property :default_source, as: 'defaultSource', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
110
+
111
+ property :default_target, as: 'defaultTarget', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
112
+
113
+ property :skip_cache_lookup, as: 'skipCacheLookup'
114
+ collection :statements, as: 'statements', class: Google::Apis::DigitalassetlinksV1::StatementTemplate, decorator: Google::Apis::DigitalassetlinksV1::StatementTemplate::Representation
115
+
116
+ end
117
+ end
118
+
119
+ class BulkCheckResponse
120
+ # @private
121
+ class Representation < Google::Apis::Core::JsonRepresentation
122
+ property :bulk_error_code, as: 'bulkErrorCode'
123
+ collection :check_results, as: 'checkResults', class: Google::Apis::DigitalassetlinksV1::CheckResponse, decorator: Google::Apis::DigitalassetlinksV1::CheckResponse::Representation
124
+
125
+ end
126
+ end
127
+
86
128
  class CertificateInfo
87
129
  # @private
88
130
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +164,17 @@ module Google
122
164
  end
123
165
  end
124
166
 
167
+ class StatementTemplate
168
+ # @private
169
+ class Representation < Google::Apis::Core::JsonRepresentation
170
+ property :relation, as: 'relation'
171
+ property :source, as: 'source', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
172
+
173
+ property :target, as: 'target', class: Google::Apis::DigitalassetlinksV1::Asset, decorator: Google::Apis::DigitalassetlinksV1::Asset::Representation
174
+
175
+ end
176
+ end
177
+
125
178
  class WebAsset
126
179
  # @private
127
180
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49,6 +49,39 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Send a bundle of statement checks in a single RPC to minimize latency and
53
+ # service load. Statements need not be all for the same source and/or target. We
54
+ # recommend using this method when you need to check more than one statement in
55
+ # a short period of time.
56
+ # @param [Google::Apis::DigitalassetlinksV1::BulkCheckRequest] bulk_check_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::DigitalassetlinksV1::BulkCheckResponse] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::DigitalassetlinksV1::BulkCheckResponse]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def bulk_assetlink_check(bulk_check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1/assetlinks:bulkCheck', options)
76
+ command.request_representation = Google::Apis::DigitalassetlinksV1::BulkCheckRequest::Representation
77
+ command.request_object = bulk_check_request_object
78
+ command.response_representation = Google::Apis::DigitalassetlinksV1::BulkCheckResponse::Representation
79
+ command.response_class = Google::Apis::DigitalassetlinksV1::BulkCheckResponse
80
+ command.query['fields'] = fields unless fields.nil?
81
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
52
85
  # Determines whether the specified (directional) relationship exists between the
53
86
  # specified source and target assets. The relation describes the intent of the
54
87
  # link between the two assets as claimed by the source asset. An example for
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-digitalassetlinks_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.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: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2022-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
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.3'
29
+ version: '0.4'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-digitalassetlinks_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-digitalassetlinks_v1/v0.4.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-digitalassetlinks_v1
60
+ 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.8.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-digitalassetlinks_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Digital Asset Links API V1