class Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetDefaultBranchRequest
Request message to set a specified branch as new default_branch.
Attributes
branch_id[RW]
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. Corresponds to the JSON property `branchId` @return [String]
note[RW]
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` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/retail_v2beta/classes.rb, line 3864 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/retail_v2beta/classes.rb, line 3869 def update!(**args) @branch_id = args[:branch_id] if args.key?(:branch_id) @note = args[:note] if args.key?(:note) end