google-shopping-merchant-accounts-v1beta 0.1.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) 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 +15 -5
  10. data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/client.rb +15 -5
  11. data/lib/google/shopping/merchant/accounts/v1beta/accounts_services_pb.rb +5 -1
  12. data/lib/google/shopping/merchant/accounts/v1beta/accountservices_pb.rb +49 -0
  13. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/client.rb +529 -0
  14. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/credentials.rb +49 -0
  15. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/paths.rb +49 -0
  16. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/client.rb +489 -0
  17. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest/service_stub.rb +190 -0
  18. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest.rb +55 -0
  19. data/lib/google/shopping/merchant/accounts/v1beta/autofeed_settings_service.rb +58 -0
  20. data/lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_pb.rb +53 -0
  21. data/lib/google/shopping/merchant/accounts/v1beta/autofeedsettings_services_pb.rb +50 -0
  22. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/client.rb +5 -0
  23. data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/client.rb +5 -0
  24. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/client.rb +5 -0
  25. data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/client.rb +5 -0
  26. data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_pb.rb +1 -1
  27. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/client.rb +5 -0
  28. data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/client.rb +5 -0
  29. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/client.rb +5 -0
  30. data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/client.rb +5 -0
  31. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/client.rb +5 -0
  32. data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/client.rb +5 -0
  33. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/client.rb +5 -0
  34. data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/client.rb +5 -0
  35. data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +1 -0
  36. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/client.rb +6 -0
  37. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/client.rb +6 -0
  38. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/client.rb +4 -4
  39. data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/client.rb +4 -4
  40. data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_pb.rb +1 -1
  41. data/lib/google/shopping/merchant/accounts/v1beta/user_service/client.rb +5 -0
  42. data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/client.rb +5 -0
  43. data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
  44. data/lib/google/shopping/merchant/accounts/v1beta.rb +1 -0
  45. data/proto_docs/google/shopping/merchant/accounts/v1beta/accountissue.rb +1 -1
  46. data/proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb +18 -6
  47. data/proto_docs/google/shopping/merchant/accounts/v1beta/accountservices.rb +34 -0
  48. data/proto_docs/google/shopping/merchant/accounts/v1beta/autofeedsettings.rb +75 -0
  49. data/proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb +5 -0
  50. data/proto_docs/google/shopping/merchant/accounts/v1beta/shippingsettings.rb +5 -1
  51. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservice.rb +4 -4
  52. data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.rb +3 -0
  53. 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: e2f6f2338a43af794906b544cfc9d5abe09aa175edf87335054bcc1359a1298b
4
+ data.tar.gz: 8c7c247795eac76c10ea0c537dde90dfe31434d0eaa14f28336a79cd280cace8
5
5
  SHA512:
6
- metadata.gz: feb0230e8d1f114073ee08b70073cbc497feb6a2c6d16adb4332eba02f38cbea4f3c1d93ed27b6ab642d10bde8881080f0b5efa460c167f4e35c153a9e3eecbd
7
- data.tar.gz: 2f920b3d3e1c98aa087c09d555e64b59f9ffa48b619f790e8901c9f57c571e6ed5dae7ab56d21e34a79e0f1918621c20193f597e68660b1089736b73d48d33dd
6
+ metadata.gz: b07e40eb9ab09551f949108c9032d91c82803d24ccd767182ed6799ec3ed24d3baf27c90adc0497323adfade1046d79b43f2c1dc6db2506923c93ac7b7e36a60
7
+ data.tar.gz: b4a6ead03463b7df794d0fb447eefa0badb2919d9f999a6358843c4612d8d3ea62a6536e80f87d84965dc89321683874458c0114f3b7be5f59afb6953a3eb627
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\"d\n\x14\x44\x65leteAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"\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]
@@ -350,6 +353,9 @@ module Google
350
353
  # Deletes the specified account regardless of its type: standalone, MCA or
351
354
  # sub-account. Deleting an MCA leads to the deletion of all of its
352
355
  # sub-accounts. Executing this method requires admin access.
356
+ # The deletion succeeds only if the account does not provide services
357
+ # to any other account and has no processed offers. You can use the `force`
358
+ # parameter to override this.
353
359
  #
354
360
  # @overload delete_account(request, options = nil)
355
361
  # Pass arguments to `delete_account` via a request object, either of type
@@ -361,7 +367,7 @@ module Google
361
367
  # @param options [::Gapic::CallOptions, ::Hash]
362
368
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
363
369
  #
364
- # @overload delete_account(name: nil)
370
+ # @overload delete_account(name: nil, force: nil)
365
371
  # Pass arguments to `delete_account` via keyword arguments. Note that at
366
372
  # least one keyword argument is required. To specify no parameters, or to keep all
367
373
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -369,6 +375,9 @@ module Google
369
375
  # @param name [::String]
370
376
  # Required. The name of the account to delete.
371
377
  # Format: `accounts/{account}`
378
+ # @param force [::Boolean]
379
+ # Optional. If set to `true`, the account is deleted even if it provides
380
+ # services to other accounts or has processed offers.
372
381
  #
373
382
  # @yield [response, operation] Access the result along with the RPC operation
374
383
  # @yieldparam response [::Google::Protobuf::Empty]
@@ -529,7 +538,8 @@ module Google
529
538
  # constraints of the request such as page size or filters.
530
539
  # This is not just listing the sub-accounts of an MCA, but all accounts the
531
540
  # calling user has access to including other MCAs, linked accounts,
532
- # standalone accounts and so on.
541
+ # standalone accounts and so on. If no filter is provided, then it returns
542
+ # accounts the user is directly added to.
533
543
  #
534
544
  # @overload list_accounts(request, options = nil)
535
545
  # Pass arguments to `list_accounts` via a request object, either of type
@@ -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]
@@ -337,6 +340,9 @@ module Google
337
340
  # Deletes the specified account regardless of its type: standalone, MCA or
338
341
  # sub-account. Deleting an MCA leads to the deletion of all of its
339
342
  # sub-accounts. Executing this method requires admin access.
343
+ # The deletion succeeds only if the account does not provide services
344
+ # to any other account and has no processed offers. You can use the `force`
345
+ # parameter to override this.
340
346
  #
341
347
  # @overload delete_account(request, options = nil)
342
348
  # Pass arguments to `delete_account` via a request object, either of type
@@ -348,7 +354,7 @@ module Google
348
354
  # @param options [::Gapic::CallOptions, ::Hash]
349
355
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
350
356
  #
351
- # @overload delete_account(name: nil)
357
+ # @overload delete_account(name: nil, force: nil)
352
358
  # Pass arguments to `delete_account` via keyword arguments. Note that at
353
359
  # least one keyword argument is required. To specify no parameters, or to keep all
354
360
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -356,6 +362,9 @@ module Google
356
362
  # @param name [::String]
357
363
  # Required. The name of the account to delete.
358
364
  # Format: `accounts/{account}`
365
+ # @param force [::Boolean]
366
+ # Optional. If set to `true`, the account is deleted even if it provides
367
+ # services to other accounts or has processed offers.
359
368
  # @yield [result, operation] Access the result along with the TransportOperation object
360
369
  # @yieldparam result [::Google::Protobuf::Empty]
361
370
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -502,7 +511,8 @@ module Google
502
511
  # constraints of the request such as page size or filters.
503
512
  # This is not just listing the sub-accounts of an MCA, but all accounts the
504
513
  # calling user has access to including other MCAs, linked accounts,
505
- # standalone accounts and so on.
514
+ # standalone accounts and so on. If no filter is provided, then it returns
515
+ # accounts the user is directly added to.
506
516
  #
507
517
  # @overload list_accounts(request, options = nil)
508
518
  # Pass arguments to `list_accounts` via a request object, either of type
@@ -44,6 +44,9 @@ module Google
44
44
  # Deletes the specified account regardless of its type: standalone, MCA or
45
45
  # sub-account. Deleting an MCA leads to the deletion of all of its
46
46
  # sub-accounts. Executing this method requires admin access.
47
+ # The deletion succeeds only if the account does not provide services
48
+ # to any other account and has no processed offers. You can use the `force`
49
+ # parameter to override this.
47
50
  rpc :DeleteAccount, ::Google::Shopping::Merchant::Accounts::V1beta::DeleteAccountRequest, ::Google::Protobuf::Empty
48
51
  # Updates an account regardless of its type: standalone, MCA or sub-account.
49
52
  # Executing this method requires admin access.
@@ -52,7 +55,8 @@ module Google
52
55
  # constraints of the request such as page size or filters.
53
56
  # This is not just listing the sub-accounts of an MCA, but all accounts the
54
57
  # calling user has access to including other MCAs, linked accounts,
55
- # standalone accounts and so on.
58
+ # standalone accounts and so on. If no filter is provided, then it returns
59
+ # accounts the user is directly added to.
56
60
  rpc :ListAccounts, ::Google::Shopping::Merchant::Accounts::V1beta::ListAccountsRequest, ::Google::Shopping::Merchant::Accounts::V1beta::ListAccountsResponse
57
61
  # List all sub-accounts for a given multi client account. This is a
58
62
  # convenience wrapper for the more powerful `ListAccounts` method. This
@@ -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