-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabriccaidentityattrs.go
82 lines (72 loc) · 4.09 KB
/
fabriccaidentityattrs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
// FabricCAIdentityAttrsApplyConfiguration represents an declarative configuration of the FabricCAIdentityAttrs type for use
// with apply.
type FabricCAIdentityAttrsApplyConfiguration struct {
RegistrarRoles *string `json:"hf.Registrar.Roles,omitempty"`
DelegateRoles *string `json:"hf.Registrar.DelegateRoles,omitempty"`
Attributes *string `json:"hf.Registrar.Attributes,omitempty"`
Revoker *bool `json:"hf.Revoker,omitempty"`
IntermediateCA *bool `json:"hf.IntermediateCA,omitempty"`
GenCRL *bool `json:"hf.GenCRL,omitempty"`
AffiliationMgr *bool `json:"hf.AffiliationMgr,omitempty"`
}
// FabricCAIdentityAttrsApplyConfiguration constructs an declarative configuration of the FabricCAIdentityAttrs type for use with
// apply.
func FabricCAIdentityAttrs() *FabricCAIdentityAttrsApplyConfiguration {
return &FabricCAIdentityAttrsApplyConfiguration{}
}
// WithRegistrarRoles sets the RegistrarRoles field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the RegistrarRoles field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithRegistrarRoles(value string) *FabricCAIdentityAttrsApplyConfiguration {
b.RegistrarRoles = &value
return b
}
// WithDelegateRoles sets the DelegateRoles field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the DelegateRoles field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithDelegateRoles(value string) *FabricCAIdentityAttrsApplyConfiguration {
b.DelegateRoles = &value
return b
}
// WithAttributes sets the Attributes field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Attributes field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithAttributes(value string) *FabricCAIdentityAttrsApplyConfiguration {
b.Attributes = &value
return b
}
// WithRevoker sets the Revoker field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Revoker field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithRevoker(value bool) *FabricCAIdentityAttrsApplyConfiguration {
b.Revoker = &value
return b
}
// WithIntermediateCA sets the IntermediateCA field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the IntermediateCA field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithIntermediateCA(value bool) *FabricCAIdentityAttrsApplyConfiguration {
b.IntermediateCA = &value
return b
}
// WithGenCRL sets the GenCRL field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the GenCRL field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithGenCRL(value bool) *FabricCAIdentityAttrsApplyConfiguration {
b.GenCRL = &value
return b
}
// WithAffiliationMgr sets the AffiliationMgr field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the AffiliationMgr field is set to the value of the last call.
func (b *FabricCAIdentityAttrsApplyConfiguration) WithAffiliationMgr(value bool) *FabricCAIdentityAttrsApplyConfiguration {
b.AffiliationMgr = &value
return b
}