Module: Google::Shopping::Merchant::Accounts
- Defined in:
- lib/google/shopping/merchant/accounts.rb,
lib/google/shopping/merchant/accounts/version.rb
Constant Summary collapse
- VERSION =
"0.6.1"
Class Method Summary collapse
-
.account_issue_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountIssueService.
-
.account_issue_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AccountIssueService service is supported by the current client.
-
.account_tax_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountTaxService.
-
.account_tax_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AccountTaxService service is supported by the current client.
-
.accounts_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountsService.
-
.accounts_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AccountsService service is supported by the current client.
-
.autofeed_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AutofeedSettingsService.
-
.autofeed_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AutofeedSettingsService service is supported by the current client.
-
.automatic_improvements_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AutomaticImprovementsService.
-
.automatic_improvements_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AutomaticImprovementsService service is supported by the current client.
-
.business_identity_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for BusinessIdentityService.
-
.business_identity_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the BusinessIdentityService service is supported by the current client.
-
.business_info_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for BusinessInfoService.
-
.business_info_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the BusinessInfoService service is supported by the current client.
-
.checkout_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for CheckoutSettingsService.
-
.checkout_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the CheckoutSettingsService service is supported by the current client.
-
.email_preferences_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for EmailPreferencesService.
-
.email_preferences_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the EmailPreferencesService service is supported by the current client.
-
.gbp_accounts_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for GbpAccountsService.
-
.gbp_accounts_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the GbpAccountsService service is supported by the current client.
-
.homepage_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for HomepageService.
-
.homepage_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the HomepageService service is supported by the current client.
-
.lfp_providers_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for LfpProvidersService.
-
.lfp_providers_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the LfpProvidersService service is supported by the current client.
-
.omnichannel_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for OmnichannelSettingsService.
-
.omnichannel_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the OmnichannelSettingsService service is supported by the current client.
-
.online_return_policy_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for OnlineReturnPolicyService.
-
.online_return_policy_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the OnlineReturnPolicyService service is supported by the current client.
-
.programs_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ProgramsService.
-
.programs_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the ProgramsService service is supported by the current client.
-
.regions_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for RegionsService.
-
.regions_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the RegionsService service is supported by the current client.
-
.shipping_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ShippingSettingsService.
-
.shipping_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the ShippingSettingsService service is supported by the current client.
-
.terms_of_service_agreement_state_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for TermsOfServiceAgreementStateService.
-
.terms_of_service_agreement_state_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the TermsOfServiceAgreementStateService service is supported by the current client.
-
.terms_of_service_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for TermsOfServiceService.
-
.terms_of_service_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the TermsOfServiceService service is supported by the current client.
-
.user_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for UserService.
-
.user_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the UserService service is supported by the current client.
Class Method Details
.account_issue_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountIssueService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::AccountIssueService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the AccountIssueService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the AccountIssueService service. You can determine whether the method will succeed by calling account_issue_service_available?.
About AccountIssueService
Service to support AccountIssueService API.
132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/google/shopping/merchant/accounts.rb', line 132 def self.account_issue_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:AccountIssueService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.account_issue_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AccountIssueService service is supported by the current client. If true, you can retrieve a client object by calling account_issue_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AccountIssueService service, or if the versioned client gem needs an update to support the AccountIssueService service.
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/google/shopping/merchant/accounts.rb', line 156 def self.account_issue_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :AccountIssueService service_module = service_module.const_get :AccountIssueService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.account_tax_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountTaxService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::AccountTaxService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the AccountTaxService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the AccountTaxService service. You can determine whether the method will succeed by calling account_tax_service_available?.
About AccountTaxService
Manages account level tax setting data.
This API defines the following resource model:
- [AccountTax][google.shopping.merchant.accounts.v1main.AccountTax]
62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/google/shopping/merchant/accounts.rb', line 62 def self.account_tax_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:AccountTaxService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.account_tax_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AccountTaxService service is supported by the current client. If true, you can retrieve a client object by calling account_tax_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AccountTaxService service, or if the versioned client gem needs an update to support the AccountTaxService service.
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/google/shopping/merchant/accounts.rb', line 86 def self.account_tax_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :AccountTaxService service_module = service_module.const_get :AccountTaxService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.accounts_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AccountsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::AccountsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the AccountsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the AccountsService service. You can determine whether the method will succeed by calling accounts_service_available?.
About AccountsService
Service to support Accounts API.
272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/google/shopping/merchant/accounts.rb', line 272 def self.accounts_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:AccountsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.accounts_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AccountsService service is supported by the current client. If true, you can retrieve a client object by calling accounts_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AccountsService service, or if the versioned client gem needs an update to support the AccountsService service.
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/google/shopping/merchant/accounts.rb', line 296 def self.accounts_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :AccountsService service_module = service_module.const_get :AccountsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.autofeed_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AutofeedSettingsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettingsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the AutofeedSettingsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the AutofeedSettingsService service. You can determine whether the method will succeed by calling autofeed_settings_service_available?.
About AutofeedSettingsService
Service to support autofeed setting.
343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/google/shopping/merchant/accounts.rb', line 343 def self.autofeed_settings_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:AutofeedSettingsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.autofeed_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AutofeedSettingsService service is supported by the current client. If true, you can retrieve a client object by calling autofeed_settings_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AutofeedSettingsService service, or if the versioned client gem needs an update to support the AutofeedSettingsService service.
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/google/shopping/merchant/accounts.rb', line 367 def self.autofeed_settings_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :AutofeedSettingsService service_module = service_module.const_get :AutofeedSettingsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.automatic_improvements_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for AutomaticImprovementsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::AutomaticImprovementsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the AutomaticImprovementsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the AutomaticImprovementsService service. You can determine whether the method will succeed by calling automatic_improvements_service_available?.
About AutomaticImprovementsService
Service to manage the automatic improvements of an account. The automatic improvements of the account can be used to automatically update products, improve images and shipping.
415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/google/shopping/merchant/accounts.rb', line 415 def self.automatic_improvements_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:AutomaticImprovementsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.automatic_improvements_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the AutomaticImprovementsService service is supported by the current client. If true, you can retrieve a client object by calling automatic_improvements_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the AutomaticImprovementsService service, or if the versioned client gem needs an update to support the AutomaticImprovementsService service.
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 |
# File 'lib/google/shopping/merchant/accounts.rb', line 439 def self.automatic_improvements_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :AutomaticImprovementsService service_module = service_module.const_get :AutomaticImprovementsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.business_identity_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for BusinessIdentityService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::BusinessIdentityService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the BusinessIdentityService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the BusinessIdentityService service. You can determine whether the method will succeed by calling business_identity_service_available?.
About BusinessIdentityService
Service to support business identity API.
486 487 488 489 490 491 492 493 494 495 496 |
# File 'lib/google/shopping/merchant/accounts.rb', line 486 def self.business_identity_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:BusinessIdentityService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.business_identity_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the BusinessIdentityService service is supported by the current client. If true, you can retrieve a client object by calling business_identity_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the BusinessIdentityService service, or if the versioned client gem needs an update to support the BusinessIdentityService service.
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 |
# File 'lib/google/shopping/merchant/accounts.rb', line 510 def self.business_identity_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :BusinessIdentityService service_module = service_module.const_get :BusinessIdentityService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.business_info_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for BusinessInfoService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::BusinessInfoService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the BusinessInfoService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the BusinessInfoService service. You can determine whether the method will succeed by calling business_info_service_available?.
About BusinessInfoService
Service to support business info API.
556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/google/shopping/merchant/accounts.rb', line 556 def self.business_info_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:BusinessInfoService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.business_info_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the BusinessInfoService service is supported by the current client. If true, you can retrieve a client object by calling business_info_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the BusinessInfoService service, or if the versioned client gem needs an update to support the BusinessInfoService service.
580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 |
# File 'lib/google/shopping/merchant/accounts.rb', line 580 def self.business_info_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :BusinessInfoService service_module = service_module.const_get :BusinessInfoService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.checkout_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for CheckoutSettingsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettingsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the CheckoutSettingsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the CheckoutSettingsService service. You can determine whether the method will succeed by calling checkout_settings_service_available?.
About CheckoutSettingsService
Service for supporting checkout settings.
627 628 629 630 631 632 633 634 635 636 637 |
# File 'lib/google/shopping/merchant/accounts.rb', line 627 def self.checkout_settings_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:CheckoutSettingsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.checkout_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the CheckoutSettingsService service is supported by the current client. If true, you can retrieve a client object by calling checkout_settings_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the CheckoutSettingsService service, or if the versioned client gem needs an update to support the CheckoutSettingsService service.
651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 |
# File 'lib/google/shopping/merchant/accounts.rb', line 651 def self.checkout_settings_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :CheckoutSettingsService service_module = service_module.const_get :CheckoutSettingsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.email_preferences_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for EmailPreferencesService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::EmailPreferencesService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the EmailPreferencesService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the EmailPreferencesService service. You can determine whether the method will succeed by calling email_preferences_service_available?.
About EmailPreferencesService
Service to support the EmailPreferences API.
This service only permits retrieving and updating email preferences for the authenticated user.
700 701 702 703 704 705 706 707 708 709 710 |
# File 'lib/google/shopping/merchant/accounts.rb', line 700 def self.email_preferences_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:EmailPreferencesService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.email_preferences_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the EmailPreferencesService service is supported by the current client. If true, you can retrieve a client object by calling email_preferences_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the EmailPreferencesService service, or if the versioned client gem needs an update to support the EmailPreferencesService service.
724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
# File 'lib/google/shopping/merchant/accounts.rb', line 724 def self.email_preferences_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :EmailPreferencesService service_module = service_module.const_get :EmailPreferencesService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.gbp_accounts_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for GbpAccountsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::GbpAccountsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the GbpAccountsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the GbpAccountsService service. You can determine whether the method will succeed by calling gbp_accounts_service_available?.
About GbpAccountsService
The service facilitates the management of a merchant's Google Business Profile (GBP) account settings. This API defines the following resource model:
- [GbpAccount][google.shopping.merchant.accounts.v1.GbpAccount]
773 774 775 776 777 778 779 780 781 782 783 |
# File 'lib/google/shopping/merchant/accounts.rb', line 773 def self.gbp_accounts_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:GbpAccountsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.gbp_accounts_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the GbpAccountsService service is supported by the current client. If true, you can retrieve a client object by calling gbp_accounts_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the GbpAccountsService service, or if the versioned client gem needs an update to support the GbpAccountsService service.
797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 |
# File 'lib/google/shopping/merchant/accounts.rb', line 797 def self.gbp_accounts_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :GbpAccountsService service_module = service_module.const_get :GbpAccountsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.homepage_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for HomepageService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::HomepageService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the HomepageService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the HomepageService service. You can determine whether the method will succeed by calling homepage_service_available?.
About HomepageService
Service to support an API for a store's homepage.
843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/google/shopping/merchant/accounts.rb', line 843 def self.homepage_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:HomepageService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.homepage_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the HomepageService service is supported by the current client. If true, you can retrieve a client object by calling homepage_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the HomepageService service, or if the versioned client gem needs an update to support the HomepageService service.
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 |
# File 'lib/google/shopping/merchant/accounts.rb', line 867 def self.homepage_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :HomepageService service_module = service_module.const_get :HomepageService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.lfp_providers_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for LfpProvidersService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::LfpProvidersService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the LfpProvidersService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the LfpProvidersService service. You can determine whether the method will succeed by calling lfp_providers_service_available?.
About LfpProvidersService
The service facilitates the management of a merchant's LFP provider settings. This API defines the following resource model:
- [LfpProvider][google.shopping.merchant.accounts.v1.LfpProvider]
915 916 917 918 919 920 921 922 923 924 925 |
# File 'lib/google/shopping/merchant/accounts.rb', line 915 def self.lfp_providers_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:LfpProvidersService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.lfp_providers_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the LfpProvidersService service is supported by the current client. If true, you can retrieve a client object by calling lfp_providers_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the LfpProvidersService service, or if the versioned client gem needs an update to support the LfpProvidersService service.
939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 |
# File 'lib/google/shopping/merchant/accounts.rb', line 939 def self.lfp_providers_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :LfpProvidersService service_module = service_module.const_get :LfpProvidersService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.omnichannel_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for OmnichannelSettingsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the OmnichannelSettingsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the OmnichannelSettingsService service. You can determine whether the method will succeed by calling omnichannel_settings_service_available?.
About OmnichannelSettingsService
The service facilitates the management of a merchant's omnichannel settings.
This API defines the following resource model:
[OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting]
988 989 990 991 992 993 994 995 996 997 998 |
# File 'lib/google/shopping/merchant/accounts.rb', line 988 def self.omnichannel_settings_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:OmnichannelSettingsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.omnichannel_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the OmnichannelSettingsService service is supported by the current client. If true, you can retrieve a client object by calling omnichannel_settings_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the OmnichannelSettingsService service, or if the versioned client gem needs an update to support the OmnichannelSettingsService service.
1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1012 def self.omnichannel_settings_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :OmnichannelSettingsService service_module = service_module.const_get :OmnichannelSettingsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.online_return_policy_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for OnlineReturnPolicyService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicyService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the OnlineReturnPolicyService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the OnlineReturnPolicyService service. You can determine whether the method will succeed by calling online_return_policy_service_available?.
About OnlineReturnPolicyService
The service facilitates the management of a merchant's remorse return policy configuration, encompassing return policies for both ads and free listings
programs. This API defines the following resource model:
1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1062 def self.online_return_policy_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:OnlineReturnPolicyService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.online_return_policy_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the OnlineReturnPolicyService service is supported by the current client. If true, you can retrieve a client object by calling online_return_policy_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the OnlineReturnPolicyService service, or if the versioned client gem needs an update to support the OnlineReturnPolicyService service.
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1086 def self.online_return_policy_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :OnlineReturnPolicyService service_module = service_module.const_get :OnlineReturnPolicyService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.programs_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ProgramsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::ProgramsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the ProgramsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the ProgramsService service. You can determine whether the method will succeed by calling programs_service_available?.
About ProgramsService
Service for program management.
Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the Free product listings program, which enables products from a merchant's store to be shown across Google for free.
This service exposes methods to retrieve a merchant's participation in all available programs, in addition to methods for explicitly enabling or disabling participation in each program.
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1142 def self.programs_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:ProgramsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.programs_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the ProgramsService service is supported by the current client. If true, you can retrieve a client object by calling programs_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ProgramsService service, or if the versioned client gem needs an update to support the ProgramsService service.
1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1166 def self.programs_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :ProgramsService service_module = service_module.const_get :ProgramsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.regions_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for RegionsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::RegionsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the RegionsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the RegionsService service. You can determine whether the method will succeed by calling regions_service_available?.
About RegionsService
Manages regions configuration.
This API defines the following resource model:
- [Region][google.shopping.merchant.accounts.v1main.Region]
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1216 def self.regions_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:RegionsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.regions_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the RegionsService service is supported by the current client. If true, you can retrieve a client object by calling regions_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the RegionsService service, or if the versioned client gem needs an update to support the RegionsService service.
1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1240 def self.regions_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :RegionsService service_module = service_module.const_get :RegionsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.shipping_settings_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for ShippingSettingsService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::ShippingSettingsService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the ShippingSettingsService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the ShippingSettingsService service. You can determine whether the method will succeed by calling shipping_settings_service_available?.
About ShippingSettingsService
Service to get method call shipping setting information per Merchant API method.
1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1287 def self.shipping_settings_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:ShippingSettingsService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.shipping_settings_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the ShippingSettingsService service is supported by the current client. If true, you can retrieve a client object by calling shipping_settings_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the ShippingSettingsService service, or if the versioned client gem needs an update to support the ShippingSettingsService service.
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1311 def self.shipping_settings_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :ShippingSettingsService service_module = service_module.const_get :ShippingSettingsService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.terms_of_service_agreement_state_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for TermsOfServiceAgreementStateService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceAgreementStateService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the TermsOfServiceAgreementStateService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the TermsOfServiceAgreementStateService service. You can determine whether the method will succeed by calling terms_of_service_agreement_state_service_available?.
About TermsOfServiceAgreementStateService
Service to support TermsOfServiceAgreementState API.
1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1427 def self.terms_of_service_agreement_state_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:TermsOfServiceAgreementStateService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.terms_of_service_agreement_state_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the TermsOfServiceAgreementStateService service is supported by the current client. If true, you can retrieve a client object by calling terms_of_service_agreement_state_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TermsOfServiceAgreementStateService service, or if the versioned client gem needs an update to support the TermsOfServiceAgreementStateService service.
1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1451 def self.terms_of_service_agreement_state_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :TermsOfServiceAgreementStateService service_module = service_module.const_get :TermsOfServiceAgreementStateService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.terms_of_service_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for TermsOfServiceService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::TermsOfServiceService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the TermsOfServiceService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the TermsOfServiceService service. You can determine whether the method will succeed by calling terms_of_service_service_available?.
About TermsOfServiceService
Service to support TermsOfService API.
1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1357 def self.terms_of_service_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:TermsOfServiceService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.terms_of_service_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the TermsOfServiceService service is supported by the current client. If true, you can retrieve a client object by calling terms_of_service_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the TermsOfServiceService service, or if the versioned client gem needs an update to support the TermsOfServiceService service.
1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 |
# File 'lib/google/shopping/merchant/accounts.rb', line 1381 def self.terms_of_service_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :TermsOfServiceService service_module = service_module.const_get :TermsOfServiceService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |
.user_service(version: :v1beta, transport: :grpc, &block) ⇒ ::Object
Create a new client object for UserService.
By default, this returns an instance of
Google::Shopping::Merchant::Accounts::V1beta::UserService::Client
for a gRPC client for version V1beta of the API.
However, you can specify a different API version by passing it in the
version parameter. If the UserService service is
supported by that API version, and the corresponding gem is available, the
appropriate versioned client will be returned.
You can also specify a different transport by passing :rest or :grpc in
the transport parameter.
Raises an exception if the currently installed versioned client gem for the given API version does not support the given transport of the UserService service. You can determine whether the method will succeed by calling user_service_available?.
About UserService
Service to support user API.
202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/google/shopping/merchant/accounts.rb', line 202 def self.user_service version: :v1beta, transport: :grpc, &block require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:UserService) service_module = service_module.const_get(:Rest) if transport == :rest service_module.const_get(:Client).new(&block) end |
.user_service_available?(version: :v1beta, transport: :grpc) ⇒ boolean
Determines whether the UserService service is supported by the current client. If true, you can retrieve a client object by calling user_service. If false, that method will raise an exception. This could happen if the given API version does not exist or does not support the UserService service, or if the versioned client gem needs an update to support the UserService service.
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 |
# File 'lib/google/shopping/merchant/accounts.rb', line 226 def self.user_service_available? version: :v1beta, transport: :grpc require "google/shopping/merchant/accounts/#{version.to_s.downcase}" package_name = Google::Shopping::Merchant::Accounts .constants .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") } .first return false unless package_name service_module = Google::Shopping::Merchant::Accounts.const_get package_name return false unless service_module.const_defined? :UserService service_module = service_module.const_get :UserService if transport == :rest return false unless service_module.const_defined? :Rest service_module = service_module.const_get :Rest end service_module.const_defined? :Client rescue ::LoadError false end |