google-shopping-merchant-accounts-v1beta 0.a → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +143 -8
- data/lib/google/shopping/merchant/accounts/v1beta/accessright_pb.rb +44 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/client.rb +452 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest/client.rb +419 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest/service_stub.rb +130 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_issue_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_pb.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/client.rb +633 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest/client.rb +586 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest/service_stub.rb +249 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service/rest.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_service.rb +61 -0
- data/lib/google/shopping/merchant/accounts/v1beta/account_tax_services_pb.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accountissue_pb.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accountissue_services_pb.rb +47 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_pb.rb +67 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/client.rb +942 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/paths.rb +80 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/client.rb +890 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest/service_stub.rb +423 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/accounts_services_pb.rb +71 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/client.rb +525 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/client.rb +485 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest/service_stub.rb +190 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_identity_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/client.rb +524 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/client.rb +484 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest/service_stub.rb +190 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/business_info_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/businessidentity_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1beta/businessidentity_services_pb.rb +51 -0
- data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1beta/businessinfo_services_pb.rb +50 -0
- data/lib/google/shopping/merchant/accounts/v1beta/customerservice_pb.rb +48 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/client.rb +539 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/paths.rb +52 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/client.rb +499 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest/service_stub.rb +190 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/rest.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/email_preferences_service.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1beta/emailpreferences_pb.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/emailpreferences_services_pb.rb +65 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_pb.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/client.rb +724 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/client.rb +670 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest/service_stub.rb +310 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/homepage_services_pb.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb +61 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb +551 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb +511 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/service_stub.rb +189 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service.rb +61 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_services_pb.rb +53 -0
- data/lib/google/shopping/merchant/accounts/v1beta/phoneverificationstate_pb.rb +44 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/client.rb +734 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/client.rb +680 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest/service_stub.rb +309 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service/rest.rb +64 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_service.rb +67 -0
- data/lib/google/shopping/merchant/accounts/v1beta/programs_services_pb.rb +65 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_pb.rb +63 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/client.rb +835 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/client.rb +774 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest/service_stub.rb +368 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service/rest.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_service.rb +61 -0
- data/lib/google/shopping/merchant/accounts/v1beta/regions_services_pb.rb +62 -0
- data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +52 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/client.rb +526 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/paths.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/rest/client.rb +486 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/rest/service_stub.rb +190 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shipping_settings_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shippingsettings_pb.rb +83 -0
- data/lib/google/shopping/merchant/accounts/v1beta/shippingsettings_services_pb.rb +51 -0
- data/lib/google/shopping/merchant/accounts/v1beta/tax_rule_pb.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/client.rb +522 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/client.rb +482 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest/service_stub.rb +189 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_agreement_state_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/client.rb +623 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/paths.rb +63 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/client.rb +584 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest/service_stub.rb +246 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/terms_of_service_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_pb.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/termsofservice_services_pb.rb +52 -0
- data/lib/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate_services_pb.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/termsofservicekind_pb.rb +44 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/client.rb +838 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/paths.rb +66 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/client.rb +777 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest/service_stub.rb +368 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service/rest.rb +54 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_service.rb +57 -0
- data/lib/google/shopping/merchant/accounts/v1beta/user_services_pb.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/version.rb +7 -2
- data/lib/google/shopping/merchant/accounts/v1beta.rb +60 -0
- data/lib/google-shopping-merchant-accounts-v1beta.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +420 -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/timestamp.rb +127 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accessright.rb +43 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/account_tax.rb +101 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accountissue.rb +142 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/accounts.rb +219 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/businessidentity.rb +129 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb +72 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/customerservice.rb +43 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/emailpreferences.rb +82 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/homepage.rb +87 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/online_return_policy.rb +238 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/phoneverificationstate.rb +40 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/programs.rb +160 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/regions.rb +195 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/shippingsettings.rb +743 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/tax_rule.rb +88 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservice.rb +99 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofserviceagreementstate.rb +132 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/termsofservicekind.rb +37 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/user.rb +156 -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 +99 -0
- data/proto_docs/google/type/interval.rb +45 -0
- data/proto_docs/google/type/phone_number.rb +112 -0
- data/proto_docs/google/type/postal_address.rb +135 -0
- metadata +234 -10
@@ -0,0 +1,525 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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/v1beta/businessidentity_pb"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Shopping
|
24
|
+
module Merchant
|
25
|
+
module Accounts
|
26
|
+
module V1beta
|
27
|
+
module BusinessIdentityService
|
28
|
+
##
|
29
|
+
# Client for the BusinessIdentityService service.
|
30
|
+
#
|
31
|
+
# Service to support [business
|
32
|
+
# identity](https://support.google.com/merchants/answer/12564247) API.
|
33
|
+
#
|
34
|
+
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
38
|
+
# @private
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
40
|
+
|
41
|
+
include Paths
|
42
|
+
|
43
|
+
# @private
|
44
|
+
attr_reader :business_identity_service_stub
|
45
|
+
|
46
|
+
##
|
47
|
+
# Configure the BusinessIdentityService Client class.
|
48
|
+
#
|
49
|
+
# See {::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client::Configuration}
|
50
|
+
# for a description of the configuration fields.
|
51
|
+
#
|
52
|
+
# @example
|
53
|
+
#
|
54
|
+
# # Modify the configuration for all BusinessIdentityService clients
|
55
|
+
# ::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.configure do |config|
|
56
|
+
# config.timeout = 10.0
|
57
|
+
# end
|
58
|
+
#
|
59
|
+
# @yield [config] Configure the Client client.
|
60
|
+
# @yieldparam config [Client::Configuration]
|
61
|
+
#
|
62
|
+
# @return [Client::Configuration]
|
63
|
+
#
|
64
|
+
def self.configure
|
65
|
+
@configure ||= begin
|
66
|
+
namespace = ["Google", "Shopping", "Merchant", "Accounts", "V1beta"]
|
67
|
+
parent_config = while namespace.any?
|
68
|
+
parent_name = namespace.join "::"
|
69
|
+
parent_const = const_get parent_name
|
70
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
71
|
+
namespace.pop
|
72
|
+
end
|
73
|
+
default_config = Client::Configuration.new parent_config
|
74
|
+
|
75
|
+
default_config
|
76
|
+
end
|
77
|
+
yield @configure if block_given?
|
78
|
+
@configure
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Configure the BusinessIdentityService Client instance.
|
83
|
+
#
|
84
|
+
# The configuration is set to the derived mode, meaning that values can be changed,
|
85
|
+
# but structural changes (adding new fields, etc.) are not allowed. Structural changes
|
86
|
+
# should be made on {Client.configure}.
|
87
|
+
#
|
88
|
+
# See {::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client::Configuration}
|
89
|
+
# for a description of the configuration fields.
|
90
|
+
#
|
91
|
+
# @yield [config] Configure the Client client.
|
92
|
+
# @yieldparam config [Client::Configuration]
|
93
|
+
#
|
94
|
+
# @return [Client::Configuration]
|
95
|
+
#
|
96
|
+
def configure
|
97
|
+
yield @config if block_given?
|
98
|
+
@config
|
99
|
+
end
|
100
|
+
|
101
|
+
##
|
102
|
+
# The effective universe domain
|
103
|
+
#
|
104
|
+
# @return [String]
|
105
|
+
#
|
106
|
+
def universe_domain
|
107
|
+
@business_identity_service_stub.universe_domain
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Create a new BusinessIdentityService client object.
|
112
|
+
#
|
113
|
+
# @example
|
114
|
+
#
|
115
|
+
# # Create a client using the default configuration
|
116
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.new
|
117
|
+
#
|
118
|
+
# # Create a client using a custom configuration
|
119
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.new do |config|
|
120
|
+
# config.timeout = 10.0
|
121
|
+
# end
|
122
|
+
#
|
123
|
+
# @yield [config] Configure the BusinessIdentityService client.
|
124
|
+
# @yieldparam config [Client::Configuration]
|
125
|
+
#
|
126
|
+
def initialize
|
127
|
+
# These require statements are intentionally placed here to initialize
|
128
|
+
# the gRPC module only when it's required.
|
129
|
+
# See https://github.com/googleapis/toolkit/issues/446
|
130
|
+
require "gapic/grpc"
|
131
|
+
require "google/shopping/merchant/accounts/v1beta/businessidentity_services_pb"
|
132
|
+
|
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
|
+
@quota_project_id = @config.quota_project
|
152
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
153
|
+
|
154
|
+
@business_identity_service_stub = ::Gapic::ServiceStub.new(
|
155
|
+
::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Stub,
|
156
|
+
credentials: credentials,
|
157
|
+
endpoint: @config.endpoint,
|
158
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
159
|
+
universe_domain: @config.universe_domain,
|
160
|
+
channel_args: @config.channel_args,
|
161
|
+
interceptors: @config.interceptors,
|
162
|
+
channel_pool_config: @config.channel_pool
|
163
|
+
)
|
164
|
+
end
|
165
|
+
|
166
|
+
# Service calls
|
167
|
+
|
168
|
+
##
|
169
|
+
# Retrieves the business identity of an account.
|
170
|
+
#
|
171
|
+
# @overload get_business_identity(request, options = nil)
|
172
|
+
# Pass arguments to `get_business_identity` via a request object, either of type
|
173
|
+
# {::Google::Shopping::Merchant::Accounts::V1beta::GetBusinessIdentityRequest} or an equivalent Hash.
|
174
|
+
#
|
175
|
+
# @param request [::Google::Shopping::Merchant::Accounts::V1beta::GetBusinessIdentityRequest, ::Hash]
|
176
|
+
# A request object representing the call parameters. Required. To specify no
|
177
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
178
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
179
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
180
|
+
#
|
181
|
+
# @overload get_business_identity(name: nil)
|
182
|
+
# Pass arguments to `get_business_identity` via keyword arguments. Note that at
|
183
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
184
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
185
|
+
#
|
186
|
+
# @param name [::String]
|
187
|
+
# Required. The resource name of the business identity.
|
188
|
+
# Format: `accounts/{account}/businessIdentity`
|
189
|
+
#
|
190
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
191
|
+
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity]
|
192
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
193
|
+
#
|
194
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity]
|
195
|
+
#
|
196
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
197
|
+
#
|
198
|
+
# @example Basic example
|
199
|
+
# require "google/shopping/merchant/accounts/v1beta"
|
200
|
+
#
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
202
|
+
# client = Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.new
|
203
|
+
#
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
205
|
+
# request = Google::Shopping::Merchant::Accounts::V1beta::GetBusinessIdentityRequest.new
|
206
|
+
#
|
207
|
+
# # Call the get_business_identity method.
|
208
|
+
# result = client.get_business_identity request
|
209
|
+
#
|
210
|
+
# # The returned object is of type Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity.
|
211
|
+
# p result
|
212
|
+
#
|
213
|
+
def get_business_identity request, options = nil
|
214
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
215
|
+
|
216
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1beta::GetBusinessIdentityRequest
|
217
|
+
|
218
|
+
# Converts hash and nil to an options object
|
219
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
220
|
+
|
221
|
+
# Customize the options with defaults
|
222
|
+
metadata = @config.rpcs.get_business_identity.metadata.to_h
|
223
|
+
|
224
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
225
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
226
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
227
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1beta::VERSION
|
228
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
229
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
230
|
+
|
231
|
+
header_params = {}
|
232
|
+
if request.name
|
233
|
+
header_params["name"] = request.name
|
234
|
+
end
|
235
|
+
|
236
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
237
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
238
|
+
|
239
|
+
options.apply_defaults timeout: @config.rpcs.get_business_identity.timeout,
|
240
|
+
metadata: metadata,
|
241
|
+
retry_policy: @config.rpcs.get_business_identity.retry_policy
|
242
|
+
|
243
|
+
options.apply_defaults timeout: @config.timeout,
|
244
|
+
metadata: @config.metadata,
|
245
|
+
retry_policy: @config.retry_policy
|
246
|
+
|
247
|
+
@business_identity_service_stub.call_rpc :get_business_identity, request, options: options do |response, operation|
|
248
|
+
yield response, operation if block_given?
|
249
|
+
return response
|
250
|
+
end
|
251
|
+
rescue ::GRPC::BadStatus => e
|
252
|
+
raise ::Google::Cloud::Error.from_error(e)
|
253
|
+
end
|
254
|
+
|
255
|
+
##
|
256
|
+
# Updates the business identity of an account. Executing this method requires
|
257
|
+
# admin access.
|
258
|
+
#
|
259
|
+
# @overload update_business_identity(request, options = nil)
|
260
|
+
# Pass arguments to `update_business_identity` via a request object, either of type
|
261
|
+
# {::Google::Shopping::Merchant::Accounts::V1beta::UpdateBusinessIdentityRequest} or an equivalent Hash.
|
262
|
+
#
|
263
|
+
# @param request [::Google::Shopping::Merchant::Accounts::V1beta::UpdateBusinessIdentityRequest, ::Hash]
|
264
|
+
# A request object representing the call parameters. Required. To specify no
|
265
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
266
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
267
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
268
|
+
#
|
269
|
+
# @overload update_business_identity(business_identity: nil, update_mask: nil)
|
270
|
+
# Pass arguments to `update_business_identity` via keyword arguments. Note that at
|
271
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
272
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
273
|
+
#
|
274
|
+
# @param business_identity [::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity, ::Hash]
|
275
|
+
# Required. The new version of the business identity.
|
276
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
277
|
+
# Required. List of fields being updated.
|
278
|
+
#
|
279
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
280
|
+
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity]
|
281
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
282
|
+
#
|
283
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity]
|
284
|
+
#
|
285
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
286
|
+
#
|
287
|
+
# @example Basic example
|
288
|
+
# require "google/shopping/merchant/accounts/v1beta"
|
289
|
+
#
|
290
|
+
# # Create a client object. The client can be reused for multiple calls.
|
291
|
+
# client = Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.new
|
292
|
+
#
|
293
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
294
|
+
# request = Google::Shopping::Merchant::Accounts::V1beta::UpdateBusinessIdentityRequest.new
|
295
|
+
#
|
296
|
+
# # Call the update_business_identity method.
|
297
|
+
# result = client.update_business_identity request
|
298
|
+
#
|
299
|
+
# # The returned object is of type Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentity.
|
300
|
+
# p result
|
301
|
+
#
|
302
|
+
def update_business_identity request, options = nil
|
303
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
304
|
+
|
305
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1beta::UpdateBusinessIdentityRequest
|
306
|
+
|
307
|
+
# Converts hash and nil to an options object
|
308
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
309
|
+
|
310
|
+
# Customize the options with defaults
|
311
|
+
metadata = @config.rpcs.update_business_identity.metadata.to_h
|
312
|
+
|
313
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
314
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
315
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
316
|
+
gapic_version: ::Google::Shopping::Merchant::Accounts::V1beta::VERSION
|
317
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
318
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
319
|
+
|
320
|
+
header_params = {}
|
321
|
+
if request.business_identity&.name
|
322
|
+
header_params["business_identity.name"] = request.business_identity.name
|
323
|
+
end
|
324
|
+
|
325
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
326
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
327
|
+
|
328
|
+
options.apply_defaults timeout: @config.rpcs.update_business_identity.timeout,
|
329
|
+
metadata: metadata,
|
330
|
+
retry_policy: @config.rpcs.update_business_identity.retry_policy
|
331
|
+
|
332
|
+
options.apply_defaults timeout: @config.timeout,
|
333
|
+
metadata: @config.metadata,
|
334
|
+
retry_policy: @config.retry_policy
|
335
|
+
|
336
|
+
@business_identity_service_stub.call_rpc :update_business_identity, request, options: options do |response, operation|
|
337
|
+
yield response, operation if block_given?
|
338
|
+
return response
|
339
|
+
end
|
340
|
+
rescue ::GRPC::BadStatus => e
|
341
|
+
raise ::Google::Cloud::Error.from_error(e)
|
342
|
+
end
|
343
|
+
|
344
|
+
##
|
345
|
+
# Configuration class for the BusinessIdentityService API.
|
346
|
+
#
|
347
|
+
# This class represents the configuration for BusinessIdentityService,
|
348
|
+
# providing control over timeouts, retry behavior, logging, transport
|
349
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
350
|
+
# applied individually to specific RPCs. See
|
351
|
+
# {::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client::Configuration::Rpcs}
|
352
|
+
# for a list of RPCs that can be configured independently.
|
353
|
+
#
|
354
|
+
# Configuration can be applied globally to all clients, or to a single client
|
355
|
+
# on construction.
|
356
|
+
#
|
357
|
+
# @example
|
358
|
+
#
|
359
|
+
# # Modify the global config, setting the timeout for
|
360
|
+
# # get_business_identity to 20 seconds,
|
361
|
+
# # and all remaining timeouts to 10 seconds.
|
362
|
+
# ::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.configure do |config|
|
363
|
+
# config.timeout = 10.0
|
364
|
+
# config.rpcs.get_business_identity.timeout = 20.0
|
365
|
+
# end
|
366
|
+
#
|
367
|
+
# # Apply the above configuration only to a new client.
|
368
|
+
# client = ::Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client.new do |config|
|
369
|
+
# config.timeout = 10.0
|
370
|
+
# config.rpcs.get_business_identity.timeout = 20.0
|
371
|
+
# end
|
372
|
+
#
|
373
|
+
# @!attribute [rw] endpoint
|
374
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
375
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
376
|
+
# @return [::String,nil]
|
377
|
+
# @!attribute [rw] credentials
|
378
|
+
# Credentials to send with calls. You may provide any of the following types:
|
379
|
+
# * (`String`) The path to a service account key file in JSON format
|
380
|
+
# * (`Hash`) A service account key as a Hash
|
381
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
382
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
383
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
384
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
385
|
+
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
386
|
+
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
387
|
+
# * (`nil`) indicating no credentials
|
388
|
+
# @return [::Object]
|
389
|
+
# @!attribute [rw] scope
|
390
|
+
# The OAuth scopes
|
391
|
+
# @return [::Array<::String>]
|
392
|
+
# @!attribute [rw] lib_name
|
393
|
+
# The library name as recorded in instrumentation and logging
|
394
|
+
# @return [::String]
|
395
|
+
# @!attribute [rw] lib_version
|
396
|
+
# The library version as recorded in instrumentation and logging
|
397
|
+
# @return [::String]
|
398
|
+
# @!attribute [rw] channel_args
|
399
|
+
# Extra parameters passed to the gRPC channel. Note: this is ignored if a
|
400
|
+
# `GRPC::Core::Channel` object is provided as the credential.
|
401
|
+
# @return [::Hash]
|
402
|
+
# @!attribute [rw] interceptors
|
403
|
+
# An array of interceptors that are run before calls are executed.
|
404
|
+
# @return [::Array<::GRPC::ClientInterceptor>]
|
405
|
+
# @!attribute [rw] timeout
|
406
|
+
# The call timeout in seconds.
|
407
|
+
# @return [::Numeric]
|
408
|
+
# @!attribute [rw] metadata
|
409
|
+
# Additional gRPC headers to be sent with the call.
|
410
|
+
# @return [::Hash{::Symbol=>::String}]
|
411
|
+
# @!attribute [rw] retry_policy
|
412
|
+
# The retry policy. The value is a hash with the following keys:
|
413
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
414
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
415
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
416
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
417
|
+
# trigger a retry.
|
418
|
+
# @return [::Hash]
|
419
|
+
# @!attribute [rw] quota_project
|
420
|
+
# A separate project against which to charge quota.
|
421
|
+
# @return [::String]
|
422
|
+
# @!attribute [rw] universe_domain
|
423
|
+
# The universe domain within which to make requests. This determines the
|
424
|
+
# default endpoint URL. The default value of nil uses the environment
|
425
|
+
# universe (usually the default "googleapis.com" universe).
|
426
|
+
# @return [::String,nil]
|
427
|
+
#
|
428
|
+
class Configuration
|
429
|
+
extend ::Gapic::Config
|
430
|
+
|
431
|
+
# @private
|
432
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
433
|
+
DEFAULT_ENDPOINT = "merchantapi.googleapis.com"
|
434
|
+
|
435
|
+
config_attr :endpoint, nil, ::String, nil
|
436
|
+
config_attr :credentials, nil do |value|
|
437
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
438
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
439
|
+
allowed.any? { |klass| klass === value }
|
440
|
+
end
|
441
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
442
|
+
config_attr :lib_name, nil, ::String, nil
|
443
|
+
config_attr :lib_version, nil, ::String, nil
|
444
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
|
445
|
+
config_attr :interceptors, nil, ::Array, nil
|
446
|
+
config_attr :timeout, nil, ::Numeric, nil
|
447
|
+
config_attr :metadata, nil, ::Hash, nil
|
448
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
449
|
+
config_attr :quota_project, nil, ::String, nil
|
450
|
+
config_attr :universe_domain, nil, ::String, nil
|
451
|
+
|
452
|
+
# @private
|
453
|
+
def initialize parent_config = nil
|
454
|
+
@parent_config = parent_config unless parent_config.nil?
|
455
|
+
|
456
|
+
yield self if block_given?
|
457
|
+
end
|
458
|
+
|
459
|
+
##
|
460
|
+
# Configurations for individual RPCs
|
461
|
+
# @return [Rpcs]
|
462
|
+
#
|
463
|
+
def rpcs
|
464
|
+
@rpcs ||= begin
|
465
|
+
parent_rpcs = nil
|
466
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
467
|
+
Rpcs.new parent_rpcs
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
##
|
472
|
+
# Configuration for the channel pool
|
473
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
474
|
+
#
|
475
|
+
def channel_pool
|
476
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
477
|
+
end
|
478
|
+
|
479
|
+
##
|
480
|
+
# Configuration RPC class for the BusinessIdentityService API.
|
481
|
+
#
|
482
|
+
# Includes fields providing the configuration for each RPC in this service.
|
483
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
484
|
+
# the following configuration fields:
|
485
|
+
#
|
486
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
487
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
|
488
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
489
|
+
# include the following keys:
|
490
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
491
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
492
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
493
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
494
|
+
# trigger a retry.
|
495
|
+
#
|
496
|
+
class Rpcs
|
497
|
+
##
|
498
|
+
# RPC-specific configuration for `get_business_identity`
|
499
|
+
# @return [::Gapic::Config::Method]
|
500
|
+
#
|
501
|
+
attr_reader :get_business_identity
|
502
|
+
##
|
503
|
+
# RPC-specific configuration for `update_business_identity`
|
504
|
+
# @return [::Gapic::Config::Method]
|
505
|
+
#
|
506
|
+
attr_reader :update_business_identity
|
507
|
+
|
508
|
+
# @private
|
509
|
+
def initialize parent_rpcs = nil
|
510
|
+
get_business_identity_config = parent_rpcs.get_business_identity if parent_rpcs.respond_to? :get_business_identity
|
511
|
+
@get_business_identity = ::Gapic::Config::Method.new get_business_identity_config
|
512
|
+
update_business_identity_config = parent_rpcs.update_business_identity if parent_rpcs.respond_to? :update_business_identity
|
513
|
+
@update_business_identity = ::Gapic::Config::Method.new update_business_identity_config
|
514
|
+
|
515
|
+
yield self if block_given?
|
516
|
+
end
|
517
|
+
end
|
518
|
+
end
|
519
|
+
end
|
520
|
+
end
|
521
|
+
end
|
522
|
+
end
|
523
|
+
end
|
524
|
+
end
|
525
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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 "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Shopping
|
23
|
+
module Merchant
|
24
|
+
module Accounts
|
25
|
+
module V1beta
|
26
|
+
module BusinessIdentityService
|
27
|
+
# Credentials for the BusinessIdentityService API.
|
28
|
+
class Credentials < ::Google::Auth::Credentials
|
29
|
+
self.scope = [
|
30
|
+
"https://www.googleapis.com/auth/content"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
34
|
+
"GOOGLE_CLOUD_KEYFILE",
|
35
|
+
"GCLOUD_KEYFILE",
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
37
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
38
|
+
"GCLOUD_KEYFILE_JSON"
|
39
|
+
]
|
40
|
+
self.paths = [
|
41
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
42
|
+
]
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 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
|
+
|
20
|
+
module Google
|
21
|
+
module Shopping
|
22
|
+
module Merchant
|
23
|
+
module Accounts
|
24
|
+
module V1beta
|
25
|
+
module BusinessIdentityService
|
26
|
+
# Path helper methods for the BusinessIdentityService API.
|
27
|
+
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified BusinessIdentity resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `accounts/{account}/businessIdentity`
|
34
|
+
#
|
35
|
+
# @param account [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def business_identity_path account:
|
39
|
+
"accounts/#{account}/businessIdentity"
|
40
|
+
end
|
41
|
+
|
42
|
+
extend self
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|