* [COMPLIANCE] Update Copyright and License Headers * chore: make gen to generate files with copyright headers * chore: update missed copyright headers --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Justin Nguyen <justin.nguyen@hashicorp.com>
44 lines
1.1 KiB
Go
44 lines
1.1 KiB
Go
// Code generated by "make api"; DO NOT EDIT.
|
|
// Copyright IBM Corp. 2020, 2025
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package aliases
|
|
|
|
func WithTargetAliasAuthorizeSessionArgumentsHostId(hid string) Option {
|
|
return func(o *options) {
|
|
raw, ok := o.postMap["attributes"]
|
|
if !ok {
|
|
raw = interface{}(map[string]interface{}{})
|
|
}
|
|
attrVal := raw.(map[string]interface{})
|
|
argRaw, ok := attrVal["authorize_session_arguments"]
|
|
if !ok {
|
|
argRaw = interface{}(map[string]interface{}{})
|
|
}
|
|
argVal := argRaw.(map[string]interface{})
|
|
argVal["host_id"] = hid
|
|
attrVal["authorize_session_arguments"] = argVal
|
|
|
|
o.postMap["attributes"] = attrVal
|
|
}
|
|
}
|
|
|
|
func DefaultTargetAliasAuthorizeSessionArgumentsHostId() Option {
|
|
return func(o *options) {
|
|
raw, ok := o.postMap["attributes"]
|
|
if !ok {
|
|
raw = interface{}(map[string]interface{}{})
|
|
}
|
|
attrVal := raw.(map[string]interface{})
|
|
argRaw, ok := attrVal["authorize_session_arguments"]
|
|
if !ok {
|
|
argRaw = interface{}(map[string]interface{}{})
|
|
}
|
|
argVal := argRaw.(map[string]interface{})
|
|
argVal["host_id"] = nil
|
|
attrVal["authorize_session_arguments"] = argVal
|
|
|
|
o.postMap["attributes"] = attrVal
|
|
}
|
|
}
|