google-apis-content_v2_1 0.5.0 → 0.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 368205831e583a2bc3cd66de5ca10df064c3f5503df0d5462d80350c92b103b1
|
4
|
+
data.tar.gz: beede39b009ceb4bb31094ca6dce8b82b88c46cd791a3e5c34dbf68dd4545556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 878451363f1f7d094aacf63de5294b6b31efd82c79f06a7b7846a258614f6237c7db91590bad845ace3e38761e36702e071eb90daf5107200cd857562c6cc323
|
7
|
+
data.tar.gz: 3fe041e56f5d484dfa11b4f78cd5efcbedff555d1d173dd69baf10a254b5a635ca29fca8126800cc93b032dc32fbf4d94136ae84bf804c5d35535e5b785469df
|
data/CHANGELOG.md
CHANGED
@@ -244,6 +244,38 @@ module Google
|
|
244
244
|
end
|
245
245
|
end
|
246
246
|
|
247
|
+
# Credentials allowing Google to call a partner's API on behalf of a merchant.
|
248
|
+
class AccountCredentials
|
249
|
+
include Google::Apis::Core::Hashable
|
250
|
+
|
251
|
+
# An OAuth access token.
|
252
|
+
# Corresponds to the JSON property `accessToken`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :access_token
|
255
|
+
|
256
|
+
# The amount of time, in seconds, after which the access token is no longer
|
257
|
+
# valid.
|
258
|
+
# Corresponds to the JSON property `expiresIn`
|
259
|
+
# @return [Fixnum]
|
260
|
+
attr_accessor :expires_in
|
261
|
+
|
262
|
+
# Indicates to Google how Google should use these OAuth tokens.
|
263
|
+
# Corresponds to the JSON property `purpose`
|
264
|
+
# @return [String]
|
265
|
+
attr_accessor :purpose
|
266
|
+
|
267
|
+
def initialize(**args)
|
268
|
+
update!(**args)
|
269
|
+
end
|
270
|
+
|
271
|
+
# Update properties of this object
|
272
|
+
def update!(**args)
|
273
|
+
@access_token = args[:access_token] if args.key?(:access_token)
|
274
|
+
@expires_in = args[:expires_in] if args.key?(:expires_in)
|
275
|
+
@purpose = args[:purpose] if args.key?(:purpose)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
247
279
|
#
|
248
280
|
class AccountCustomerService
|
249
281
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContentV2_1
|
18
18
|
# Version of the google-apis-content_v2_1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.1.2"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210226"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class AccountCredentials
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class AccountCustomerService
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -2225,6 +2231,15 @@ module Google
|
|
2225
2231
|
end
|
2226
2232
|
end
|
2227
2233
|
|
2234
|
+
class AccountCredentials
|
2235
|
+
# @private
|
2236
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2237
|
+
property :access_token, as: 'accessToken'
|
2238
|
+
property :expires_in, :numeric_string => true, as: 'expiresIn'
|
2239
|
+
property :purpose, as: 'purpose'
|
2240
|
+
end
|
2241
|
+
end
|
2242
|
+
|
2228
2243
|
class AccountCustomerService
|
2229
2244
|
# @private
|
2230
2245
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -453,6 +453,40 @@ module Google
|
|
453
453
|
execute_or_queue_command(command, &block)
|
454
454
|
end
|
455
455
|
|
456
|
+
# Uploads credentials for the Merchant Center account. If credentials already
|
457
|
+
# exist for this Merchant Center account and purpose, this method updates them.
|
458
|
+
# @param [Fixnum] account_id
|
459
|
+
# Required. The merchant id of the account these credentials belong to.
|
460
|
+
# @param [Google::Apis::ContentV2_1::AccountCredentials] account_credentials_object
|
461
|
+
# @param [String] fields
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
463
|
+
# @param [String] quota_user
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
467
|
+
# Request-specific options
|
468
|
+
#
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
470
|
+
# @yieldparam result [Google::Apis::ContentV2_1::AccountCredentials] parsed result object
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
472
|
+
#
|
473
|
+
# @return [Google::Apis::ContentV2_1::AccountCredentials]
|
474
|
+
#
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
478
|
+
def create_account_credential(account_id, account_credentials_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
479
|
+
command = make_simple_command(:post, 'content/v2.1/accounts/{accountId}/credentials', options)
|
480
|
+
command.request_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
|
481
|
+
command.request_object = account_credentials_object
|
482
|
+
command.response_representation = Google::Apis::ContentV2_1::AccountCredentials::Representation
|
483
|
+
command.response_class = Google::Apis::ContentV2_1::AccountCredentials
|
484
|
+
command.params['accountId'] = account_id unless account_id.nil?
|
485
|
+
command.query['fields'] = fields unless fields.nil?
|
486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
487
|
+
execute_or_queue_command(command, &block)
|
488
|
+
end
|
489
|
+
|
456
490
|
# Creates a new label, not assigned to any account.
|
457
491
|
# @param [Fixnum] account_id
|
458
492
|
# Required. The id of the account this label belongs to.
|
@@ -1014,7 +1048,8 @@ module Google
|
|
1014
1048
|
end
|
1015
1049
|
|
1016
1050
|
# Onboards BoG in your Merchant Center account. By using this method, you agree
|
1017
|
-
# to the Terms of Service.
|
1051
|
+
# to the [Terms of Service](https://merchants.google.com/mc/termsofservice/
|
1052
|
+
# transactions/US/latest).
|
1018
1053
|
# @param [Fixnum] merchant_id
|
1019
1054
|
# Required. The ID of the account.
|
1020
1055
|
# @param [String] region_code
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-content_v2_1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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-03-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.6.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
65
|
+
version: '2.5'
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
72
|
+
rubygems_version: 3.2.13
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Simple REST client for Content API for Shopping V2_1
|