google-shopping-merchant-accounts-v1 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/shopping/merchant/accounts/v1/accounts_pb.rb +4 -1
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/client.rb +12 -5
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/client.rb +12 -5
- data/lib/google/shopping/merchant/accounts/v1/accounts_services_pb.rb +7 -4
- data/lib/google/shopping/merchant/accounts/v1/accountservices_pb.rb +2 -1
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/client.rb +79 -1
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/client.rb +80 -1
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/service_stub.rb +59 -0
- data/lib/google/shopping/merchant/accounts/v1/developerregistration_pb.rb +2 -1
- data/lib/google/shopping/merchant/accounts/v1/developerregistration_services_pb.rb +2 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_pb.rb +5 -1
- data/lib/google/shopping/merchant/accounts/v1/user_pb.rb +2 -1
- data/lib/google/shopping/merchant/accounts/v1/user_service/client.rb +94 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/rest/client.rb +87 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/rest/service_stub.rb +62 -0
- data/lib/google/shopping/merchant/accounts/v1/user_services_pb.rb +3 -0
- data/lib/google/shopping/merchant/accounts/v1/verificationmailsettings_pb.rb +47 -0
- data/lib/google/shopping/merchant/accounts/v1/version.rb +1 -1
- data/proto_docs/google/shopping/merchant/accounts/v1/accessright.rb +4 -2
- data/proto_docs/google/shopping/merchant/accounts/v1/accounts.rb +72 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/accountservices.rb +18 -5
- data/proto_docs/google/shopping/merchant/accounts/v1/developerregistration.rb +12 -1
- data/proto_docs/google/shopping/merchant/accounts/v1/programs.rb +1 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/regions.rb +36 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/user.rb +14 -2
- data/proto_docs/google/shopping/merchant/accounts/v1/verificationmailsettings.rb +53 -0
- data/proto_docs/google/type/latlng.rb +38 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 710538a889881d3d2e5c50c121985a493ec5ec660c6bc56b29df8f669e2ab910
|
|
4
|
+
data.tar.gz: d64a5fc85322c46ae47b9176e13aa0ecb46318f6ea789e36721d64828dca968e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae5b0ae1d9ed807f82b41630338544b1e7b5db0f394058ebb151edba9c9d3adc7905fd82c3b373197756b9a86b85f00020df4abaad18d32a856d0834a7f78966
|
|
7
|
+
data.tar.gz: baeaf6b48665c543e9c47abc9f8bab4344699b8c39b828f7ebd52037a1520fc8560ffe2b21f629adf2a7486f9ccc4dc8b16b8fde9a518aaad1f277f32a2213d2
|
|
@@ -12,10 +12,11 @@ require 'google/protobuf/empty_pb'
|
|
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
|
13
13
|
require 'google/shopping/merchant/accounts/v1/accountservices_pb'
|
|
14
14
|
require 'google/shopping/merchant/accounts/v1/user_pb'
|
|
15
|
+
require 'google/shopping/merchant/accounts/v1/verificationmailsettings_pb'
|
|
15
16
|
require 'google/type/datetime_pb'
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
descriptor_data = "\n3google/shopping/merchant/accounts/v1/accounts.proto\x12$google.shopping.merchant.accounts.v1\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/v1/accountservices.proto\x1a/google/shopping/merchant/accounts/v1/user.proto\x1a\x1agoogle/type/datetime.proto\"\xb9\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\x1f\n\radult_content\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\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:N\xea\x41K\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ountB\x10\n\x0e_adult_content\"M\n\x11GetAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\"\
|
|
19
|
+
descriptor_data = "\n3google/shopping/merchant/accounts/v1/accounts.proto\x12$google.shopping.merchant.accounts.v1\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/v1/accountservices.proto\x1a/google/shopping/merchant/accounts/v1/user.proto\x1a\x43google/shopping/merchant/accounts/v1/verificationmailsettings.proto\x1a\x1agoogle/type/datetime.proto\"\xb9\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\x1f\n\radult_content\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\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:N\xea\x41K\n\"merchantapi.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}*\x08\x61\x63\x63ounts2\x07\x61\x63\x63ountB\x10\n\x0e_adult_content\"M\n\x11GetAccountRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\"\xfb\t\n CreateAndConfigureAccountRequest\x12\x43\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32-.google.shopping.merchant.accounts.v1.AccountB\x03\xe0\x41\x02\x12\x61\n\x04user\x18\x03 \x03(\x0b\x32N.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.AddUserB\x03\xe0\x41\x01\x12n\n\x07service\x18\x04 \x03(\x0b\x32X.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.AddAccountServiceB\x03\xe0\x41\x02\x12v\n\tset_alias\x18\x05 \x03(\x0b\x32^.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.SetAliasForRelationshipB\x03\xe0\x41\x01\x1a\xc7\x01\n\x07\x41\x64\x64User\x12\x14\n\x07user_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12=\n\x04user\x18\x02 \x01(\x0b\x32*.google.shopping.merchant.accounts.v1.UserB\x03\xe0\x41\x01\x12g\n\x1averification_mail_settings\x18\x03 \x01(\x0b\x32>.google.shopping.merchant.accounts.v1.VerificationMailSettingsB\x03\xe0\x41\x01\x1a\xab\x04\n\x11\x41\x64\x64\x41\x63\x63ountService\x12W\n\x13\x61\x63\x63ount_aggregation\x18g \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.AccountAggregationH\x00\x12U\n\x12\x61\x63\x63ount_management\x18h \x01(\x0b\x32\x37.google.shopping.merchant.accounts.v1.AccountManagementH\x00\x12W\n\x13\x63omparison_shopping\x18i \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.ComparisonShoppingH\x00\x12W\n\x13products_management\x18j \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.ProductsManagementH\x00\x12Y\n\x14\x63\x61mpaigns_management\x18k \x01(\x0b\x32\x39.google.shopping.merchant.accounts.v1.CampaignsManagementH\x00\x12\x1a\n\x08provider\x18\x01 \x01(\tB\x03\xe0\x41\x02H\x01\x88\x01\x01\x12 \n\x13\x65xternal_account_id\x18\x03 \x01(\tB\x03\xe0\x41\x05\x42\x0e\n\x0cservice_typeB\x0b\n\t_provider\x1aO\n\x17SetAliasForRelationship\x12\x15\n\x08provider\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1d\n\x10\x61\x63\x63ount_id_alias\x18\x02 \x01(\tB\x03\xe0\x41\x02\"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\"\x91\x01\n\x14UpdateAccountRequest\x12\x43\n\x07\x61\x63\x63ount\x18\x01 \x01(\x0b\x32-.google.shopping.merchant.accounts.v1.AccountB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"[\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\"p\n\x14ListAccountsResponse\x12?\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32-.google.shopping.merchant.accounts.v1.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\"s\n\x17ListSubAccountsResponse\x12?\n\x08\x61\x63\x63ounts\x18\x01 \x03(\x0b\x32-.google.shopping.merchant.accounts.v1.Account\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xaa\t\n\x0f\x41\x63\x63ountsService\x12\xa3\x01\n\nGetAccount\x12\x37.google.shopping.merchant.accounts.v1.GetAccountRequest\x1a-.google.shopping.merchant.accounts.v1.Account\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 \x12\x1e/accounts/v1/{name=accounts/*}\x12\xc7\x01\n\x19\x43reateAndConfigureAccount\x12\x46.google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest\x1a-.google.shopping.merchant.accounts.v1.Account\"3\x82\xd3\xe4\x93\x02-\"(/accounts/v1/accounts:createAndConfigure:\x01*\x12\x92\x01\n\rDeleteAccount\x12:.google.shopping.merchant.accounts.v1.DeleteAccountRequest\x1a\x16.google.protobuf.Empty\"-\xda\x41\x04name\x82\xd3\xe4\x93\x02 *\x1e/accounts/v1/{name=accounts/*}\x12\xc9\x01\n\rUpdateAccount\x12:.google.shopping.merchant.accounts.v1.UpdateAccountRequest\x1a-.google.shopping.merchant.accounts.v1.Account\"M\xda\x41\x13\x61\x63\x63ount,update_mask\x82\xd3\xe4\x93\x02\x31\x32&/accounts/v1/{account.name=accounts/*}:\x07\x61\x63\x63ount\x12\xa4\x01\n\x0cListAccounts\x12\x39.google.shopping.merchant.accounts.v1.ListAccountsRequest\x1a:.google.shopping.merchant.accounts.v1.ListAccountsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/accounts/v1/accounts\x12\xd5\x01\n\x0fListSubAccounts\x12<.google.shopping.merchant.accounts.v1.ListSubAccountsRequest\x1a=.google.shopping.merchant.accounts.v1.ListSubAccountsResponse\"E\xda\x41\x08provider\x82\xd3\xe4\x93\x02\x34\x12\x32/accounts/v1/{provider=accounts/*}:listSubaccounts\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x80\x02\n(com.google.shopping.merchant.accounts.v1B\rAccountsProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\x06proto3"
|
|
19
20
|
|
|
20
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
22
|
|
|
@@ -32,6 +33,7 @@ rescue TypeError
|
|
|
32
33
|
imports = [
|
|
33
34
|
["google.type.TimeZone", "google/type/datetime.proto"],
|
|
34
35
|
["google.shopping.merchant.accounts.v1.User", "google/shopping/merchant/accounts/v1/user.proto"],
|
|
36
|
+
["google.shopping.merchant.accounts.v1.VerificationMailSettings", "google/shopping/merchant/accounts/v1/verificationmailsettings.proto"],
|
|
35
37
|
["google.shopping.merchant.accounts.v1.AccountAggregation", "google/shopping/merchant/accounts/v1/accountservices.proto"],
|
|
36
38
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
37
39
|
]
|
|
@@ -55,6 +57,7 @@ module Google
|
|
|
55
57
|
CreateAndConfigureAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest").msgclass
|
|
56
58
|
CreateAndConfigureAccountRequest::AddUser = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.AddUser").msgclass
|
|
57
59
|
CreateAndConfigureAccountRequest::AddAccountService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.AddAccountService").msgclass
|
|
60
|
+
CreateAndConfigureAccountRequest::SetAliasForRelationship = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.CreateAndConfigureAccountRequest.SetAliasForRelationship").msgclass
|
|
58
61
|
DeleteAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.DeleteAccountRequest").msgclass
|
|
59
62
|
UpdateAccountRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.UpdateAccountRequest").msgclass
|
|
60
63
|
ListAccountsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.ListAccountsRequest").msgclass
|
|
@@ -291,7 +291,7 @@ module Google
|
|
|
291
291
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
292
292
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
293
293
|
#
|
|
294
|
-
# @overload create_and_configure_account(account: nil, user: nil, service: nil)
|
|
294
|
+
# @overload create_and_configure_account(account: nil, user: nil, service: nil, set_alias: nil)
|
|
295
295
|
# Pass arguments to `create_and_configure_account` via keyword arguments. Note that at
|
|
296
296
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
297
297
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -308,6 +308,10 @@ module Google
|
|
|
308
308
|
# used to create a sub-account under an existing advanced account through
|
|
309
309
|
# this method. Additional `account_management` or
|
|
310
310
|
# `product_management` services may be provided.
|
|
311
|
+
# @param set_alias [::Array<::Google::Shopping::Merchant::Accounts::V1::CreateAndConfigureAccountRequest::SetAliasForRelationship, ::Hash>]
|
|
312
|
+
# Optional. If a relationship is created with a provider, you can set an
|
|
313
|
+
# alias for it with this field. The calling user must be an admin on the
|
|
314
|
+
# provider to be able to set an alias.
|
|
311
315
|
#
|
|
312
316
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
313
317
|
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1::Account]
|
|
@@ -368,10 +372,13 @@ module Google
|
|
|
368
372
|
##
|
|
369
373
|
# Deletes the specified account regardless of its type: standalone, advanced
|
|
370
374
|
# account or sub-account. Deleting an advanced account leads to the deletion
|
|
371
|
-
# of all of its sub-accounts.
|
|
372
|
-
#
|
|
373
|
-
#
|
|
374
|
-
#
|
|
375
|
+
# of all of its sub-accounts. This also deletes the account's [developer
|
|
376
|
+
# registration
|
|
377
|
+
# entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration)
|
|
378
|
+
# and any associated GCP project to the account. Executing this method
|
|
379
|
+
# requires admin access. The deletion succeeds only if the account does not
|
|
380
|
+
# provide services to any other account and has no processed offers. You can
|
|
381
|
+
# use the `force` parameter to override this.
|
|
375
382
|
#
|
|
376
383
|
# @overload delete_account(request, options = nil)
|
|
377
384
|
# Pass arguments to `delete_account` via a request object, either of type
|
|
@@ -277,7 +277,7 @@ module Google
|
|
|
277
277
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
278
278
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
279
279
|
#
|
|
280
|
-
# @overload create_and_configure_account(account: nil, user: nil, service: nil)
|
|
280
|
+
# @overload create_and_configure_account(account: nil, user: nil, service: nil, set_alias: nil)
|
|
281
281
|
# Pass arguments to `create_and_configure_account` via keyword arguments. Note that at
|
|
282
282
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
283
283
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -294,6 +294,10 @@ module Google
|
|
|
294
294
|
# used to create a sub-account under an existing advanced account through
|
|
295
295
|
# this method. Additional `account_management` or
|
|
296
296
|
# `product_management` services may be provided.
|
|
297
|
+
# @param set_alias [::Array<::Google::Shopping::Merchant::Accounts::V1::CreateAndConfigureAccountRequest::SetAliasForRelationship, ::Hash>]
|
|
298
|
+
# Optional. If a relationship is created with a provider, you can set an
|
|
299
|
+
# alias for it with this field. The calling user must be an admin on the
|
|
300
|
+
# provider to be able to set an alias.
|
|
297
301
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
298
302
|
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::Account]
|
|
299
303
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -355,10 +359,13 @@ module Google
|
|
|
355
359
|
##
|
|
356
360
|
# Deletes the specified account regardless of its type: standalone, advanced
|
|
357
361
|
# account or sub-account. Deleting an advanced account leads to the deletion
|
|
358
|
-
# of all of its sub-accounts.
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
+
# of all of its sub-accounts. This also deletes the account's [developer
|
|
363
|
+
# registration
|
|
364
|
+
# entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration)
|
|
365
|
+
# and any associated GCP project to the account. Executing this method
|
|
366
|
+
# requires admin access. The deletion succeeds only if the account does not
|
|
367
|
+
# provide services to any other account and has no processed offers. You can
|
|
368
|
+
# use the `force` parameter to override this.
|
|
362
369
|
#
|
|
363
370
|
# @overload delete_account(request, options = nil)
|
|
364
371
|
# Pass arguments to `delete_account` via a request object, either of type
|
|
@@ -43,10 +43,13 @@ module Google
|
|
|
43
43
|
rpc :CreateAndConfigureAccount, ::Google::Shopping::Merchant::Accounts::V1::CreateAndConfigureAccountRequest, ::Google::Shopping::Merchant::Accounts::V1::Account
|
|
44
44
|
# Deletes the specified account regardless of its type: standalone, advanced
|
|
45
45
|
# account or sub-account. Deleting an advanced account leads to the deletion
|
|
46
|
-
# of all of its sub-accounts.
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
#
|
|
46
|
+
# of all of its sub-accounts. This also deletes the account's [developer
|
|
47
|
+
# registration
|
|
48
|
+
# entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration)
|
|
49
|
+
# and any associated GCP project to the account. Executing this method
|
|
50
|
+
# requires admin access. The deletion succeeds only if the account does not
|
|
51
|
+
# provide services to any other account and has no processed offers. You can
|
|
52
|
+
# use the `force` parameter to override this.
|
|
50
53
|
rpc :DeleteAccount, ::Google::Shopping::Merchant::Accounts::V1::DeleteAccountRequest, ::Google::Protobuf::Empty
|
|
51
54
|
# Updates an account regardless of its type: standalone, advanced account or
|
|
52
55
|
# sub-account. Executing this method requires admin access.
|
|
@@ -11,7 +11,7 @@ require 'google/api/resource_pb'
|
|
|
11
11
|
require 'google/protobuf/empty_pb'
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
descriptor_data = "\n:google/shopping/merchant/accounts/v1/accountservices.proto\x12$google.shopping.merchant.accounts.v1\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\"\
|
|
14
|
+
descriptor_data = "\n:google/shopping/merchant/accounts/v1/accountservices.proto\x12$google.shopping.merchant.accounts.v1\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\"\xa2\x08\n\x0e\x41\x63\x63ountService\x12W\n\x13products_management\x18\x64 \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.ProductsManagementH\x00\x12Y\n\x14\x63\x61mpaigns_management\x18\x65 \x01(\x0b\x32\x39.google.shopping.merchant.accounts.v1.CampaignsManagementH\x00\x12U\n\x12\x61\x63\x63ount_management\x18\x66 \x01(\x0b\x32\x37.google.shopping.merchant.accounts.v1.AccountManagementH\x00\x12W\n\x13\x61\x63\x63ount_aggregation\x18g \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.AccountAggregationH\x00\x12`\n\x18local_listing_management\x18h \x01(\x0b\x32<.google.shopping.merchant.accounts.v1.LocalListingManagementH\x00\x12W\n\x13\x63omparison_shopping\x18i \x01(\x0b\x32\x38.google.shopping.merchant.accounts.v1.ComparisonShoppingH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1a\n\x08provider\x18\x02 \x01(\tB\x03\xe0\x41\x03H\x01\x88\x01\x01\x12\"\n\x15provider_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12G\n\thandshake\x18\x04 \x01(\x0b\x32/.google.shopping.merchant.accounts.v1.HandshakeB\x03\xe0\x41\x03\x12X\n\nmutability\x18\x05 \x01(\x0e\x32?.google.shopping.merchant.accounts.v1.AccountService.MutabilityB\x03\xe0\x41\x03\x12 \n\x13\x65xternal_account_id\x18\x06 \x01(\tB\x03\xe0\x41\x05\"D\n\nMutability\x12\x1a\n\x16MUTABILITY_UNSPECIFIED\x10\x00\x12\x0b\n\x07MUTABLE\x10\x01\x12\r\n\tIMMUTABLE\x10\x02:v\xea\x41s\n)merchantapi.googleapis.com/AccountService\x12%accounts/{account}/services/{service}*\x0f\x61\x63\x63ountServices2\x0e\x61\x63\x63ountServiceB\x0e\n\x0cservice_typeB\x0b\n\t_provider\"[\n\x18GetAccountServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/AccountService\"\x89\x01\n\x1aListAccountServicesRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\"\x86\x01\n\x1bListAccountServicesResponse\x12N\n\x10\x61\x63\x63ount_services\x18\x01 \x03(\x0b\x32\x34.google.shopping.merchant.accounts.v1.AccountService\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc5\x01\n\x1cProposeAccountServiceRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x15\n\x08provider\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12R\n\x0f\x61\x63\x63ount_service\x18\x04 \x01(\x0b\x32\x34.google.shopping.merchant.accounts.v1.AccountServiceB\x03\xe0\x41\x02\"_\n\x1c\x41pproveAccountServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/AccountService\"^\n\x1bRejectAccountServiceRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/AccountService\"\x14\n\x12ProductsManagement\"\x15\n\x13\x43\x61mpaignsManagement\"\x13\n\x11\x41\x63\x63ountManagement\"\x14\n\x12\x41\x63\x63ountAggregation\"\x18\n\x16LocalListingManagement\"\x14\n\x12\x43omparisonShopping\"\xcd\x02\n\tHandshake\x12Z\n\x0e\x61pproval_state\x18\x01 \x01(\x0e\x32=.google.shopping.merchant.accounts.v1.Handshake.ApprovalStateB\x03\xe0\x41\x03\x12I\n\x05\x61\x63tor\x18\x02 \x01(\x0e\x32\x35.google.shopping.merchant.accounts.v1.Handshake.ActorB\x03\xe0\x41\x03\"[\n\rApprovalState\x12\x1e\n\x1a\x41PPROVAL_STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0f\n\x0b\x45STABLISHED\x10\x02\x12\x0c\n\x08REJECTED\x10\x03\"<\n\x05\x41\x63tor\x12\x15\n\x11\x41\x43TOR_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x41\x43\x43OUNT\x10\x01\x12\x0f\n\x0bOTHER_PARTY\x10\x02\x32\x85\t\n\x16\x41\x63\x63ountServicesService\x12\xc3\x01\n\x11GetAccountService\x12>.google.shopping.merchant.accounts.v1.GetAccountServiceRequest\x1a\x34.google.shopping.merchant.accounts.v1.AccountService\"8\xda\x41\x04name\x82\xd3\xe4\x93\x02+\x12)/accounts/v1/{name=accounts/*/services/*}\x12\xd6\x01\n\x13ListAccountServices\x12@.google.shopping.merchant.accounts.v1.ListAccountServicesRequest\x1a\x41.google.shopping.merchant.accounts.v1.ListAccountServicesResponse\":\xda\x41\x06parent\x82\xd3\xe4\x93\x02+\x12)/accounts/v1/{parent=accounts/*}/services\x12\xf1\x01\n\x15ProposeAccountService\x12\x42.google.shopping.merchant.accounts.v1.ProposeAccountServiceRequest\x1a\x34.google.shopping.merchant.accounts.v1.AccountService\"^\xda\x41\x1fparent,provider,account_service\x82\xd3\xe4\x93\x02\x36\"1/accounts/v1/{parent=accounts/*}/services:propose:\x01*\x12\xd6\x01\n\x15\x41pproveAccountService\x12\x42.google.shopping.merchant.accounts.v1.ApproveAccountServiceRequest\x1a\x34.google.shopping.merchant.accounts.v1.AccountService\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\"1/accounts/v1/{name=accounts/*/services/*}:approve:\x01*\x12\xb5\x01\n\x14RejectAccountService\x12\x41.google.shopping.merchant.accounts.v1.RejectAccountServiceRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\"0/accounts/v1/{name=accounts/*/services/*}:reject:\x01*\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x87\x02\n(com.google.shopping.merchant.accounts.v1B\x14\x41\x63\x63ountServicesProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\x06proto3"
|
|
15
15
|
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
17
|
|
|
@@ -55,6 +55,7 @@ module Google
|
|
|
55
55
|
AccountManagement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.AccountManagement").msgclass
|
|
56
56
|
AccountAggregation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.AccountAggregation").msgclass
|
|
57
57
|
LocalListingManagement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.LocalListingManagement").msgclass
|
|
58
|
+
ComparisonShopping = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.ComparisonShopping").msgclass
|
|
58
59
|
Handshake = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Handshake").msgclass
|
|
59
60
|
Handshake::ApprovalState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Handshake.ApprovalState").enummodule
|
|
60
61
|
Handshake::Actor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Handshake.Actor").enummodule
|
|
@@ -221,7 +221,9 @@ module Google
|
|
|
221
221
|
# updated to have the new "API notifications" preference. If the developer
|
|
222
222
|
# email provided is not associated with any user we will just add it as a
|
|
223
223
|
# contact. The email preference corresponding to that contact will have the
|
|
224
|
-
# new "API notifications" preference
|
|
224
|
+
# new "API notifications" preference. Make sure the email used is associated
|
|
225
|
+
# with a Google Account (Google Workspace account or Gmail account)
|
|
226
|
+
# and is not a service account as service accounts can't receive emails.
|
|
225
227
|
#
|
|
226
228
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
227
229
|
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1::DeveloperRegistration]
|
|
@@ -461,6 +463,75 @@ module Google
|
|
|
461
463
|
raise ::Google::Cloud::Error.from_error(e)
|
|
462
464
|
end
|
|
463
465
|
|
|
466
|
+
##
|
|
467
|
+
# Retrieves the merchant account that the calling GCP is registered with.
|
|
468
|
+
#
|
|
469
|
+
# @overload get_account_for_gcp_registration(request, options = nil)
|
|
470
|
+
# Pass arguments to `get_account_for_gcp_registration` via a request object, either of type
|
|
471
|
+
# {::Google::Protobuf::Empty} or an equivalent Hash.
|
|
472
|
+
#
|
|
473
|
+
# @param request [::Google::Protobuf::Empty, ::Hash]
|
|
474
|
+
# A request object representing the call parameters. Required. To specify no
|
|
475
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
476
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
477
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
478
|
+
#
|
|
479
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
|
480
|
+
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse]
|
|
481
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
|
482
|
+
#
|
|
483
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse]
|
|
484
|
+
#
|
|
485
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
486
|
+
#
|
|
487
|
+
# @example Basic example
|
|
488
|
+
# require "google/shopping/merchant/accounts/v1"
|
|
489
|
+
#
|
|
490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
491
|
+
# client = Google::Shopping::Merchant::Accounts::V1::DeveloperRegistrationService::Client.new
|
|
492
|
+
#
|
|
493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
494
|
+
# request = Google::Protobuf::Empty.new
|
|
495
|
+
#
|
|
496
|
+
# # Call the get_account_for_gcp_registration method.
|
|
497
|
+
# result = client.get_account_for_gcp_registration request
|
|
498
|
+
#
|
|
499
|
+
# # The returned object is of type Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse.
|
|
500
|
+
# p result
|
|
501
|
+
#
|
|
502
|
+
def get_account_for_gcp_registration request, options = nil
|
|
503
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
504
|
+
|
|
505
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Protobuf::Empty
|
|
506
|
+
|
|
507
|
+
# Converts hash and nil to an options object
|
|
508
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
509
|
+
|
|
510
|
+
# Customize the options with defaults
|
|
511
|
+
metadata = @config.rpcs.get_account_for_gcp_registration.metadata.to_h
|
|
512
|
+
|
|
513
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
514
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
515
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
516
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION
|
|
517
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
518
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
519
|
+
|
|
520
|
+
options.apply_defaults timeout: @config.rpcs.get_account_for_gcp_registration.timeout,
|
|
521
|
+
metadata: metadata,
|
|
522
|
+
retry_policy: @config.rpcs.get_account_for_gcp_registration.retry_policy
|
|
523
|
+
|
|
524
|
+
options.apply_defaults timeout: @config.timeout,
|
|
525
|
+
metadata: @config.metadata,
|
|
526
|
+
retry_policy: @config.retry_policy
|
|
527
|
+
|
|
528
|
+
@developer_registration_service_stub.call_rpc :get_account_for_gcp_registration, request, options: options do |response, operation|
|
|
529
|
+
yield response, operation if block_given?
|
|
530
|
+
end
|
|
531
|
+
rescue ::GRPC::BadStatus => e
|
|
532
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
533
|
+
end
|
|
534
|
+
|
|
464
535
|
##
|
|
465
536
|
# Configuration class for the DeveloperRegistrationService API.
|
|
466
537
|
#
|
|
@@ -659,6 +730,11 @@ module Google
|
|
|
659
730
|
# @return [::Gapic::Config::Method]
|
|
660
731
|
#
|
|
661
732
|
attr_reader :unregister_gcp
|
|
733
|
+
##
|
|
734
|
+
# RPC-specific configuration for `get_account_for_gcp_registration`
|
|
735
|
+
# @return [::Gapic::Config::Method]
|
|
736
|
+
#
|
|
737
|
+
attr_reader :get_account_for_gcp_registration
|
|
662
738
|
|
|
663
739
|
# @private
|
|
664
740
|
def initialize parent_rpcs = nil
|
|
@@ -668,6 +744,8 @@ module Google
|
|
|
668
744
|
@get_developer_registration = ::Gapic::Config::Method.new get_developer_registration_config
|
|
669
745
|
unregister_gcp_config = parent_rpcs.unregister_gcp if parent_rpcs.respond_to? :unregister_gcp
|
|
670
746
|
@unregister_gcp = ::Gapic::Config::Method.new unregister_gcp_config
|
|
747
|
+
get_account_for_gcp_registration_config = parent_rpcs.get_account_for_gcp_registration if parent_rpcs.respond_to? :get_account_for_gcp_registration
|
|
748
|
+
@get_account_for_gcp_registration = ::Gapic::Config::Method.new get_account_for_gcp_registration_config
|
|
671
749
|
|
|
672
750
|
yield self if block_given?
|
|
673
751
|
end
|
|
@@ -214,7 +214,9 @@ module Google
|
|
|
214
214
|
# updated to have the new "API notifications" preference. If the developer
|
|
215
215
|
# email provided is not associated with any user we will just add it as a
|
|
216
216
|
# contact. The email preference corresponding to that contact will have the
|
|
217
|
-
# new "API notifications" preference
|
|
217
|
+
# new "API notifications" preference. Make sure the email used is associated
|
|
218
|
+
# with a Google Account (Google Workspace account or Gmail account)
|
|
219
|
+
# and is not a service account as service accounts can't receive emails.
|
|
218
220
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
219
221
|
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::DeveloperRegistration]
|
|
220
222
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -433,6 +435,76 @@ module Google
|
|
|
433
435
|
raise ::Google::Cloud::Error.from_error(e)
|
|
434
436
|
end
|
|
435
437
|
|
|
438
|
+
##
|
|
439
|
+
# Retrieves the merchant account that the calling GCP is registered with.
|
|
440
|
+
#
|
|
441
|
+
# @overload get_account_for_gcp_registration(request, options = nil)
|
|
442
|
+
# Pass arguments to `get_account_for_gcp_registration` via a request object, either of type
|
|
443
|
+
# {::Google::Protobuf::Empty} or an equivalent Hash.
|
|
444
|
+
#
|
|
445
|
+
# @param request [::Google::Protobuf::Empty, ::Hash]
|
|
446
|
+
# A request object representing the call parameters. Required. To specify no
|
|
447
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
448
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
449
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
450
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
451
|
+
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse]
|
|
452
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
453
|
+
#
|
|
454
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse]
|
|
455
|
+
#
|
|
456
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
457
|
+
#
|
|
458
|
+
# @example Basic example
|
|
459
|
+
# require "google/shopping/merchant/accounts/v1"
|
|
460
|
+
#
|
|
461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
462
|
+
# client = Google::Shopping::Merchant::Accounts::V1::DeveloperRegistrationService::Rest::Client.new
|
|
463
|
+
#
|
|
464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
465
|
+
# request = Google::Protobuf::Empty.new
|
|
466
|
+
#
|
|
467
|
+
# # Call the get_account_for_gcp_registration method.
|
|
468
|
+
# result = client.get_account_for_gcp_registration request
|
|
469
|
+
#
|
|
470
|
+
# # The returned object is of type Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse.
|
|
471
|
+
# p result
|
|
472
|
+
#
|
|
473
|
+
def get_account_for_gcp_registration request, options = nil
|
|
474
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
475
|
+
|
|
476
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Protobuf::Empty
|
|
477
|
+
|
|
478
|
+
# Converts hash and nil to an options object
|
|
479
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
480
|
+
|
|
481
|
+
# Customize the options with defaults
|
|
482
|
+
call_metadata = @config.rpcs.get_account_for_gcp_registration.metadata.to_h
|
|
483
|
+
|
|
484
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
485
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
486
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
487
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION,
|
|
488
|
+
transports_version_send: [:rest]
|
|
489
|
+
|
|
490
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
491
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
492
|
+
|
|
493
|
+
options.apply_defaults timeout: @config.rpcs.get_account_for_gcp_registration.timeout,
|
|
494
|
+
metadata: call_metadata,
|
|
495
|
+
retry_policy: @config.rpcs.get_account_for_gcp_registration.retry_policy
|
|
496
|
+
|
|
497
|
+
options.apply_defaults timeout: @config.timeout,
|
|
498
|
+
metadata: @config.metadata,
|
|
499
|
+
retry_policy: @config.retry_policy
|
|
500
|
+
|
|
501
|
+
@developer_registration_service_stub.get_account_for_gcp_registration request, options do |result, operation|
|
|
502
|
+
yield result, operation if block_given?
|
|
503
|
+
end
|
|
504
|
+
rescue ::Gapic::Rest::Error => e
|
|
505
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
506
|
+
end
|
|
507
|
+
|
|
436
508
|
##
|
|
437
509
|
# Configuration class for the DeveloperRegistrationService REST API.
|
|
438
510
|
#
|
|
@@ -594,6 +666,11 @@ module Google
|
|
|
594
666
|
# @return [::Gapic::Config::Method]
|
|
595
667
|
#
|
|
596
668
|
attr_reader :unregister_gcp
|
|
669
|
+
##
|
|
670
|
+
# RPC-specific configuration for `get_account_for_gcp_registration`
|
|
671
|
+
# @return [::Gapic::Config::Method]
|
|
672
|
+
#
|
|
673
|
+
attr_reader :get_account_for_gcp_registration
|
|
597
674
|
|
|
598
675
|
# @private
|
|
599
676
|
def initialize parent_rpcs = nil
|
|
@@ -603,6 +680,8 @@ module Google
|
|
|
603
680
|
@get_developer_registration = ::Gapic::Config::Method.new get_developer_registration_config
|
|
604
681
|
unregister_gcp_config = parent_rpcs.unregister_gcp if parent_rpcs.respond_to? :unregister_gcp
|
|
605
682
|
@unregister_gcp = ::Gapic::Config::Method.new unregister_gcp_config
|
|
683
|
+
get_account_for_gcp_registration_config = parent_rpcs.get_account_for_gcp_registration if parent_rpcs.respond_to? :get_account_for_gcp_registration
|
|
684
|
+
@get_account_for_gcp_registration = ::Gapic::Config::Method.new get_account_for_gcp_registration_config
|
|
606
685
|
|
|
607
686
|
yield self if block_given?
|
|
608
687
|
end
|
data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/service_stub.rb
CHANGED
|
@@ -194,6 +194,46 @@ module Google
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
+
##
|
|
198
|
+
# Baseline implementation for the get_account_for_gcp_registration REST call
|
|
199
|
+
#
|
|
200
|
+
# @param request_pb [::Google::Protobuf::Empty]
|
|
201
|
+
# A request object representing the call parameters. Required.
|
|
202
|
+
# @param options [::Gapic::CallOptions]
|
|
203
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
204
|
+
#
|
|
205
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
206
|
+
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse]
|
|
207
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
208
|
+
#
|
|
209
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse]
|
|
210
|
+
# A result object deserialized from the server's reply
|
|
211
|
+
def get_account_for_gcp_registration request_pb, options = nil
|
|
212
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
213
|
+
|
|
214
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_account_for_gcp_registration_request request_pb
|
|
215
|
+
query_string_params = if query_string_params.any?
|
|
216
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
217
|
+
else
|
|
218
|
+
{}
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
response = @client_stub.make_http_request(
|
|
222
|
+
verb,
|
|
223
|
+
uri: uri,
|
|
224
|
+
body: body || "",
|
|
225
|
+
params: query_string_params,
|
|
226
|
+
method_name: "get_account_for_gcp_registration",
|
|
227
|
+
options: options
|
|
228
|
+
)
|
|
229
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
230
|
+
result = ::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse.decode_json response.body, ignore_unknown_fields: true
|
|
231
|
+
catch :response do
|
|
232
|
+
yield result, operation if block_given?
|
|
233
|
+
result
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
197
237
|
##
|
|
198
238
|
# @private
|
|
199
239
|
#
|
|
@@ -258,6 +298,25 @@ module Google
|
|
|
258
298
|
)
|
|
259
299
|
transcoder.transcode request_pb
|
|
260
300
|
end
|
|
301
|
+
|
|
302
|
+
##
|
|
303
|
+
# @private
|
|
304
|
+
#
|
|
305
|
+
# GRPC transcoding helper method for the get_account_for_gcp_registration REST call
|
|
306
|
+
#
|
|
307
|
+
# @param request_pb [::Google::Protobuf::Empty]
|
|
308
|
+
# A request object representing the call parameters. Required.
|
|
309
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
310
|
+
# Uri, Body, Query string parameters
|
|
311
|
+
def self.transcode_get_account_for_gcp_registration_request request_pb
|
|
312
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
313
|
+
.with_bindings(
|
|
314
|
+
uri_method: :get,
|
|
315
|
+
uri_template: "/accounts/v1/accounts:getAccountForGcpRegistration",
|
|
316
|
+
matches: []
|
|
317
|
+
)
|
|
318
|
+
transcoder.transcode request_pb
|
|
319
|
+
end
|
|
261
320
|
end
|
|
262
321
|
end
|
|
263
322
|
end
|
|
@@ -11,7 +11,7 @@ require 'google/api/resource_pb'
|
|
|
11
11
|
require 'google/protobuf/empty_pb'
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
descriptor_data = "\n@google/shopping/merchant/accounts/v1/developerregistration.proto\x12$google.shopping.merchant.accounts.v1\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\"\xd1\x01\n\x15\x44\x65veloperRegistration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07gcp_ids\x18\x02 \x03(\tB\x03\xe0\x41\x03:\x8e\x01\xea\x41\x8a\x01\n0merchantapi.googleapis.com/DeveloperRegistration\x12(accounts/{account}/developerRegistration*\x15\x64\x65veloperRegistration2\x15\x64\x65veloperRegistration\"z\n\x12RegisterGcpRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0merchantapi.googleapis.com/DeveloperRegistration\x12\x1c\n\x0f\x64\x65veloper_email\x18\x02 \x01(\tB\x03\xe0\x41\x05\"^\n\x14UnregisterGcpRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0merchantapi.googleapis.com/DeveloperRegistration\"i\n\x1fGetDeveloperRegistrationRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0merchantapi.googleapis.com/
|
|
14
|
+
descriptor_data = "\n@google/shopping/merchant/accounts/v1/developerregistration.proto\x12$google.shopping.merchant.accounts.v1\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\"\xd1\x01\n\x15\x44\x65veloperRegistration\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x07gcp_ids\x18\x02 \x03(\tB\x03\xe0\x41\x03:\x8e\x01\xea\x41\x8a\x01\n0merchantapi.googleapis.com/DeveloperRegistration\x12(accounts/{account}/developerRegistration*\x15\x64\x65veloperRegistration2\x15\x64\x65veloperRegistration\"z\n\x12RegisterGcpRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0merchantapi.googleapis.com/DeveloperRegistration\x12\x1c\n\x0f\x64\x65veloper_email\x18\x02 \x01(\tB\x03\xe0\x41\x05\"^\n\x14UnregisterGcpRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0merchantapi.googleapis.com/DeveloperRegistration\"i\n\x1fGetDeveloperRegistrationRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0merchantapi.googleapis.com/DeveloperRegistration\"4\n$GetAccountForGcpRegistrationResponse\x12\x0c\n\x04name\x18\x01 \x01(\t2\x97\x07\n\x1c\x44\x65veloperRegistrationService\x12\xd1\x01\n\x0bRegisterGcp\x12\x38.google.shopping.merchant.accounts.v1.RegisterGcpRequest\x1a;.google.shopping.merchant.accounts.v1.DeveloperRegistration\"K\x82\xd3\xe4\x93\x02\x45\"@/accounts/v1/{name=accounts/*/developerRegistration}:registerGcp:\x01*\x12\xe3\x01\n\x18GetDeveloperRegistration\x12\x45.google.shopping.merchant.accounts.v1.GetDeveloperRegistrationRequest\x1a;.google.shopping.merchant.accounts.v1.DeveloperRegistration\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/accounts/v1/{name=accounts/*/developerRegistration}\x12\xb2\x01\n\rUnregisterGcp\x12:.google.shopping.merchant.accounts.v1.UnregisterGcpRequest\x1a\x16.google.protobuf.Empty\"M\x82\xd3\xe4\x93\x02G\"B/accounts/v1/{name=accounts/*/developerRegistration}:unregisterGcp:\x01*\x12\xbe\x01\n\x1cGetAccountForGcpRegistration\x12\x16.google.protobuf.Empty\x1aJ.google.shopping.merchant.accounts.v1.GetAccountForGcpRegistrationResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/accounts/v1/accounts:getAccountForGcpRegistration\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x8d\x02\n(com.google.shopping.merchant.accounts.v1B\x1a\x44\x65veloperRegistrationProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\x06proto3"
|
|
15
15
|
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
17
|
|
|
@@ -46,6 +46,7 @@ module Google
|
|
|
46
46
|
RegisterGcpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.RegisterGcpRequest").msgclass
|
|
47
47
|
UnregisterGcpRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.UnregisterGcpRequest").msgclass
|
|
48
48
|
GetDeveloperRegistrationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.GetDeveloperRegistrationRequest").msgclass
|
|
49
|
+
GetAccountForGcpRegistrationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.GetAccountForGcpRegistrationResponse").msgclass
|
|
49
50
|
end
|
|
50
51
|
end
|
|
51
52
|
end
|
|
@@ -45,6 +45,8 @@ module Google
|
|
|
45
45
|
# GCP will still be able to access the API for at most 1 day from the
|
|
46
46
|
# unregister succussful call.
|
|
47
47
|
rpc :UnregisterGcp, ::Google::Shopping::Merchant::Accounts::V1::UnregisterGcpRequest, ::Google::Protobuf::Empty
|
|
48
|
+
# Retrieves the merchant account that the calling GCP is registered with.
|
|
49
|
+
rpc :GetAccountForGcpRegistration, ::Google::Protobuf::Empty, ::Google::Shopping::Merchant::Accounts::V1::GetAccountForGcpRegistrationResponse
|
|
48
50
|
end
|
|
49
51
|
|
|
50
52
|
Stub = Service.rpc_stub_class
|
|
@@ -11,9 +11,10 @@ require 'google/api/resource_pb'
|
|
|
11
11
|
require 'google/protobuf/empty_pb'
|
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
|
13
13
|
require 'google/protobuf/wrappers_pb'
|
|
14
|
+
require 'google/type/latlng_pb'
|
|
14
15
|
|
|
15
16
|
|
|
16
|
-
descriptor_data = "\n2google/shopping/merchant/accounts/v1/regions.proto\x12$google.shopping.merchant.accounts.v1\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\x1egoogle/protobuf/wrappers.proto\"K\n\x10GetRegionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!merchantapi.googleapis.com/Region\"\xac\x01\n\x13\x43reateRegionRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x16\n\tregion_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x06region\x18\x03 \x01(\x0b\x32,.google.shopping.merchant.accounts.v1.RegionB\x03\xe0\x41\x02\"\xa9\x01\n\x19\x42\x61tchCreateRegionsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.CreateRegionRequestB\x03\xe0\x41\x02\"[\n\x1a\x42\x61tchCreateRegionsResponse\x12=\n\x07regions\x18\x01 \x03(\x0b\x32,.google.shopping.merchant.accounts.v1.Region\"\x8e\x01\n\x13UpdateRegionRequest\x12\x41\n\x06region\x18\x01 \x01(\x0b\x32,.google.shopping.merchant.accounts.v1.RegionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xa9\x01\n\x19\x42\x61tchUpdateRegionsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.UpdateRegionRequestB\x03\xe0\x41\x02\"[\n\x1a\x42\x61tchUpdateRegionsResponse\x12=\n\x07regions\x18\x01 \x03(\x0b\x32,.google.shopping.merchant.accounts.v1.Region\"N\n\x13\x44\x65leteRegionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!merchantapi.googleapis.com/Region\"\xa9\x01\n\x19\x42\x61tchDeleteRegionsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.DeleteRegionRequestB\x03\xe0\x41\x02\"\x81\x01\n\x12ListRegionsRequest\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\"m\n\x13ListRegionsResponse\x12=\n\x07regions\x18\x01 \x03(\x0b\x32,.google.shopping.merchant.accounts.v1.Region\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\
|
|
17
|
+
descriptor_data = "\n2google/shopping/merchant/accounts/v1/regions.proto\x12$google.shopping.merchant.accounts.v1\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\x1egoogle/protobuf/wrappers.proto\x1a\x18google/type/latlng.proto\"K\n\x10GetRegionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!merchantapi.googleapis.com/Region\"\xac\x01\n\x13\x43reateRegionRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12\x16\n\tregion_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x06region\x18\x03 \x01(\x0b\x32,.google.shopping.merchant.accounts.v1.RegionB\x03\xe0\x41\x02\"\xa9\x01\n\x19\x42\x61tchCreateRegionsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.CreateRegionRequestB\x03\xe0\x41\x02\"[\n\x1a\x42\x61tchCreateRegionsResponse\x12=\n\x07regions\x18\x01 \x03(\x0b\x32,.google.shopping.merchant.accounts.v1.Region\"\x8e\x01\n\x13UpdateRegionRequest\x12\x41\n\x06region\x18\x01 \x01(\x0b\x32,.google.shopping.merchant.accounts.v1.RegionB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\xa9\x01\n\x19\x42\x61tchUpdateRegionsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.UpdateRegionRequestB\x03\xe0\x41\x02\"[\n\x1a\x42\x61tchUpdateRegionsResponse\x12=\n\x07regions\x18\x01 \x03(\x0b\x32,.google.shopping.merchant.accounts.v1.Region\"N\n\x13\x44\x65leteRegionRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!merchantapi.googleapis.com/Region\"\xa9\x01\n\x19\x42\x61tchDeleteRegionsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12P\n\x08requests\x18\x02 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.DeleteRegionRequestB\x03\xe0\x41\x02\"\x81\x01\n\x12ListRegionsRequest\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\"m\n\x13ListRegionsResponse\x12=\n\x07regions\x18\x01 \x03(\x0b\x32,.google.shopping.merchant.accounts.v1.Region\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc9\x08\n\x06Region\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x88\x01\x01\x12Z\n\x10postal_code_area\x18\x03 \x01(\x0b\x32;.google.shopping.merchant.accounts.v1.Region.PostalCodeAreaB\x03\xe0\x41\x01\x12W\n\x0egeotarget_area\x18\x04 \x01(\x0b\x32:.google.shopping.merchant.accounts.v1.Region.GeoTargetAreaB\x03\xe0\x41\x01\x12\x44\n\x1bregional_inventory_eligible\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12:\n\x11shipping_eligible\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueB\x03\xe0\x41\x03\x12Q\n\x0bradius_area\x18\x07 \x01(\x0b\x32\x37.google.shopping.merchant.accounts.v1.Region.RadiusAreaB\x03\xe0\x41\x01\x1a\xcb\x01\n\x0ePostalCodeArea\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x66\n\x0cpostal_codes\x18\x02 \x03(\x0b\x32K.google.shopping.merchant.accounts.v1.Region.PostalCodeArea.PostalCodeRangeB\x03\xe0\x41\x02\x1a\x37\n\x0fPostalCodeRange\x12\x12\n\x05\x62\x65gin\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x03\x65nd\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a\x34\n\rGeoTargetArea\x12#\n\x16geotarget_criteria_ids\x18\x01 \x03(\x03\x42\x03\xe0\x41\x02\x1a\x8e\x02\n\nRadiusArea\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12)\n\x07lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngB\x03\xe0\x41\x02\x12\x13\n\x06radius\x18\x03 \x01(\x01\x42\x03\xe0\x41\x02\x12^\n\x0cradius_units\x18\x04 \x01(\x0e\x32\x43.google.shopping.merchant.accounts.v1.Region.RadiusArea.RadiusUnitsB\x03\xe0\x41\x01\"F\n\x0bRadiusUnits\x12\x1c\n\x18RADIUS_UNITS_UNSPECIFIED\x10\x00\x12\t\n\x05MILES\x10\x01\x12\x0e\n\nKILOMETERS\x10\x02:\\\xea\x41Y\n!merchantapi.googleapis.com/Region\x12#accounts/{account}/regions/{region}*\x07regions2\x06regionB\x0f\n\r_display_name2\xe8\x0c\n\x0eRegionsService\x12\xaa\x01\n\tGetRegion\x12\x36.google.shopping.merchant.accounts.v1.GetRegionRequest\x1a,.google.shopping.merchant.accounts.v1.Region\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02*\x12(/accounts/v1/{name=accounts/*/regions/*}\x12\xcb\x01\n\x0c\x43reateRegion\x12\x39.google.shopping.merchant.accounts.v1.CreateRegionRequest\x1a,.google.shopping.merchant.accounts.v1.Region\"R\xda\x41\x17parent,region,region_id\x82\xd3\xe4\x93\x02\x32\"(/accounts/v1/{parent=accounts/*}/regions:\x06region\x12\xd8\x01\n\x12\x42\x61tchCreateRegions\x12?.google.shopping.merchant.accounts.v1.BatchCreateRegionsRequest\x1a@.google.shopping.merchant.accounts.v1.BatchCreateRegionsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/accounts/v1/{parent=accounts/*}/regions:batchCreate:\x01*\x12\xcd\x01\n\x0cUpdateRegion\x12\x39.google.shopping.merchant.accounts.v1.UpdateRegionRequest\x1a,.google.shopping.merchant.accounts.v1.Region\"T\xda\x41\x12region,update_mask\x82\xd3\xe4\x93\x02\x39\x32//accounts/v1/{region.name=accounts/*/regions/*}:\x06region\x12\xd8\x01\n\x12\x42\x61tchUpdateRegions\x12?.google.shopping.merchant.accounts.v1.BatchUpdateRegionsRequest\x1a@.google.shopping.merchant.accounts.v1.BatchUpdateRegionsResponse\"?\x82\xd3\xe4\x93\x02\x39\"4/accounts/v1/{parent=accounts/*}/regions:batchUpdate:\x01*\x12\x9a\x01\n\x0c\x44\x65leteRegion\x12\x39.google.shopping.merchant.accounts.v1.DeleteRegionRequest\x1a\x16.google.protobuf.Empty\"7\xda\x41\x04name\x82\xd3\xe4\x93\x02**(/accounts/v1/{name=accounts/*/regions/*}\x12\xae\x01\n\x12\x42\x61tchDeleteRegions\x12?.google.shopping.merchant.accounts.v1.BatchDeleteRegionsRequest\x1a\x16.google.protobuf.Empty\"?\x82\xd3\xe4\x93\x02\x39\"4/accounts/v1/{parent=accounts/*}/regions:batchDelete:\x01*\x12\xbd\x01\n\x0bListRegions\x12\x38.google.shopping.merchant.accounts.v1.ListRegionsRequest\x1a\x39.google.shopping.merchant.accounts.v1.ListRegionsResponse\"9\xda\x41\x06parent\x82\xd3\xe4\x93\x02*\x12(/accounts/v1/{parent=accounts/*}/regions\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xff\x01\n(com.google.shopping.merchant.accounts.v1B\x0cRegionsProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\x06proto3"
|
|
17
18
|
|
|
18
19
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
19
20
|
|
|
@@ -30,6 +31,7 @@ rescue TypeError
|
|
|
30
31
|
imports = [
|
|
31
32
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
32
33
|
["google.protobuf.BoolValue", "google/protobuf/wrappers.proto"],
|
|
34
|
+
["google.type.LatLng", "google/type/latlng.proto"],
|
|
33
35
|
]
|
|
34
36
|
imports.each do |type_name, expected_filename|
|
|
35
37
|
import_file = pool.lookup(type_name).file_descriptor
|
|
@@ -61,6 +63,8 @@ module Google
|
|
|
61
63
|
Region::PostalCodeArea = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Region.PostalCodeArea").msgclass
|
|
62
64
|
Region::PostalCodeArea::PostalCodeRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Region.PostalCodeArea.PostalCodeRange").msgclass
|
|
63
65
|
Region::GeoTargetArea = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Region.GeoTargetArea").msgclass
|
|
66
|
+
Region::RadiusArea = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Region.RadiusArea").msgclass
|
|
67
|
+
Region::RadiusArea::RadiusUnits = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Region.RadiusArea.RadiusUnits").enummodule
|
|
64
68
|
end
|
|
65
69
|
end
|
|
66
70
|
end
|