google-shopping-merchant-accounts-v1beta 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/client.rb +6 -1
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest/client.rb +6 -1
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accountissue_pb.rb +1 -3
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_pb.rb +3 -2
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/client.rb +6 -3
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/client.rb +6 -3
- data/lib/google/shopping/merchant/accounts/v1beta/accountservices_pb.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/client.rb +529 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/client.rb +489 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/service_stub.rb +190 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_pb.rb +53 -0
- data/lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_services_pb.rb +50 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_pb.rb +1 -1
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +1 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/client.rb +6 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/client.rb +6 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/client.rb +4 -4
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/client.rb +4 -4
- data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_pb.rb +1 -1
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/client.rb +5 -0
- data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
- data/lib/google/shopping/merchant/accounts/v1beta.rb +1 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accountissue.rb +1 -1
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb +14 -6
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accountservices.rb +34 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/autofeedsettings.rb +75 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb +5 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/shippingsettings.rb +5 -1
- data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservice.rb +4 -4
- data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.rb +3 -0
- metadata +29 -5
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/shopping/merchant/accounts/v1beta/version"
|
24
|
+
|
25
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/credentials"
|
26
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/paths"
|
27
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Shopping
|
31
|
+
module Merchant
|
32
|
+
module Accounts
|
33
|
+
module V1beta
|
34
|
+
##
|
35
|
+
# Service to support
|
36
|
+
# [autofeed](https://support.google.com/merchants/answer/7538732) setting.
|
37
|
+
#
|
38
|
+
# To load this service and instantiate a REST client:
|
39
|
+
#
|
40
|
+
# require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest"
|
41
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettingsService::Rest::Client.new
|
42
|
+
#
|
43
|
+
module AutofeedSettingsService
|
44
|
+
# Client for the REST transport
|
45
|
+
module Rest
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
55
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/common"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/shopping/merchant/accounts/v1beta/version"
|
24
|
+
|
25
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/credentials"
|
26
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/paths"
|
27
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/client"
|
28
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Shopping
|
32
|
+
module Merchant
|
33
|
+
module Accounts
|
34
|
+
module V1beta
|
35
|
+
##
|
36
|
+
# Service to support
|
37
|
+
# [autofeed](https://support.google.com/merchants/answer/7538732) setting.
|
38
|
+
#
|
39
|
+
# @example Load this service and instantiate a gRPC client
|
40
|
+
#
|
41
|
+
# require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service"
|
42
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettingsService::Client.new
|
43
|
+
#
|
44
|
+
# @example Load this service and instantiate a REST client
|
45
|
+
#
|
46
|
+
# require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest"
|
47
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettingsService::Rest::Client.new
|
48
|
+
#
|
49
|
+
module AutofeedSettingsService
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
helper_path = ::File.join __dir__, "autofeed_settings_service", "helpers.rb"
|
58
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/shopping/merchant/accounts/v1beta/autofeedsettings.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
12
|
+
|
13
|
+
|
14
|
+
descriptor_data = "\n?google/shopping/merchant/accounts/v1beta/autofeedsettings.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xd5\x01\n\x10\x41utofeedSettings\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1c\n\x0f\x65nable_products\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02\x12\x15\n\x08\x65ligible\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03:y\xea\x41v\n+merchantapi.googleapis.com/AutofeedSettings\x12#accounts/{account}/autofeedSettings*\x10\x61utofeedSettings2\x10\x61utofeedSettings\"_\n\x1aGetAutofeedSettingsRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/AutofeedSettings\"\xb1\x01\n\x1dUpdateAutofeedSettingsRequest\x12Z\n\x11\x61utofeed_settings\x18\x01 \x01(\x0b\x32:.google.shopping.merchant.accounts.v1beta.AutofeedSettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x32\xe3\x04\n\x17\x41utofeedSettingsService\x12\xdb\x01\n\x13GetAutofeedSettings\x12\x44.google.shopping.merchant.accounts.v1beta.GetAutofeedSettingsRequest\x1a:.google.shopping.merchant.accounts.v1beta.AutofeedSettings\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/accounts/v1beta/{name=accounts/*/autofeedSettings}\x12\xa0\x02\n\x16UpdateAutofeedSettings\x12G.google.shopping.merchant.accounts.v1beta.UpdateAutofeedSettingsRequest\x1a:.google.shopping.merchant.accounts.v1beta.AutofeedSettings\"\x80\x01\xda\x41\x1d\x61utofeed_settings,update_mask\x82\xd3\xe4\x93\x02Z2E/accounts/v1beta/{autofeed_settings.name=accounts/*/autofeedSettings}:\x11\x61utofeed_settings\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x97\x01\n,com.google.shopping.merchant.accounts.v1betaB\x15\x41utofeedSettingsProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
39
|
+
end
|
40
|
+
|
41
|
+
module Google
|
42
|
+
module Shopping
|
43
|
+
module Merchant
|
44
|
+
module Accounts
|
45
|
+
module V1beta
|
46
|
+
AutofeedSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.AutofeedSettings").msgclass
|
47
|
+
GetAutofeedSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.GetAutofeedSettingsRequest").msgclass
|
48
|
+
UpdateAutofeedSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.UpdateAutofeedSettingsRequest").msgclass
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/shopping/merchant/accounts/v1beta/autofeedsettings.proto for package 'google.shopping.merchant.accounts.v1beta'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2024 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/shopping/merchant/accounts/v1beta/autofeedsettings_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Merchant
|
25
|
+
module Accounts
|
26
|
+
module V1beta
|
27
|
+
module AutofeedSettingsService
|
28
|
+
# Service to support
|
29
|
+
# [autofeed](https://support.google.com/merchants/answer/7538732) setting.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include ::GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'google.shopping.merchant.accounts.v1beta.AutofeedSettingsService'
|
37
|
+
|
38
|
+
# Retrieves the autofeed settings of an account.
|
39
|
+
rpc :GetAutofeedSettings, ::Google::Shopping::Merchant::Accounts::V1beta::GetAutofeedSettingsRequest, ::Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettings
|
40
|
+
# Updates the autofeed settings of an account.
|
41
|
+
rpc :UpdateAutofeedSettings, ::Google::Shopping::Merchant::Accounts::V1beta::UpdateAutofeedSettingsRequest, ::Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettings
|
42
|
+
end
|
43
|
+
|
44
|
+
Stub = Service.rpc_stub_class
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -72,6 +72,11 @@ module Google
|
|
72
72
|
end
|
73
73
|
default_config = Client::Configuration.new parent_config
|
74
74
|
|
75
|
+
default_config.timeout = 60.0
|
76
|
+
default_config.retry_policy = {
|
77
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
78
|
+
}
|
79
|
+
|
75
80
|
default_config
|
76
81
|
end
|
77
82
|
yield @configure if block_given?
|
@@ -74,6 +74,11 @@ module Google
|
|
74
74
|
end
|
75
75
|
default_config = Client::Configuration.new parent_config
|
76
76
|
|
77
|
+
default_config.timeout = 60.0
|
78
|
+
default_config.retry_policy = {
|
79
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
80
|
+
}
|
81
|
+
|
77
82
|
default_config
|
78
83
|
end
|
79
84
|
yield @configure if block_given?
|
@@ -71,6 +71,11 @@ module Google
|
|
71
71
|
end
|
72
72
|
default_config = Client::Configuration.new parent_config
|
73
73
|
|
74
|
+
default_config.timeout = 60.0
|
75
|
+
default_config.retry_policy = {
|
76
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
77
|
+
}
|
78
|
+
|
74
79
|
default_config
|
75
80
|
end
|
76
81
|
yield @configure if block_given?
|
@@ -73,6 +73,11 @@ module Google
|
|
73
73
|
end
|
74
74
|
default_config = Client::Configuration.new parent_config
|
75
75
|
|
76
|
+
default_config.timeout = 60.0
|
77
|
+
default_config.retry_policy = {
|
78
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
79
|
+
}
|
80
|
+
|
76
81
|
default_config
|
77
82
|
end
|
78
83
|
yield @configure if block_given?
|
@@ -15,7 +15,7 @@ require 'google/type/phone_number_pb'
|
|
15
15
|
require 'google/type/postal_address_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n;google/shopping/merchant/accounts/v1beta/businessinfo.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a>google/shopping/merchant/accounts/v1beta/customerservice.proto\x1a\x45google/shopping/merchant/accounts/v1beta/phoneverificationstate.proto\x1a\x1egoogle/type/phone_number.proto\x1a google/type/postal_address.proto\"\
|
18
|
+
descriptor_data = "\n;google/shopping/merchant/accounts/v1beta/businessinfo.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a>google/shopping/merchant/accounts/v1beta/customerservice.proto\x1a\x45google/shopping/merchant/accounts/v1beta/phoneverificationstate.proto\x1a\x1egoogle/type/phone_number.proto\x1a google/type/postal_address.proto\"\xeb\x04\n\x0c\x42usinessInfo\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x35\n\x07\x61\x64\x64ress\x18\x02 \x01(\x0b\x32\x1a.google.type.PostalAddressB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x31\n\x05phone\x18\x03 \x01(\x0b\x32\x18.google.type.PhoneNumberB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12l\n\x18phone_verification_state\x18\x04 \x01(\x0e\x32@.google.shopping.merchant.accounts.v1beta.PhoneVerificationStateB\x03\xe0\x41\x03H\x02\x88\x01\x01\x12]\n\x10\x63ustomer_service\x18\x05 \x01(\x0b\x32\x39.google.shopping.merchant.accounts.v1beta.CustomerServiceB\x03\xe0\x41\x01H\x03\x88\x01\x01\x12\x35\n#korean_business_registration_number\x18\x06 \x01(\tB\x03\xe0\x41\x01H\x04\x88\x01\x01:j\xea\x41g\n\'merchantapi.googleapis.com/BusinessInfo\x12\x1f\x61\x63\x63ounts/{account}/businessInfo*\rbusinessInfos2\x0c\x62usinessInfoB\n\n\x08_addressB\x08\n\x06_phoneB\x1b\n\x19_phone_verification_stateB\x13\n\x11_customer_serviceB&\n$_korean_business_registration_number\"W\n\x16GetBusinessInfoRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'merchantapi.googleapis.com/BusinessInfo\"\xa5\x01\n\x19UpdateBusinessInfoRequest\x12R\n\rbusiness_info\x18\x01 \x01(\x0b\x32\x36.google.shopping.merchant.accounts.v1beta.BusinessInfoB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x32\xb2\x04\n\x13\x42usinessInfoService\x12\xcb\x01\n\x0fGetBusinessInfo\x12@.google.shopping.merchant.accounts.v1beta.GetBusinessInfoRequest\x1a\x36.google.shopping.merchant.accounts.v1beta.BusinessInfo\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//accounts/v1beta/{name=accounts/*/businessInfo}\x12\x83\x02\n\x12UpdateBusinessInfo\x12\x43.google.shopping.merchant.accounts.v1beta.UpdateBusinessInfoRequest\x1a\x36.google.shopping.merchant.accounts.v1beta.BusinessInfo\"p\xda\x41\x19\x62usiness_info,update_mask\x82\xd3\xe4\x93\x02N2=/accounts/v1beta/{business_info.name=accounts/*/businessInfo}:\rbusiness_info\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x93\x01\n,com.google.shopping.merchant.accounts.v1betaB\x11\x42usinessInfoProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
@@ -74,6 +74,11 @@ module Google
|
|
74
74
|
end
|
75
75
|
default_config = Client::Configuration.new parent_config
|
76
76
|
|
77
|
+
default_config.timeout = 60.0
|
78
|
+
default_config.retry_policy = {
|
79
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
80
|
+
}
|
81
|
+
|
77
82
|
default_config
|
78
83
|
end
|
79
84
|
yield @configure if block_given?
|
@@ -76,6 +76,11 @@ module Google
|
|
76
76
|
end
|
77
77
|
default_config = Client::Configuration.new parent_config
|
78
78
|
|
79
|
+
default_config.timeout = 60.0
|
80
|
+
default_config.retry_policy = {
|
81
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
82
|
+
}
|
83
|
+
|
79
84
|
default_config
|
80
85
|
end
|
81
86
|
yield @configure if block_given?
|
@@ -71,6 +71,11 @@ module Google
|
|
71
71
|
end
|
72
72
|
default_config = Client::Configuration.new parent_config
|
73
73
|
|
74
|
+
default_config.timeout = 60.0
|
75
|
+
default_config.retry_policy = {
|
76
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
77
|
+
}
|
78
|
+
|
74
79
|
default_config
|
75
80
|
end
|
76
81
|
yield @configure if block_given?
|
@@ -73,6 +73,11 @@ module Google
|
|
73
73
|
end
|
74
74
|
default_config = Client::Configuration.new parent_config
|
75
75
|
|
76
|
+
default_config.timeout = 60.0
|
77
|
+
default_config.retry_policy = {
|
78
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
79
|
+
}
|
80
|
+
|
76
81
|
default_config
|
77
82
|
end
|
78
83
|
yield @configure if block_given?
|
@@ -81,6 +81,11 @@ module Google
|
|
81
81
|
end
|
82
82
|
default_config = Client::Configuration.new parent_config
|
83
83
|
|
84
|
+
default_config.timeout = 60.0
|
85
|
+
default_config.retry_policy = {
|
86
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
87
|
+
}
|
88
|
+
|
84
89
|
default_config
|
85
90
|
end
|
86
91
|
yield @configure if block_given?
|
@@ -83,6 +83,11 @@ module Google
|
|
83
83
|
end
|
84
84
|
default_config = Client::Configuration.new parent_config
|
85
85
|
|
86
|
+
default_config.timeout = 60.0
|
87
|
+
default_config.retry_policy = {
|
88
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
89
|
+
}
|
90
|
+
|
86
91
|
default_config
|
87
92
|
end
|
88
93
|
yield @configure if block_given?
|
@@ -75,6 +75,11 @@ module Google
|
|
75
75
|
end
|
76
76
|
default_config = Client::Configuration.new parent_config
|
77
77
|
|
78
|
+
default_config.timeout = 60.0
|
79
|
+
default_config.retry_policy = {
|
80
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
81
|
+
}
|
82
|
+
|
78
83
|
default_config
|
79
84
|
end
|
80
85
|
yield @configure if block_given?
|
@@ -77,6 +77,11 @@ module Google
|
|
77
77
|
end
|
78
78
|
default_config = Client::Configuration.new parent_config
|
79
79
|
|
80
|
+
default_config.timeout = 60.0
|
81
|
+
default_config.retry_policy = {
|
82
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
83
|
+
}
|
84
|
+
|
80
85
|
default_config
|
81
86
|
end
|
82
87
|
yield @configure if block_given?
|
@@ -20,6 +20,7 @@ require "google/shopping/merchant/accounts/v1beta/account_tax_service/rest"
|
|
20
20
|
require "google/shopping/merchant/accounts/v1beta/account_issue_service/rest"
|
21
21
|
require "google/shopping/merchant/accounts/v1beta/user_service/rest"
|
22
22
|
require "google/shopping/merchant/accounts/v1beta/accounts_service/rest"
|
23
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest"
|
23
24
|
require "google/shopping/merchant/accounts/v1beta/business_identity_service/rest"
|
24
25
|
require "google/shopping/merchant/accounts/v1beta/business_info_service/rest"
|
25
26
|
require "google/shopping/merchant/accounts/v1beta/email_preferences_service/rest"
|
data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/client.rb
CHANGED
@@ -71,6 +71,11 @@ module Google
|
|
71
71
|
end
|
72
72
|
default_config = Client::Configuration.new parent_config
|
73
73
|
|
74
|
+
default_config.timeout = 60.0
|
75
|
+
default_config.retry_policy = {
|
76
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
77
|
+
}
|
78
|
+
|
74
79
|
default_config
|
75
80
|
end
|
76
81
|
yield @configure if block_given?
|
@@ -185,6 +190,7 @@ module Google
|
|
185
190
|
# @param name [::String]
|
186
191
|
# Required. The resource name of the terms of service version.
|
187
192
|
# Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
|
193
|
+
# The identifier format is: `{TermsOfServiceKind}-{country}`
|
188
194
|
#
|
189
195
|
# @yield [response, operation] Access the result along with the RPC operation
|
190
196
|
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceAgreementState]
|
@@ -73,6 +73,11 @@ module Google
|
|
73
73
|
end
|
74
74
|
default_config = Client::Configuration.new parent_config
|
75
75
|
|
76
|
+
default_config.timeout = 60.0
|
77
|
+
default_config.retry_policy = {
|
78
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
79
|
+
}
|
80
|
+
|
76
81
|
default_config
|
77
82
|
end
|
78
83
|
yield @configure if block_given?
|
@@ -178,6 +183,7 @@ module Google
|
|
178
183
|
# @param name [::String]
|
179
184
|
# Required. The resource name of the terms of service version.
|
180
185
|
# Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`
|
186
|
+
# The identifier format is: `{TermsOfServiceKind}-{country}`
|
181
187
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
182
188
|
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceAgreementState]
|
183
189
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -276,11 +276,11 @@ module Google
|
|
276
276
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
277
277
|
#
|
278
278
|
# @param region_code [::String]
|
279
|
-
# Region code as defined by [CLDR](https://cldr.unicode.org/). This
|
280
|
-
# a country when the ToS applies specifically to that country or
|
281
|
-
# applies globally.
|
279
|
+
# Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This
|
280
|
+
# is either a country when the ToS applies specifically to that country or
|
281
|
+
# 001 when it applies globally.
|
282
282
|
# @param kind [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceKind]
|
283
|
-
# The Kind this terms of service version applies to.
|
283
|
+
# Required. The Kind this terms of service version applies to.
|
284
284
|
#
|
285
285
|
# @yield [response, operation] Access the result along with the RPC operation
|
286
286
|
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfService]
|
@@ -262,11 +262,11 @@ module Google
|
|
262
262
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
263
263
|
#
|
264
264
|
# @param region_code [::String]
|
265
|
-
# Region code as defined by [CLDR](https://cldr.unicode.org/). This
|
266
|
-
# a country when the ToS applies specifically to that country or
|
267
|
-
# applies globally.
|
265
|
+
# Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This
|
266
|
+
# is either a country when the ToS applies specifically to that country or
|
267
|
+
# 001 when it applies globally.
|
268
268
|
# @param kind [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceKind]
|
269
|
-
# The Kind this terms of service version applies to.
|
269
|
+
# Required. The Kind this terms of service version applies to.
|
270
270
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
271
271
|
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1beta::TermsOfService]
|
272
272
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -12,7 +12,7 @@ require 'google/protobuf/empty_pb'
|
|
12
12
|
require 'google/shopping/merchant/accounts/v1beta/termsofservicekind_pb'
|
13
13
|
|
14
14
|
|
15
|
-
descriptor_data = "\n=google/shopping/merchant/accounts/v1beta/termsofservice.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x41google/shopping/merchant/accounts/v1beta/termsofservicekind.proto\"\xb2\x02\n\x0eTermsOfService\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x08\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12J\n\x04kind\x18\x03 \x01(\x0e\x32<.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind\x12\x15\n\x08\x66ile_uri\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08\x65xternal\x18\x05 \x01(\x08:H\xea\x41\x45\n)merchantapi.googleapis.com/TermsOfService\x12\x18termsOfService/{version}B\x0b\n\t_file_uri\"[\n\x18GetTermsOfServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\"\
|
15
|
+
descriptor_data = "\n=google/shopping/merchant/accounts/v1beta/termsofservice.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x41google/shopping/merchant/accounts/v1beta/termsofservicekind.proto\"\xb2\x02\n\x0eTermsOfService\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x08\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12\x13\n\x0bregion_code\x18\x02 \x01(\t\x12J\n\x04kind\x18\x03 \x01(\x0e\x32<.google.shopping.merchant.accounts.v1beta.TermsOfServiceKind\x12\x15\n\x08\x66ile_uri\x18\x04 \x01(\tH\x00\x88\x01\x01\x12\x10\n\x08\x65xternal\x18\x05 \x01(\x08:H\xea\x41\x45\n)merchantapi.googleapis.com/TermsOfService\x12\x18termsOfService/{version}B\x0b\n\t_file_uri\"[\n\x18GetTermsOfServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\"\x90\x01\n#RetrieveLatestTermsOfServiceRequest\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x04kind\x18\x02 \x01(\x0e\x32<.google.shopping.merchant.accounts.v1beta.TermsOfServiceKindB\x03\xe0\x41\x02\"\xb5\x01\n\x1b\x41\x63\x63\x65ptTermsOfServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12;\n\x07\x61\x63\x63ount\x18\x02 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x18\n\x0bregion_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x32\xc7\x05\n\x15TermsOfServiceService\x12\xca\x01\n\x11GetTermsOfService\x12\x42.google.shopping.merchant.accounts.v1beta.GetTermsOfServiceRequest\x1a\x38.google.shopping.merchant.accounts.v1beta.TermsOfService\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/accounts/v1beta/{name=termsOfService/*}\x12\xdf\x01\n\x1cRetrieveLatestTermsOfService\x12M.google.shopping.merchant.accounts.v1beta.RetrieveLatestTermsOfServiceRequest\x1a\x38.google.shopping.merchant.accounts.v1beta.TermsOfService\"6\x82\xd3\xe4\x93\x02\x30\x12./accounts/v1beta/termsOfService:retrieveLatest\x12\xb5\x01\n\x14\x41\x63\x63\x65ptTermsOfService\x12\x45.google.shopping.merchant.accounts.v1beta.AcceptTermsOfServiceRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//accounts/v1beta/{name=termsOfService/*}:accept\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x95\x01\n,com.google.shopping.merchant.accounts.v1betaB\x13TermsOfServiceProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -71,6 +71,11 @@ module Google
|
|
71
71
|
end
|
72
72
|
default_config = Client::Configuration.new parent_config
|
73
73
|
|
74
|
+
default_config.timeout = 60.0
|
75
|
+
default_config.retry_policy = {
|
76
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
77
|
+
}
|
78
|
+
|
74
79
|
default_config
|
75
80
|
end
|
76
81
|
yield @configure if block_given?
|
@@ -73,6 +73,11 @@ module Google
|
|
73
73
|
end
|
74
74
|
default_config = Client::Configuration.new parent_config
|
75
75
|
|
76
|
+
default_config.timeout = 60.0
|
77
|
+
default_config.retry_policy = {
|
78
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
79
|
+
}
|
80
|
+
|
76
81
|
default_config
|
77
82
|
end
|
78
83
|
yield @configure if block_given?
|
@@ -20,6 +20,7 @@ require "google/shopping/merchant/accounts/v1beta/account_tax_service"
|
|
20
20
|
require "google/shopping/merchant/accounts/v1beta/account_issue_service"
|
21
21
|
require "google/shopping/merchant/accounts/v1beta/user_service"
|
22
22
|
require "google/shopping/merchant/accounts/v1beta/accounts_service"
|
23
|
+
require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service"
|
23
24
|
require "google/shopping/merchant/accounts/v1beta/business_identity_service"
|
24
25
|
require "google/shopping/merchant/accounts/v1beta/business_info_service"
|
25
26
|
require "google/shopping/merchant/accounts/v1beta/email_preferences_service"
|
@@ -114,7 +114,7 @@ module Google
|
|
114
114
|
# such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be
|
115
115
|
# used.
|
116
116
|
# @!attribute [rw] time_zone
|
117
|
-
# @return [::
|
117
|
+
# @return [::String]
|
118
118
|
# Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
|
119
119
|
# localize times in human-readable fields. For example 'America/Los_Angeles'.
|
120
120
|
# If not set, 'America/Los_Angeles' will be used.
|
@@ -83,9 +83,12 @@ module Google
|
|
83
83
|
# account creation.
|
84
84
|
# @!attribute [rw] service
|
85
85
|
# @return [::Array<::Google::Shopping::Merchant::Accounts::V1beta::CreateAndConfigureAccountRequest::AddAccountService>]
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
86
|
+
# Required. An account service between the account to be created and the
|
87
|
+
# provider account is initialized as part of the creation. At least one such
|
88
|
+
# service needs to be provided. Currently exactly one of these needs to be
|
89
|
+
# `account_aggregation`, which means you can only create sub accounts, not
|
90
|
+
# standalone account through this method. Additional `account_management` or
|
91
|
+
# `product_management` services may be provided.
|
89
92
|
class CreateAndConfigureAccountRequest
|
90
93
|
include ::Google::Protobuf::MessageExts
|
91
94
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -93,7 +96,10 @@ module Google
|
|
93
96
|
# Reference to a Terms of Service resource.
|
94
97
|
# @!attribute [rw] name
|
95
98
|
# @return [::String]
|
96
|
-
# Required. The resource name of the terms of service version
|
99
|
+
# Required. The resource name of the terms of service version in the format
|
100
|
+
# `termsOfService/{version}`. To retrieve the latest version, use the
|
101
|
+
# [termsOfService.retrieveLatest](/merchant/api/reference/rest/accounts_v1beta/termsOfService/retrieveLatest)
|
102
|
+
# method.
|
97
103
|
# @!attribute [rw] region_code
|
98
104
|
# @return [::String]
|
99
105
|
# Required. Region code as defined by [CLDR](https://cldr.unicode.org/).
|
@@ -107,8 +113,10 @@ module Google
|
|
107
113
|
# Additional instructions to add account services during creation of the
|
108
114
|
# account.
|
109
115
|
# @!attribute [rw] account_aggregation
|
110
|
-
# @return [::Google::
|
111
|
-
# The provider is an
|
116
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::AccountAggregation]
|
117
|
+
# The provider is an
|
118
|
+
# [aggregator](https://support.google.com/merchants/answer/188487) for
|
119
|
+
# the account. Payload for service type Account Aggregation.
|
112
120
|
# @!attribute [rw] provider
|
113
121
|
# @return [::String]
|
114
122
|
# Optional. The provider of the service.
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Shopping
|
22
|
+
module Merchant
|
23
|
+
module Accounts
|
24
|
+
module V1beta
|
25
|
+
# `AccountAggregation` payload.
|
26
|
+
class AccountAggregation
|
27
|
+
include ::Google::Protobuf::MessageExts
|
28
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|