google-shopping-merchant-accounts-v1beta 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_pb.rb +1 -1
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/client.rb +9 -2
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/client.rb +9 -2
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_services_pb.rb +5 -1
- data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2f6f2338a43af794906b544cfc9d5abe09aa175edf87335054bcc1359a1298b
|
4
|
+
data.tar.gz: 8c7c247795eac76c10ea0c537dde90dfe31434d0eaa14f28336a79cd280cace8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b07e40eb9ab09551f949108c9032d91c82803d24ccd767182ed6799ec3ed24d3baf27c90adc0497323adfade1046d79b43f2c1dc6db2506923c93ac7b7e36a60
|
7
|
+
data.tar.gz: b4a6ead03463b7df794d0fb447eefa0badb2919d9f999a6358843c4612d8d3ea62a6536e80f87d84965dc89321683874458c0114f3b7be5f59afb6953a3eb627
|
@@ -15,7 +15,7 @@ require 'google/shopping/merchant/accounts/v1beta/user_pb'
|
|
15
15
|
require 'google/type/datetime_pb'
|
16
16
|
|
17
17
|
|
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\"
|
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"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
@@ -353,6 +353,9 @@ module Google
|
|
353
353
|
# Deletes the specified account regardless of its type: standalone, MCA or
|
354
354
|
# sub-account. Deleting an MCA leads to the deletion of all of its
|
355
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.
|
356
359
|
#
|
357
360
|
# @overload delete_account(request, options = nil)
|
358
361
|
# Pass arguments to `delete_account` via a request object, either of type
|
@@ -364,7 +367,7 @@ module Google
|
|
364
367
|
# @param options [::Gapic::CallOptions, ::Hash]
|
365
368
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
366
369
|
#
|
367
|
-
# @overload delete_account(name: nil)
|
370
|
+
# @overload delete_account(name: nil, force: nil)
|
368
371
|
# Pass arguments to `delete_account` via keyword arguments. Note that at
|
369
372
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
370
373
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -372,6 +375,9 @@ module Google
|
|
372
375
|
# @param name [::String]
|
373
376
|
# Required. The name of the account to delete.
|
374
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.
|
375
381
|
#
|
376
382
|
# @yield [response, operation] Access the result along with the RPC operation
|
377
383
|
# @yieldparam response [::Google::Protobuf::Empty]
|
@@ -532,7 +538,8 @@ module Google
|
|
532
538
|
# constraints of the request such as page size or filters.
|
533
539
|
# This is not just listing the sub-accounts of an MCA, but all accounts the
|
534
540
|
# calling user has access to including other MCAs, linked accounts,
|
535
|
-
# 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.
|
536
543
|
#
|
537
544
|
# @overload list_accounts(request, options = nil)
|
538
545
|
# Pass arguments to `list_accounts` via a request object, either of type
|
@@ -340,6 +340,9 @@ module Google
|
|
340
340
|
# Deletes the specified account regardless of its type: standalone, MCA or
|
341
341
|
# sub-account. Deleting an MCA leads to the deletion of all of its
|
342
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.
|
343
346
|
#
|
344
347
|
# @overload delete_account(request, options = nil)
|
345
348
|
# Pass arguments to `delete_account` via a request object, either of type
|
@@ -351,7 +354,7 @@ module Google
|
|
351
354
|
# @param options [::Gapic::CallOptions, ::Hash]
|
352
355
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
353
356
|
#
|
354
|
-
# @overload delete_account(name: nil)
|
357
|
+
# @overload delete_account(name: nil, force: nil)
|
355
358
|
# Pass arguments to `delete_account` via keyword arguments. Note that at
|
356
359
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
357
360
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -359,6 +362,9 @@ module Google
|
|
359
362
|
# @param name [::String]
|
360
363
|
# Required. The name of the account to delete.
|
361
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.
|
362
368
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
363
369
|
# @yieldparam result [::Google::Protobuf::Empty]
|
364
370
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -505,7 +511,8 @@ module Google
|
|
505
511
|
# constraints of the request such as page size or filters.
|
506
512
|
# This is not just listing the sub-accounts of an MCA, but all accounts the
|
507
513
|
# calling user has access to including other MCAs, linked accounts,
|
508
|
-
# 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.
|
509
516
|
#
|
510
517
|
# @overload list_accounts(request, options = nil)
|
511
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
|
@@ -132,6 +132,10 @@ module Google
|
|
132
132
|
# @return [::String]
|
133
133
|
# Required. The name of the account to delete.
|
134
134
|
# Format: `accounts/{account}`
|
135
|
+
# @!attribute [rw] force
|
136
|
+
# @return [::Boolean]
|
137
|
+
# Optional. If set to `true`, the account is deleted even if it provides
|
138
|
+
# services to other accounts or has processed offers.
|
135
139
|
class DeleteAccountRequest
|
136
140
|
include ::Google::Protobuf::MessageExts
|
137
141
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-accounts-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|