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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/client.rb +6 -1
  4. data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest/client.rb +6 -1
  5. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/client.rb +5 -0
  6. data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest/client.rb +5 -0
  7. data/lib/google/shopping/merchant/accounts/v1beta/accountissue_pb.rb +1 -3
  8. data/lib/google/shopping/merchant/accounts/v1beta/accounts_pb.rb +3 -2
  9. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/client.rb +6 -3
  10. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/client.rb +6 -3
  11. data/lib/google/shopping/merchant/accounts/v1beta/accountservices_pb.rb +49 -0
  12. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/client.rb +529 -0
  13. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/credentials.rb +49 -0
  14. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/paths.rb +49 -0
  15. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/client.rb +489 -0
  16. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/service_stub.rb +190 -0
  17. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest.rb +55 -0
  18. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service.rb +58 -0
  19. data/lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_pb.rb +53 -0
  20. data/lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_services_pb.rb +50 -0
  21. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/client.rb +5 -0
  22. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/client.rb +5 -0
  23. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/client.rb +5 -0
  24. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/client.rb +5 -0
  25. data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_pb.rb +1 -1
  26. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/client.rb +5 -0
  27. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/client.rb +5 -0
  28. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/client.rb +5 -0
  29. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/client.rb +5 -0
  30. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/client.rb +5 -0
  31. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/client.rb +5 -0
  32. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/client.rb +5 -0
  33. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/client.rb +5 -0
  34. data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +1 -0
  35. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/client.rb +6 -0
  36. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/client.rb +6 -0
  37. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/client.rb +4 -4
  38. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/client.rb +4 -4
  39. data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_pb.rb +1 -1
  40. data/lib/google/shopping/merchant/accounts/v1beta/user_service/client.rb +5 -0
  41. data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/client.rb +5 -0
  42. data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
  43. data/lib/google/shopping/merchant/accounts/v1beta.rb +1 -0
  44. data/proto_docs/google/shopping/merchant/accounts/v1beta/accountissue.rb +1 -1
  45. data/proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb +14 -6
  46. data/proto_docs/google/shopping/merchant/accounts/v1beta/accountservices.rb +34 -0
  47. data/proto_docs/google/shopping/merchant/accounts/v1beta/autofeedsettings.rb +75 -0
  48. data/proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb +5 -0
  49. data/proto_docs/google/shopping/merchant/accounts/v1beta/shippingsettings.rb +5 -1
  50. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservice.rb +4 -4
  51. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.rb +3 -0
  52. metadata +29 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1851b27b109cacb3db2f4e39386dfab710c2e860bd08a6eb756bc3dd9fb46793
4
- data.tar.gz: 8da59c34d74ac679d0daf377135fcae83d9ce79ddb85aa680fa56b08f47308ef
3
+ metadata.gz: 030efbc71e0e60fcb89d42ab349ea79c597e4a13c2ce3f2d7bf1d4d57148c450
4
+ data.tar.gz: b601035d8936a82f5022dbce8a731eddea3bb4b2107aba40ae60474625b9516c
5
5
  SHA512:
6
- metadata.gz: feb0230e8d1f114073ee08b70073cbc497feb6a2c6d16adb4332eba02f38cbea4f3c1d93ed27b6ab642d10bde8881080f0b5efa460c167f4e35c153a9e3eecbd
7
- data.tar.gz: 2f920b3d3e1c98aa087c09d555e64b59f9ffa48b619f790e8901c9f57c571e6ed5dae7ab56d21e34a79e0f1918621c20193f597e68660b1089736b73d48d33dd
6
+ metadata.gz: fbff33afc310d4b7a783db6e4804fa14e10195da7b06624ad7f3f18bc92f46ee4d74d1ab7a62b0de1a84b288c01b1240eb70cb89edc493c997f026b1d20606ed
7
+ data.tar.gz: 8692502495031d8ee71768a040dc5ff655a3833b9368cdae8335eb6e71188f86e4e9f26c7d44639276f1abc0aa0138904d89bf1a799693a7daadd22d5099b466
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Ruby Client for the Merchant V1BETA API
2
2
 
3
- Programmatically manage your Merchant Center accounts.
3
+ Programmatically manage your Merchant Center Accounts.
4
4
 
5
+ Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables you to programmatically manage your accounts. Conversions Sub-API: Enables you to programmatically manage your conversion sources for a merchant account. Datasources Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API: This bundle enables you to programmatically manage your local and regional inventories. Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically manage your notification subscriptions. Products Sub-API: This bundle enables you to programmatically manage your products. Promotions Sub-API: This bundle enables you to programmatically manage your promotions for products. Quota Sub-API: This bundle enables you to list your quotas for all APIs you are using. Reports Sub-API: This bundle enables you to programmatically retrieve reports and insights about products, their performance and their competitive environment.
5
6
 
6
7
  https://github.com/googleapis/google-cloud-ruby
7
8
 
@@ -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?
@@ -200,7 +205,7 @@ module Google
200
205
  # given language. The format is [BCP-47](https://tools.ietf.org/html/bcp47),
201
206
  # such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be
202
207
  # used.
203
- # @param time_zone [::Google::Type::TimeZone, ::Hash]
208
+ # @param time_zone [::String]
204
209
  # Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
205
210
  # localize times in human-readable fields. For example 'America/Los_Angeles'.
206
211
  # If not set, 'America/Los_Angeles' will be used.
@@ -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?
@@ -193,7 +198,7 @@ module Google
193
198
  # given language. The format is [BCP-47](https://tools.ietf.org/html/bcp47),
194
199
  # such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be
195
200
  # used.
196
- # @param time_zone [::Google::Type::TimeZone, ::Hash]
201
+ # @param time_zone [::String]
197
202
  # Optional. The [IANA](https://www.iana.org/time-zones) timezone used to
198
203
  # localize times in human-readable fields. For example 'America/Los_Angeles'.
199
204
  # If not set, 'America/Los_Angeles' will be used.
@@ -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?
@@ -9,10 +9,9 @@ require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
11
  require 'google/shopping/type/types_pb'
12
- require 'google/type/datetime_pb'
13
12
 
14
13
 
15
- descriptor_data = "\n;google/shopping/merchant/accounts/v1beta/accountissue.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/shopping/type/types.proto\x1a\x1agoogle/type/datetime.proto\"\xb7\x06\n\x0c\x41\x63\x63ountIssue\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\r\n\x05title\x18\x02 \x01(\t\x12Q\n\x08severity\x18\x03 \x01(\x0e\x32?.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity\x12i\n\x15impacted_destinations\x18\x04 \x03(\x0b\x32J.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination\x12\x0e\n\x06\x64\x65tail\x18\x05 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x06 \x01(\t\x1a\xde\x02\n\x13ImpactedDestination\x12[\n\x11reporting_context\x18\x01 \x01(\x0e\x32;.google.shopping.type.ReportingContext.ReportingContextEnumH\x00\x88\x01\x01\x12\x62\n\x07impacts\x18\x02 \x03(\x0b\x32Q.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact\x1ap\n\x06Impact\x12\x13\n\x0bregion_code\x18\x01 \x01(\t\x12Q\n\x08severity\x18\x02 \x01(\x0e\x32?.google.shopping.merchant.accounts.v1beta.AccountIssue.SeverityB\x14\n\x12_reporting_context\"M\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0e\n\nSUGGESTION\x10\x03:l\xea\x41i\n\'merchantapi.googleapis.com/AccountIssue\x12!accounts/{account}/issues/{issue}*\raccountIssues2\x0c\x61\x63\x63ountIssue\"\xd2\x01\n\x18ListAccountIssuesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12-\n\ttime_zone\x18\x05 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x01\"\x84\x01\n\x19ListAccountIssuesResponse\x12N\n\x0e\x61\x63\x63ount_issues\x18\x01 \x03(\x0b\x32\x36.google.shopping.merchant.accounts.v1beta.AccountIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xbb\x02\n\x13\x41\x63\x63ountIssueService\x12\xda\x01\n\x11ListAccountIssues\x12\x42.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest\x1a\x43.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/accounts/v1beta/{parent=accounts/*}/issues\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x93\x01\n,com.google.shopping.merchant.accounts.v1betaB\x11\x41\x63\x63ountIssueProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
14
+ descriptor_data = "\n;google/shopping/merchant/accounts/v1beta/accountissue.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/shopping/type/types.proto\"\xb7\x06\n\x0c\x41\x63\x63ountIssue\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\r\n\x05title\x18\x02 \x01(\t\x12Q\n\x08severity\x18\x03 \x01(\x0e\x32?.google.shopping.merchant.accounts.v1beta.AccountIssue.Severity\x12i\n\x15impacted_destinations\x18\x04 \x03(\x0b\x32J.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination\x12\x0e\n\x06\x64\x65tail\x18\x05 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x06 \x01(\t\x1a\xde\x02\n\x13ImpactedDestination\x12[\n\x11reporting_context\x18\x01 \x01(\x0e\x32;.google.shopping.type.ReportingContext.ReportingContextEnumH\x00\x88\x01\x01\x12\x62\n\x07impacts\x18\x02 \x03(\x0b\x32Q.google.shopping.merchant.accounts.v1beta.AccountIssue.ImpactedDestination.Impact\x1ap\n\x06Impact\x12\x13\n\x0bregion_code\x18\x01 \x01(\t\x12Q\n\x08severity\x18\x02 \x01(\x0e\x32?.google.shopping.merchant.accounts.v1beta.AccountIssue.SeverityB\x14\n\x12_reporting_context\"M\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0e\n\nSUGGESTION\x10\x03:l\xea\x41i\n\'merchantapi.googleapis.com/AccountIssue\x12!accounts/{account}/issues/{issue}*\raccountIssues2\x0c\x61\x63\x63ountIssue\"\xbb\x01\n\x18ListAccountIssuesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rlanguage_code\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\ttime_zone\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x84\x01\n\x19ListAccountIssuesResponse\x12N\n\x0e\x61\x63\x63ount_issues\x18\x01 \x03(\x0b\x32\x36.google.shopping.merchant.accounts.v1beta.AccountIssue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xbb\x02\n\x13\x41\x63\x63ountIssueService\x12\xda\x01\n\x11ListAccountIssues\x12\x42.google.shopping.merchant.accounts.v1beta.ListAccountIssuesRequest\x1a\x43.google.shopping.merchant.accounts.v1beta.ListAccountIssuesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/accounts/v1beta/{parent=accounts/*}/issues\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x93\x01\n,com.google.shopping.merchant.accounts.v1betaB\x11\x41\x63\x63ountIssueProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
16
15
 
17
16
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
17
 
@@ -27,7 +26,6 @@ rescue TypeError
27
26
  file = pool.add_serialized_file(serialized)
28
27
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
28
  imports = [
30
- ["google.type.TimeZone", "google/type/datetime.proto"],
31
29
  ]
32
30
  imports.each do |type_name, expected_filename|
33
31
  import_file = pool.lookup(type_name).file_descriptor
@@ -10,11 +10,12 @@ require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
11
  require 'google/protobuf/empty_pb'
12
12
  require 'google/protobuf/field_mask_pb'
13
+ require 'google/shopping/merchant/accounts/v1beta/accountservices_pb'
13
14
  require 'google/shopping/merchant/accounts/v1beta/user_pb'
14
15
  require 'google/type/datetime_pb'
15
16
 
16
17
 
17
- descriptor_data = "\n7google/shopping/merchant/accounts/v1beta/accounts.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 google/protobuf/field_mask.proto\x1a\x33google/shopping/merchant/accounts/v1beta/user.proto\x1a\x1agoogle/type/datetime.proto\"\x8a\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\naccount_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x61\x63\x63ount_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\radult_content\x18\x04 \x01(\x08\x12\x19\n\x0ctest_account\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12-\n\ttime_zone\x18\x06 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x07 \x01(\tB\x03\xe0\x41\x02:;\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}\"M\n\x11GetAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\"\xf9\x05\n CreateAndConfigureAccountRequest\x12G\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.AccountB\x03\xe0\x41\x02\x12O\n\x05users\x18\x02 \x03(\x0b\x32;.google.shopping.merchant.accounts.v1beta.CreateUserRequestB\x03\xe0\x41\x01\x12\x8a\x01\n\x17\x61\x63\x63\x65pt_terms_of_service\x18\x03 \x01(\x0b\x32_.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfServiceB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12r\n\x07service\x18\x04 \x03(\x0b\x32\\.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountServiceB\x03\xe0\x41\x01\x1aq\n\x14\x41\x63\x63\x65ptTermsOfService\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12\x18\n\x0bregion_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1a\xaa\x01\n\x11\x41\x64\x64\x41\x63\x63ountService\x12\x35\n\x13\x61\x63\x63ount_aggregation\x18\x02 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x41\n\x08provider\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"merchantapi.googleapis.com/AccountH\x01\x88\x01\x01\x42\x0e\n\x0cservice_typeB\x0b\n\t_providerB\x1a\n\x18_accept_terms_of_service\"P\n\x14\x44\x65leteAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\"\x95\x01\n\x14UpdateAccountRequest\x12G\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"[\n\x13ListAccountsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"t\n\x14ListAccountsResponse\x12\x43\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x87\x01\n\x16ListSubAccountsRequest\x12<\n\x08provider\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"w\n\x17ListSubAccountsResponse\x12\x43\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xee\t\n\x0f\x41\x63\x63ountsService\x12\xaf\x01\n\nGetAccount\x12;.google.shopping.merchant.accounts.v1beta.GetAccountRequest\x1a\x31.google.shopping.merchant.accounts.v1beta.Account\"1\xda\x41\x04name\x82\xd3\xe4\x93\x02$\x12\"/accounts/v1beta/{name=accounts/*}\x12\xd3\x01\n\x19\x43reateAndConfigureAccount\x12J.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest\x1a\x31.google.shopping.merchant.accounts.v1beta.Account\"7\x82\xd3\xe4\x93\x02\x31\",/accounts/v1beta/accounts:createAndConfigure:\x01*\x12\x9a\x01\n\rDeleteAccount\x12>.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\"1\xda\x41\x04name\x82\xd3\xe4\x93\x02$*\"/accounts/v1beta/{name=accounts/*}\x12\xd5\x01\n\rUpdateAccount\x12>.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest\x1a\x31.google.shopping.merchant.accounts.v1beta.Account\"Q\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02\x35\x32*/accounts/v1beta/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xb0\x01\n\x0cListAccounts\x12=.google.shopping.merchant.accounts.v1beta.ListAccountsRequest\x1a>.google.shopping.merchant.accounts.v1beta.ListAccountsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/accounts/v1beta/accounts\x12\xe1\x01\n\x0fListSubAccounts\x12@.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest\x1a\x41.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse\"I\xda\x41\x08provider\x82\xd3\xe4\x93\x02\x38\x12\x36/accounts/v1beta/{provider=accounts/*}:listSubaccounts\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x8f\x01\n,com.google.shopping.merchant.accounts.v1betaB\rAccountsProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
18
+ descriptor_data = "\n7google/shopping/merchant/accounts/v1beta/accounts.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 google/protobuf/field_mask.proto\x1a>google/shopping/merchant/accounts/v1beta/accountservices.proto\x1a\x33google/shopping/merchant/accounts/v1beta/user.proto\x1a\x1agoogle/type/datetime.proto\"\x8a\x02\n\x07\x41\x63\x63ount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\naccount_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x61\x63\x63ount_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\radult_content\x18\x04 \x01(\x08\x12\x19\n\x0ctest_account\x18\x05 \x01(\x08\x42\x03\xe0\x41\x03\x12-\n\ttime_zone\x18\x06 \x01(\x0b\x32\x15.google.type.TimeZoneB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x07 \x01(\tB\x03\xe0\x41\x02:;\xea\x41\x38\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}\"M\n\x11GetAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\"\x9f\x06\n CreateAndConfigureAccountRequest\x12G\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.AccountB\x03\xe0\x41\x02\x12O\n\x05users\x18\x02 \x03(\x0b\x32;.google.shopping.merchant.accounts.v1beta.CreateUserRequestB\x03\xe0\x41\x01\x12\x8a\x01\n\x17\x61\x63\x63\x65pt_terms_of_service\x18\x03 \x01(\x0b\x32_.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfServiceB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12r\n\x07service\x18\x04 \x03(\x0b\x32\\.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountServiceB\x03\xe0\x41\x02\x1aq\n\x14\x41\x63\x63\x65ptTermsOfService\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/TermsOfService\x12\x18\n\x0bregion_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x1a\xd0\x01\n\x11\x41\x64\x64\x41\x63\x63ountService\x12[\n\x13\x61\x63\x63ount_aggregation\x18g \x01(\x0b\x32<.google.shopping.merchant.accounts.v1beta.AccountAggregationH\x00\x12\x41\n\x08provider\x18\x01 \x01(\tB*\xe0\x41\x01\xfa\x41$\n\"merchantapi.googleapis.com/AccountH\x01\x88\x01\x01\x42\x0e\n\x0cservice_typeB\x0b\n\t_providerB\x1a\n\x18_accept_terms_of_service\"P\n\x14\x44\x65leteAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\"\x95\x01\n\x14UpdateAccountRequest\x12G\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"[\n\x13ListAccountsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"t\n\x14ListAccountsResponse\x12\x43\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x87\x01\n\x16ListSubAccountsRequest\x12<\n\x08provider\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"w\n\x17ListSubAccountsResponse\x12\x43\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xee\t\n\x0f\x41\x63\x63ountsService\x12\xaf\x01\n\nGetAccount\x12;.google.shopping.merchant.accounts.v1beta.GetAccountRequest\x1a\x31.google.shopping.merchant.accounts.v1beta.Account\"1\xda\x41\x04name\x82\xd3\xe4\x93\x02$\x12\"/accounts/v1beta/{name=accounts/*}\x12\xd3\x01\n\x19\x43reateAndConfigureAccount\x12J.google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest\x1a\x31.google.shopping.merchant.accounts.v1beta.Account\"7\x82\xd3\xe4\x93\x02\x31\",/accounts/v1beta/accounts:createAndConfigure:\x01*\x12\x9a\x01\n\rDeleteAccount\x12>.google.shopping.merchant.accounts.v1beta.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\"1\xda\x41\x04name\x82\xd3\xe4\x93\x02$*\"/accounts/v1beta/{name=accounts/*}\x12\xd5\x01\n\rUpdateAccount\x12>.google.shopping.merchant.accounts.v1beta.UpdateAccountRequest\x1a\x31.google.shopping.merchant.accounts.v1beta.Account\"Q\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02\x35\x32*/accounts/v1beta/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xb0\x01\n\x0cListAccounts\x12=.google.shopping.merchant.accounts.v1beta.ListAccountsRequest\x1a>.google.shopping.merchant.accounts.v1beta.ListAccountsResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/accounts/v1beta/accounts\x12\xe1\x01\n\x0fListSubAccounts\x12@.google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest\x1a\x41.google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse\"I\xda\x41\x08provider\x82\xd3\xe4\x93\x02\x38\x12\x36/accounts/v1beta/{provider=accounts/*}:listSubaccounts\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x8f\x01\n,com.google.shopping.merchant.accounts.v1betaB\rAccountsProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
18
19
 
19
20
  pool = Google::Protobuf::DescriptorPool.generated_pool
20
21
 
@@ -31,7 +32,7 @@ rescue TypeError
31
32
  imports = [
32
33
  ["google.type.TimeZone", "google/type/datetime.proto"],
33
34
  ["google.shopping.merchant.accounts.v1beta.CreateUserRequest", "google/shopping/merchant/accounts/v1beta/user.proto"],
34
- ["google.protobuf.Empty", "google/protobuf/empty.proto"],
35
+ ["google.shopping.merchant.accounts.v1beta.AccountAggregation", "google/shopping/merchant/accounts/v1beta/accountservices.proto"],
35
36
  ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
36
37
  ]
37
38
  imports.each do |type_name, expected_filename|
@@ -285,9 +285,12 @@ module Google
285
285
  # Optional. The Terms of Service (ToS) to be accepted immediately upon
286
286
  # account creation.
287
287
  # @param service [::Array<::Google::Shopping::Merchant::Accounts::V1beta::CreateAndConfigureAccountRequest::AddAccountService, ::Hash>]
288
- # Optional. If specified, an account service between the account to be
289
- # created and the provider account is initialized as part of the
290
- # creation.
288
+ # Required. An account service between the account to be created and the
289
+ # provider account is initialized as part of the creation. At least one such
290
+ # service needs to be provided. Currently exactly one of these needs to be
291
+ # `account_aggregation`, which means you can only create sub accounts, not
292
+ # standalone account through this method. Additional `account_management` or
293
+ # `product_management` services may be provided.
291
294
  #
292
295
  # @yield [response, operation] Access the result along with the RPC operation
293
296
  # @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::Account]
@@ -271,9 +271,12 @@ module Google
271
271
  # Optional. The Terms of Service (ToS) to be accepted immediately upon
272
272
  # account creation.
273
273
  # @param service [::Array<::Google::Shopping::Merchant::Accounts::V1beta::CreateAndConfigureAccountRequest::AddAccountService, ::Hash>]
274
- # Optional. If specified, an account service between the account to be
275
- # created and the provider account is initialized as part of the
276
- # creation.
274
+ # Required. An account service between the account to be created and the
275
+ # provider account is initialized as part of the creation. At least one such
276
+ # service needs to be provided. Currently exactly one of these needs to be
277
+ # `account_aggregation`, which means you can only create sub accounts, not
278
+ # standalone account through this method. Additional `account_management` or
279
+ # `product_management` services may be provided.
277
280
  # @yield [result, operation] Access the result along with the TransportOperation object
278
281
  # @yieldparam result [::Google::Shopping::Merchant::Accounts::V1beta::Account]
279
282
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/accounts/v1beta/accountservices.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
+
12
+
13
+ descriptor_data = "\n>google/shopping/merchant/accounts/v1beta/accountservices.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\"\x14\n\x12\x41\x63\x63ountAggregationB\x96\x01\n,com.google.shopping.merchant.accounts.v1betaB\x14\x41\x63\x63ountServicesProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
34
+ end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
37
+ end
38
+
39
+ module Google
40
+ module Shopping
41
+ module Merchant
42
+ module Accounts
43
+ module V1beta
44
+ AccountAggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.AccountAggregation").msgclass
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end