Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSetDefaultBranchRequest

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaSetDefaultBranchRequest

Returns a new instance of GoogleCloudRetailV2betaSetDefaultBranchRequest.



4742
4743
4744
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4742

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#branch_idString

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

Returns:

  • (String)


4732
4733
4734
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4732

def branch_id
  @branch_id
end

#noteString

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

Returns:

  • (String)


4740
4741
4742
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4740

def note
  @note
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4747
4748
4749
4750
# File 'lib/google/apis/retail_v2beta/classes.rb', line 4747

def update!(**args)
  @branch_id = args[:branch_id] if args.key?(:branch_id)
  @note = args[:note] if args.key?(:note)
end