Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetDefaultBranchRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetDefaultBranchRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
Request message to set a specified branch as new default_branch.
Instance Attribute Summary collapse
-
#branch_id ⇒ String
The final component of the resource name of a branch.
-
#force ⇒ Boolean
(also: #force?)
If set to true, it permits switching to a branch with branch_id even if it has no sufficient active products.
-
#note ⇒ String
Some note on this request, this can be retrieved by CatalogService.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaSetDefaultBranchRequest
constructor
A new instance of GoogleCloudRetailV2betaSetDefaultBranchRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaSetDefaultBranchRequest
Returns a new instance of GoogleCloudRetailV2betaSetDefaultBranchRequest.
8689 8690 8691 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8689 def initialize(**args) update!(**args) end |
Instance Attribute Details
#branch_id ⇒ String
The final component of the resource name of a branch. This field must be one
of "0", "1" or "2". Otherwise, an INVALID_ARGUMENT error is returned. If there
are no sufficient active products in the targeted branch and force is not set,
a FAILED_PRECONDITION error is returned.
Corresponds to the JSON property branchId
8672 8673 8674 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8672 def branch_id @branch_id end |
#force ⇒ Boolean Also known as: force?
If set to true, it permits switching to a branch with branch_id even if it has
no sufficient active products.
Corresponds to the JSON property force
8678 8679 8680 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8678 def force @force end |
#note ⇒ String
Some note on this request, this can be retrieved by CatalogService.
GetDefaultBranch before next valid default branch set occurs. This field must
be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
an INVALID_ARGUMENT error is returned.
Corresponds to the JSON property note
8687 8688 8689 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8687 def note @note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8694 8695 8696 8697 8698 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 8694 def update!(**args) @branch_id = args[:branch_id] if args.key?(:branch_id) @force = args[:force] if args.key?(:force) @note = args[:note] if args.key?(:note) end |