Class: Google::Apis::RetailV2::GoogleCloudRetailV2SetDefaultBranchRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2SetDefaultBranchRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/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.
-
#note ⇒ String
Some note on this request, this can be retrieved by CatalogService.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2SetDefaultBranchRequest
constructor
A new instance of GoogleCloudRetailV2SetDefaultBranchRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2SetDefaultBranchRequest
Returns a new instance of GoogleCloudRetailV2SetDefaultBranchRequest.
2993 2994 2995 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2993 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.
Corresponds to the JSON property branchId
2983 2984 2985 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2983 def branch_id @branch_id 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
2991 2992 2993 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2991 def note @note end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2998 2999 3000 3001 |
# File 'lib/google/apis/retail_v2/classes.rb', line 2998 def update!(**args) @branch_id = args[:branch_id] if args.key?(:branch_id) @note = args[:note] if args.key?(:note) end |