google-shopping-merchant-accounts-v1 0.a → 0.1.1
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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/shopping/merchant/accounts/v1/accessright_pb.rb +44 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service/client.rb +497 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest/client.rb +464 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest/service_stub.rb +144 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/account_issue_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/client.rb +671 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest/client.rb +624 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest/service_stub.rb +267 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/account_relationships_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service/client.rb +856 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest/client.rb +795 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest/service_stub.rb +391 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/account_services_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/accountissue_pb.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/accountissue_services_pb.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/accountrelationships_pb.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/accountrelationships_services_pb.rb +52 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_pb.rb +68 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/client.rb +987 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/client.rb +935 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/service_stub.rb +447 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/accounts_services_pb.rb +74 -0
- data/lib/google/shopping/merchant/accounts/v1/accountservices_pb.rb +65 -0
- data/lib/google/shopping/merchant/accounts/v1/accountservices_services_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/client.rb +560 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest/client.rb +520 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeedsettings_pb.rb +53 -0
- data/lib/google/shopping/merchant/accounts/v1/autofeedsettings_services_pb.rb +50 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/client.rb +570 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest/client.rb +530 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service.rb +59 -0
- data/lib/google/shopping/merchant/accounts/v1/automaticimprovements_pb.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/automaticimprovements_services_pb.rb +51 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service/client.rb +572 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest/client.rb +532 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/business_identity_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service/client.rb +568 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest/client.rb +528 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/business_info_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/businessidentity_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/businessidentity_services_pb.rb +51 -0
- data/lib/google/shopping/merchant/accounts/v1/businessinfo_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/businessinfo_services_pb.rb +50 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/client.rb +757 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/paths.rb +69 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest/client.rb +703 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest/service_stub.rb +329 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/checkoutsettings_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/checkoutsettings_services_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/customerservice_pb.rb +48 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/client.rb +665 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/client.rb +618 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/service_stub.rb +268 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/developer_registration_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/developerregistration_pb.rb +53 -0
- data/lib/google/shopping/merchant/accounts/v1/developerregistration_services_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/client.rb +579 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/paths.rb +52 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest/client.rb +539 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/email_preferences_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/emailpreferences_pb.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/emailpreferences_services_pb.rb +64 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/client.rb +585 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest/client.rb +545 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/gbpaccounts_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/gbpaccounts_services_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_pb.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service/client.rb +774 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest/client.rb +720 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest/service_stub.rb +330 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/homepage_services_pb.rb +73 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/client.rb +584 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/paths.rb +71 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest/client.rb +544 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service.rb +59 -0
- data/lib/google/shopping/merchant/accounts/v1/lfpproviders_pb.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/lfpproviders_services_pb.rb +51 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/client.rb +875 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest/client.rb +814 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest/service_stub.rb +391 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannelsettings_pb.rb +68 -0
- data/lib/google/shopping/merchant/accounts/v1/omnichannelsettings_services_pb.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_pb.rb +68 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/client.rb +771 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest/client.rb +717 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest/service_stub.rb +328 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service.rb +61 -0
- data/lib/google/shopping/merchant/accounts/v1/online_return_policy_services_pb.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/phoneverificationstate_pb.rb +44 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service/client.rb +770 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service/rest/client.rb +716 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service/rest/service_stub.rb +329 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service/rest.rb +64 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_service.rb +67 -0
- data/lib/google/shopping/merchant/accounts/v1/programs_services_pb.rb +63 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_pb.rb +63 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service/client.rb +869 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service/rest/client.rb +808 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service/rest/service_stub.rb +390 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service/rest.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_service.rb +61 -0
- data/lib/google/shopping/merchant/accounts/v1/regions_services_pb.rb +62 -0
- data/lib/google/shopping/merchant/accounts/v1/rest.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/client.rb +564 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/paths.rb +63 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest/client.rb +524 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest/service_stub.rb +206 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1/shippingsettings_pb.rb +83 -0
- data/lib/google/shopping/merchant/accounts/v1/shippingsettings_services_pb.rb +51 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/client.rb +563 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest/client.rb +523 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest/service_stub.rb +205 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/client.rb +654 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/paths.rb +63 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest/client.rb +615 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest/service_stub.rb +264 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/termsofservice_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/termsofservice_services_pb.rb +52 -0
- data/lib/google/shopping/merchant/accounts/v1/termsofserviceagreementstate_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1/termsofserviceagreementstate_services_pb.rb +53 -0
- data/lib/google/shopping/merchant/accounts/v1/termsofservicekind_pb.rb +44 -0
- data/lib/google/shopping/merchant/accounts/v1/user_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/client.rb +879 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/rest/client.rb +818 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/rest/service_stub.rb +390 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1/user_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1/user_services_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1/version.rb +7 -2
- data/lib/google/shopping/merchant/accounts/v1.rb +68 -0
- data/lib/google-shopping-merchant-accounts-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/accessright.rb +51 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/accountissue.rb +144 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/accountrelationships.rb +124 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/accounts.rb +250 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/accountservices.rb +288 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/autofeedsettings.rb +75 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/automaticimprovements.rb +235 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/businessidentity.rb +140 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/businessinfo.rb +91 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/checkoutsettings.rb +187 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/customerservice.rb +43 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/developerregistration.rb +82 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/emailpreferences.rb +87 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/gbpaccounts.rb +123 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/homepage.rb +106 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/lfpproviders.rb +108 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/omnichannelsettings.rb +336 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/online_return_policy.rb +317 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/phoneverificationstate.rb +40 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/programs.rb +170 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/regions.rb +195 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb +757 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/termsofservice.rb +118 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/termsofserviceagreementstate.rb +136 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/termsofservicekind.rb +37 -0
- data/proto_docs/google/shopping/merchant/accounts/v1/user.rb +164 -0
- data/proto_docs/google/shopping/type/types.rb +210 -0
- data/proto_docs/google/type/date.rb +53 -0
- data/proto_docs/google/type/datetime.rb +103 -0
- data/proto_docs/google/type/phone_number.rb +116 -0
- data/proto_docs/google/type/postal_address.rb +135 -0
- metadata +309 -9
@@ -0,0 +1,624 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/errors"
|
20
|
+
require "google/shopping/merchant/accounts/v1/accountrelationships_pb"
|
21
|
+
require "google/shopping/merchant/accounts/v1/account_relationships_service/rest/service_stub"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Shopping
|
25
|
+
module Merchant
|
26
|
+
module Accounts
|
27
|
+
module V1
|
28
|
+
module AccountRelationshipsService
|
29
|
+
module Rest
|
30
|
+
##
|
31
|
+
# REST client for the AccountRelationshipsService service.
|
32
|
+
#
|
33
|
+
# Service to support AccountRelationship API.
|
34
|
+
#
|
35
|
+
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
39
|
+
# @private
|
40
|
+
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
41
|
+
|
42
|
+
include Paths
|
43
|
+
|
44
|
+
# @private
|
45
|
+
attr_reader :account_relationships_service_stub
|
46
|
+
|
47
|
+
##
|
48
|
+
# Configure the AccountRelationshipsService Client class.
|
49
|
+
#
|
50
|
+
# See {::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client::Configuration}
|
51
|
+
# for a description of the configuration fields.
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
#
|
55
|
+
# # Modify the configuration for all AccountRelationshipsService clients
|
56
|
+
# ::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.configure do |config|
|
57
|
+
# config.timeout = 10.0
|
58
|
+
# end
|
59
|
+
#
|
60
|
+
# @yield [config] Configure the Client client.
|
61
|
+
# @yieldparam config [Client::Configuration]
|
62
|
+
#
|
63
|
+
# @return [Client::Configuration]
|
64
|
+
#
|
65
|
+
def self.configure
|
66
|
+
@configure ||= begin
|
67
|
+
namespace = ["Google", "Shopping", "Merchant", "Accounts", "V1"]
|
68
|
+
parent_config = while namespace.any?
|
69
|
+
parent_name = namespace.join "::"
|
70
|
+
parent_const = const_get parent_name
|
71
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
72
|
+
namespace.pop
|
73
|
+
end
|
74
|
+
default_config = Client::Configuration.new parent_config
|
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
|
+
|
81
|
+
default_config
|
82
|
+
end
|
83
|
+
yield @configure if block_given?
|
84
|
+
@configure
|
85
|
+
end
|
86
|
+
|
87
|
+
##
|
88
|
+
# Configure the AccountRelationshipsService Client instance.
|
89
|
+
#
|
90
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
91
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
92
|
+
# should be made on {Client.configure}.
|
93
|
+
#
|
94
|
+
# See {::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client::Configuration}
|
95
|
+
# for a description of the configuration fields.
|
96
|
+
#
|
97
|
+
# @yield [config] Configure the Client client.
|
98
|
+
# @yieldparam config [Client::Configuration]
|
99
|
+
#
|
100
|
+
# @return [Client::Configuration]
|
101
|
+
#
|
102
|
+
def configure
|
103
|
+
yield @config if block_given?
|
104
|
+
@config
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# The effective universe domain
|
109
|
+
#
|
110
|
+
# @return [String]
|
111
|
+
#
|
112
|
+
def universe_domain
|
113
|
+
@account_relationships_service_stub.universe_domain
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# Create a new AccountRelationshipsService REST client object.
|
118
|
+
#
|
119
|
+
# @example
|
120
|
+
#
|
121
|
+
# # Create a client using the default configuration
|
122
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.new
|
123
|
+
#
|
124
|
+
# # Create a client using a custom configuration
|
125
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.new do |config|
|
126
|
+
# config.timeout = 10.0
|
127
|
+
# end
|
128
|
+
#
|
129
|
+
# @yield [config] Configure the AccountRelationshipsService client.
|
130
|
+
# @yieldparam config [Client::Configuration]
|
131
|
+
#
|
132
|
+
def initialize
|
133
|
+
# Create the configuration object
|
134
|
+
@config = Configuration.new Client.configure
|
135
|
+
|
136
|
+
# Yield the configuration if needed
|
137
|
+
yield @config if block_given?
|
138
|
+
|
139
|
+
# Create credentials
|
140
|
+
credentials = @config.credentials
|
141
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
142
|
+
# but only if the default endpoint does not have a region prefix.
|
143
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
144
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
145
|
+
!@config.endpoint.split(".").first.include?("-"))
|
146
|
+
credentials ||= Credentials.default scope: @config.scope,
|
147
|
+
enable_self_signed_jwt: enable_self_signed_jwt
|
148
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
149
|
+
credentials = Credentials.new credentials, scope: @config.scope
|
150
|
+
end
|
151
|
+
|
152
|
+
@quota_project_id = @config.quota_project
|
153
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
154
|
+
|
155
|
+
@account_relationships_service_stub = ::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::ServiceStub.new(
|
156
|
+
endpoint: @config.endpoint,
|
157
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
158
|
+
universe_domain: @config.universe_domain,
|
159
|
+
credentials: credentials,
|
160
|
+
logger: @config.logger
|
161
|
+
)
|
162
|
+
|
163
|
+
@account_relationships_service_stub.logger(stub: true)&.info do |entry|
|
164
|
+
entry.set_system_name
|
165
|
+
entry.set_service
|
166
|
+
entry.message = "Created client for #{entry.service}"
|
167
|
+
entry.set_credentials_fields credentials
|
168
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
169
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
170
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
##
|
175
|
+
# The logger used for request/response debug logging.
|
176
|
+
#
|
177
|
+
# @return [Logger]
|
178
|
+
#
|
179
|
+
def logger
|
180
|
+
@account_relationships_service_stub.logger
|
181
|
+
end
|
182
|
+
|
183
|
+
# Service calls
|
184
|
+
|
185
|
+
##
|
186
|
+
# Retrieve an account relationship.
|
187
|
+
#
|
188
|
+
# @overload get_account_relationship(request, options = nil)
|
189
|
+
# Pass arguments to `get_account_relationship` via a request object, either of type
|
190
|
+
# {::Google::Shopping::Merchant::Accounts::V1::GetAccountRelationshipRequest} or an equivalent Hash.
|
191
|
+
#
|
192
|
+
# @param request [::Google::Shopping::Merchant::Accounts::V1::GetAccountRelationshipRequest, ::Hash]
|
193
|
+
# A request object representing the call parameters. Required. To specify no
|
194
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
195
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
196
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
197
|
+
#
|
198
|
+
# @overload get_account_relationship(name: nil)
|
199
|
+
# Pass arguments to `get_account_relationship` via keyword arguments. Note that at
|
200
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
201
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
202
|
+
#
|
203
|
+
# @param name [::String]
|
204
|
+
# Required. The resource name of the account relationship to get.
|
205
|
+
# Format: `accounts/{account}/relationships/{relationship}`. For example,
|
206
|
+
# `accounts/123456/relationships/567890`.
|
207
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
208
|
+
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::AccountRelationship]
|
209
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
210
|
+
#
|
211
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1::AccountRelationship]
|
212
|
+
#
|
213
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
214
|
+
#
|
215
|
+
# @example Basic example
|
216
|
+
# require "google/shopping/merchant/accounts/v1"
|
217
|
+
#
|
218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
219
|
+
# client = Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.new
|
220
|
+
#
|
221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
222
|
+
# request = Google::Shopping::Merchant::Accounts::V1::GetAccountRelationshipRequest.new
|
223
|
+
#
|
224
|
+
# # Call the get_account_relationship method.
|
225
|
+
# result = client.get_account_relationship request
|
226
|
+
#
|
227
|
+
# # The returned object is of type Google::Shopping::Merchant::Accounts::V1::AccountRelationship.
|
228
|
+
# p result
|
229
|
+
#
|
230
|
+
def get_account_relationship request, options = nil
|
231
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
232
|
+
|
233
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1::GetAccountRelationshipRequest
|
234
|
+
|
235
|
+
# Converts hash and nil to an options object
|
236
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
237
|
+
|
238
|
+
# Customize the options with defaults
|
239
|
+
call_metadata = @config.rpcs.get_account_relationship.metadata.to_h
|
240
|
+
|
241
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION,
|
245
|
+
transports_version_send: [:rest]
|
246
|
+
|
247
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
248
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
249
|
+
|
250
|
+
options.apply_defaults timeout: @config.rpcs.get_account_relationship.timeout,
|
251
|
+
metadata: call_metadata,
|
252
|
+
retry_policy: @config.rpcs.get_account_relationship.retry_policy
|
253
|
+
|
254
|
+
options.apply_defaults timeout: @config.timeout,
|
255
|
+
metadata: @config.metadata,
|
256
|
+
retry_policy: @config.retry_policy
|
257
|
+
|
258
|
+
@account_relationships_service_stub.get_account_relationship request, options do |result, operation|
|
259
|
+
yield result, operation if block_given?
|
260
|
+
end
|
261
|
+
rescue ::Gapic::Rest::Error => e
|
262
|
+
raise ::Google::Cloud::Error.from_error(e)
|
263
|
+
end
|
264
|
+
|
265
|
+
##
|
266
|
+
# Updates the account relationship. Executing this method requires admin
|
267
|
+
# access.
|
268
|
+
#
|
269
|
+
# @overload update_account_relationship(request, options = nil)
|
270
|
+
# Pass arguments to `update_account_relationship` via a request object, either of type
|
271
|
+
# {::Google::Shopping::Merchant::Accounts::V1::UpdateAccountRelationshipRequest} or an equivalent Hash.
|
272
|
+
#
|
273
|
+
# @param request [::Google::Shopping::Merchant::Accounts::V1::UpdateAccountRelationshipRequest, ::Hash]
|
274
|
+
# A request object representing the call parameters. Required. To specify no
|
275
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
276
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
277
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
278
|
+
#
|
279
|
+
# @overload update_account_relationship(account_relationship: nil, update_mask: nil)
|
280
|
+
# Pass arguments to `update_account_relationship` via keyword arguments. Note that at
|
281
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
282
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
283
|
+
#
|
284
|
+
# @param account_relationship [::Google::Shopping::Merchant::Accounts::V1::AccountRelationship, ::Hash]
|
285
|
+
# Required. The new version of the account relationship.
|
286
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
287
|
+
# Optional. List of fields being updated.
|
288
|
+
#
|
289
|
+
# The following fields are supported (in both `snake_case` and
|
290
|
+
# `lowerCamelCase`):
|
291
|
+
#
|
292
|
+
# - `account_id_alias`
|
293
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
294
|
+
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::AccountRelationship]
|
295
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
296
|
+
#
|
297
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1::AccountRelationship]
|
298
|
+
#
|
299
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/shopping/merchant/accounts/v1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Shopping::Merchant::Accounts::V1::UpdateAccountRelationshipRequest.new
|
309
|
+
#
|
310
|
+
# # Call the update_account_relationship method.
|
311
|
+
# result = client.update_account_relationship request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Google::Shopping::Merchant::Accounts::V1::AccountRelationship.
|
314
|
+
# p result
|
315
|
+
#
|
316
|
+
def update_account_relationship request, options = nil
|
317
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
318
|
+
|
319
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1::UpdateAccountRelationshipRequest
|
320
|
+
|
321
|
+
# Converts hash and nil to an options object
|
322
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
323
|
+
|
324
|
+
# Customize the options with defaults
|
325
|
+
call_metadata = @config.rpcs.update_account_relationship.metadata.to_h
|
326
|
+
|
327
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
328
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
329
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
330
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION,
|
331
|
+
transports_version_send: [:rest]
|
332
|
+
|
333
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
334
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
335
|
+
|
336
|
+
options.apply_defaults timeout: @config.rpcs.update_account_relationship.timeout,
|
337
|
+
metadata: call_metadata,
|
338
|
+
retry_policy: @config.rpcs.update_account_relationship.retry_policy
|
339
|
+
|
340
|
+
options.apply_defaults timeout: @config.timeout,
|
341
|
+
metadata: @config.metadata,
|
342
|
+
retry_policy: @config.retry_policy
|
343
|
+
|
344
|
+
@account_relationships_service_stub.update_account_relationship request, options do |result, operation|
|
345
|
+
yield result, operation if block_given?
|
346
|
+
end
|
347
|
+
rescue ::Gapic::Rest::Error => e
|
348
|
+
raise ::Google::Cloud::Error.from_error(e)
|
349
|
+
end
|
350
|
+
|
351
|
+
##
|
352
|
+
# List account relationships for the specified account.
|
353
|
+
#
|
354
|
+
# @overload list_account_relationships(request, options = nil)
|
355
|
+
# Pass arguments to `list_account_relationships` via a request object, either of type
|
356
|
+
# {::Google::Shopping::Merchant::Accounts::V1::ListAccountRelationshipsRequest} or an equivalent Hash.
|
357
|
+
#
|
358
|
+
# @param request [::Google::Shopping::Merchant::Accounts::V1::ListAccountRelationshipsRequest, ::Hash]
|
359
|
+
# A request object representing the call parameters. Required. To specify no
|
360
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
361
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
362
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
363
|
+
#
|
364
|
+
# @overload list_account_relationships(parent: nil, page_token: nil, page_size: nil)
|
365
|
+
# Pass arguments to `list_account_relationships` via keyword arguments. Note that at
|
366
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
367
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
368
|
+
#
|
369
|
+
# @param parent [::String]
|
370
|
+
# Required. The parent account of the account relationship to filter by.
|
371
|
+
# Format: `accounts/{account}`
|
372
|
+
# @param page_token [::String]
|
373
|
+
# Optional. The token returned by the previous `list` request.
|
374
|
+
# @param page_size [::Integer]
|
375
|
+
# Optional. The maximum number of elements to return in the response. Use for
|
376
|
+
# paging. If no `page_size` is specified, `100` is used as the default value.
|
377
|
+
# The maximum allowed value is `1000`.
|
378
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
379
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Shopping::Merchant::Accounts::V1::AccountRelationship>]
|
380
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
381
|
+
#
|
382
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Shopping::Merchant::Accounts::V1::AccountRelationship>]
|
383
|
+
#
|
384
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
385
|
+
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/shopping/merchant/accounts/v1"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Shopping::Merchant::Accounts::V1::ListAccountRelationshipsRequest.new
|
394
|
+
#
|
395
|
+
# # Call the list_account_relationships method.
|
396
|
+
# result = client.list_account_relationships request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
399
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
400
|
+
# result.each do |item|
|
401
|
+
# # Each element is of type ::Google::Shopping::Merchant::Accounts::V1::AccountRelationship.
|
402
|
+
# p item
|
403
|
+
# end
|
404
|
+
#
|
405
|
+
def list_account_relationships request, options = nil
|
406
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
407
|
+
|
408
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1::ListAccountRelationshipsRequest
|
409
|
+
|
410
|
+
# Converts hash and nil to an options object
|
411
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
412
|
+
|
413
|
+
# Customize the options with defaults
|
414
|
+
call_metadata = @config.rpcs.list_account_relationships.metadata.to_h
|
415
|
+
|
416
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
417
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
418
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
419
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1::VERSION,
|
420
|
+
transports_version_send: [:rest]
|
421
|
+
|
422
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
423
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
424
|
+
|
425
|
+
options.apply_defaults timeout: @config.rpcs.list_account_relationships.timeout,
|
426
|
+
metadata: call_metadata,
|
427
|
+
retry_policy: @config.rpcs.list_account_relationships.retry_policy
|
428
|
+
|
429
|
+
options.apply_defaults timeout: @config.timeout,
|
430
|
+
metadata: @config.metadata,
|
431
|
+
retry_policy: @config.retry_policy
|
432
|
+
|
433
|
+
@account_relationships_service_stub.list_account_relationships request, options do |result, operation|
|
434
|
+
result = ::Gapic::Rest::PagedEnumerable.new @account_relationships_service_stub, :list_account_relationships, "account_relationships", request, result, options
|
435
|
+
yield result, operation if block_given?
|
436
|
+
throw :response, result
|
437
|
+
end
|
438
|
+
rescue ::Gapic::Rest::Error => e
|
439
|
+
raise ::Google::Cloud::Error.from_error(e)
|
440
|
+
end
|
441
|
+
|
442
|
+
##
|
443
|
+
# Configuration class for the AccountRelationshipsService REST API.
|
444
|
+
#
|
445
|
+
# This class represents the configuration for AccountRelationshipsService REST,
|
446
|
+
# providing control over timeouts, retry behavior, logging, transport
|
447
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
448
|
+
# applied individually to specific RPCs. See
|
449
|
+
# {::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client::Configuration::Rpcs}
|
450
|
+
# for a list of RPCs that can be configured independently.
|
451
|
+
#
|
452
|
+
# Configuration can be applied globally to all clients, or to a single client
|
453
|
+
# on construction.
|
454
|
+
#
|
455
|
+
# @example
|
456
|
+
#
|
457
|
+
# # Modify the global config, setting the timeout for
|
458
|
+
# # get_account_relationship to 20 seconds,
|
459
|
+
# # and all remaining timeouts to 10 seconds.
|
460
|
+
# ::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.configure do |config|
|
461
|
+
# config.timeout = 10.0
|
462
|
+
# config.rpcs.get_account_relationship.timeout = 20.0
|
463
|
+
# end
|
464
|
+
#
|
465
|
+
# # Apply the above configuration only to a new client.
|
466
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1::AccountRelationshipsService::Rest::Client.new do |config|
|
467
|
+
# config.timeout = 10.0
|
468
|
+
# config.rpcs.get_account_relationship.timeout = 20.0
|
469
|
+
# end
|
470
|
+
#
|
471
|
+
# @!attribute [rw] endpoint
|
472
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
473
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
474
|
+
# @return [::String,nil]
|
475
|
+
# @!attribute [rw] credentials
|
476
|
+
# Credentials to send with calls. You may provide any of the following types:
|
477
|
+
# * (`String`) The path to a service account key file in JSON format
|
478
|
+
# * (`Hash`) A service account key as a Hash
|
479
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
480
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
481
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
482
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
483
|
+
# * (`nil`) indicating no credentials
|
484
|
+
#
|
485
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
486
|
+
# external source for authentication to Google Cloud, you must validate it before
|
487
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
488
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
489
|
+
# For more information, refer to [Validate credential configurations from external
|
490
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
491
|
+
# @return [::Object]
|
492
|
+
# @!attribute [rw] scope
|
493
|
+
# The OAuth scopes
|
494
|
+
# @return [::Array<::String>]
|
495
|
+
# @!attribute [rw] lib_name
|
496
|
+
# The library name as recorded in instrumentation and logging
|
497
|
+
# @return [::String]
|
498
|
+
# @!attribute [rw] lib_version
|
499
|
+
# The library version as recorded in instrumentation and logging
|
500
|
+
# @return [::String]
|
501
|
+
# @!attribute [rw] timeout
|
502
|
+
# The call timeout in seconds.
|
503
|
+
# @return [::Numeric]
|
504
|
+
# @!attribute [rw] metadata
|
505
|
+
# Additional headers to be sent with the call.
|
506
|
+
# @return [::Hash{::Symbol=>::String}]
|
507
|
+
# @!attribute [rw] retry_policy
|
508
|
+
# The retry policy. The value is a hash with the following keys:
|
509
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
510
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
511
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
512
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
513
|
+
# trigger a retry.
|
514
|
+
# @return [::Hash]
|
515
|
+
# @!attribute [rw] quota_project
|
516
|
+
# A separate project against which to charge quota.
|
517
|
+
# @return [::String]
|
518
|
+
# @!attribute [rw] universe_domain
|
519
|
+
# The universe domain within which to make requests. This determines the
|
520
|
+
# default endpoint URL. The default value of nil uses the environment
|
521
|
+
# universe (usually the default "googleapis.com" universe).
|
522
|
+
# @return [::String,nil]
|
523
|
+
# @!attribute [rw] logger
|
524
|
+
# A custom logger to use for request/response debug logging, or the value
|
525
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
526
|
+
# explicitly disable logging.
|
527
|
+
# @return [::Logger,:default,nil]
|
528
|
+
#
|
529
|
+
class Configuration
|
530
|
+
extend ::Gapic::Config
|
531
|
+
|
532
|
+
# @private
|
533
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
534
|
+
DEFAULT_ENDPOINT = "merchantapi.googleapis.com"
|
535
|
+
|
536
|
+
config_attr :endpoint, nil, ::String, nil
|
537
|
+
config_attr :credentials, nil do |value|
|
538
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
539
|
+
allowed.any? { |klass| klass === value }
|
540
|
+
end
|
541
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
542
|
+
config_attr :lib_name, nil, ::String, nil
|
543
|
+
config_attr :lib_version, nil, ::String, nil
|
544
|
+
config_attr :timeout, nil, ::Numeric, nil
|
545
|
+
config_attr :metadata, nil, ::Hash, nil
|
546
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
547
|
+
config_attr :quota_project, nil, ::String, nil
|
548
|
+
config_attr :universe_domain, nil, ::String, nil
|
549
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
550
|
+
|
551
|
+
# @private
|
552
|
+
def initialize parent_config = nil
|
553
|
+
@parent_config = parent_config unless parent_config.nil?
|
554
|
+
|
555
|
+
yield self if block_given?
|
556
|
+
end
|
557
|
+
|
558
|
+
##
|
559
|
+
# Configurations for individual RPCs
|
560
|
+
# @return [Rpcs]
|
561
|
+
#
|
562
|
+
def rpcs
|
563
|
+
@rpcs ||= begin
|
564
|
+
parent_rpcs = nil
|
565
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
566
|
+
Rpcs.new parent_rpcs
|
567
|
+
end
|
568
|
+
end
|
569
|
+
|
570
|
+
##
|
571
|
+
# Configuration RPC class for the AccountRelationshipsService API.
|
572
|
+
#
|
573
|
+
# Includes fields providing the configuration for each RPC in this service.
|
574
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
575
|
+
# the following configuration fields:
|
576
|
+
#
|
577
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
578
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
579
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
580
|
+
# include the following keys:
|
581
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
582
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
583
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
584
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
585
|
+
# trigger a retry.
|
586
|
+
#
|
587
|
+
class Rpcs
|
588
|
+
##
|
589
|
+
# RPC-specific configuration for `get_account_relationship`
|
590
|
+
# @return [::Gapic::Config::Method]
|
591
|
+
#
|
592
|
+
attr_reader :get_account_relationship
|
593
|
+
##
|
594
|
+
# RPC-specific configuration for `update_account_relationship`
|
595
|
+
# @return [::Gapic::Config::Method]
|
596
|
+
#
|
597
|
+
attr_reader :update_account_relationship
|
598
|
+
##
|
599
|
+
# RPC-specific configuration for `list_account_relationships`
|
600
|
+
# @return [::Gapic::Config::Method]
|
601
|
+
#
|
602
|
+
attr_reader :list_account_relationships
|
603
|
+
|
604
|
+
# @private
|
605
|
+
def initialize parent_rpcs = nil
|
606
|
+
get_account_relationship_config = parent_rpcs.get_account_relationship if parent_rpcs.respond_to? :get_account_relationship
|
607
|
+
@get_account_relationship = ::Gapic::Config::Method.new get_account_relationship_config
|
608
|
+
update_account_relationship_config = parent_rpcs.update_account_relationship if parent_rpcs.respond_to? :update_account_relationship
|
609
|
+
@update_account_relationship = ::Gapic::Config::Method.new update_account_relationship_config
|
610
|
+
list_account_relationships_config = parent_rpcs.list_account_relationships if parent_rpcs.respond_to? :list_account_relationships
|
611
|
+
@list_account_relationships = ::Gapic::Config::Method.new list_account_relationships_config
|
612
|
+
|
613
|
+
yield self if block_given?
|
614
|
+
end
|
615
|
+
end
|
616
|
+
end
|
617
|
+
end
|
618
|
+
end
|
619
|
+
end
|
620
|
+
end
|
621
|
+
end
|
622
|
+
end
|
623
|
+
end
|
624
|
+
end
|