@@ -15,23 +15,23 @@ type Bindings struct {
1515 Write types.Set `tfsdk:"write"`
1616}
1717
18- func (cb * Bindings ) ReadAttributes (ctx context.Context , d diag.Diagnostics ) []* console.PolicyBindingAttributes {
18+ func (cb * Bindings ) ReadAttributes (ctx context.Context , d * diag.Diagnostics ) []* console.PolicyBindingAttributes {
1919 if cb == nil {
2020 return nil
2121 }
2222
2323 return policyBindingAttributes (cb .Read , ctx , d )
2424}
2525
26- func (cb * Bindings ) WriteAttributes (ctx context.Context , d diag.Diagnostics ) []* console.PolicyBindingAttributes {
26+ func (cb * Bindings ) WriteAttributes (ctx context.Context , d * diag.Diagnostics ) []* console.PolicyBindingAttributes {
2727 if cb == nil {
2828 return nil
2929 }
3030
3131 return policyBindingAttributes (cb .Write , ctx , d )
3232}
3333
34- func policyBindingAttributes (bindings types.Set , ctx context.Context , d diag.Diagnostics ) []* console.PolicyBindingAttributes {
34+ func policyBindingAttributes (bindings types.Set , ctx context.Context , d * diag.Diagnostics ) []* console.PolicyBindingAttributes {
3535 if bindings .IsNull () {
3636 return nil
3737 }
@@ -51,7 +51,7 @@ func policyBindingAttributes(bindings types.Set, ctx context.Context, d diag.Dia
5151 return result
5252}
5353
54- func (cb * Bindings ) From (readBindings []* console.PolicyBindingFragment , writeBindings []* console.PolicyBindingFragment , ctx context.Context , d diag.Diagnostics ) {
54+ func (cb * Bindings ) From (readBindings []* console.PolicyBindingFragment , writeBindings []* console.PolicyBindingFragment , ctx context.Context , d * diag.Diagnostics ) {
5555 if cb == nil {
5656 return
5757 }
@@ -60,7 +60,7 @@ func (cb *Bindings) From(readBindings []*console.PolicyBindingFragment, writeBin
6060 cb .Write = bindingsFrom (writeBindings , cb .Write , ctx , d )
6161}
6262
63- func bindingsFrom (bindings []* console.PolicyBindingFragment , config types.Set , ctx context.Context , d diag.Diagnostics ) types.Set {
63+ func bindingsFrom (bindings []* console.PolicyBindingFragment , config types.Set , ctx context.Context , d * diag.Diagnostics ) types.Set {
6464 if len (bindings ) == 0 {
6565 // Rewriting config to state to avoid inconsistent result errors.
6666 // This could happen, for example, when sending "nil" to API and "[]" is returned as a result.
@@ -91,7 +91,7 @@ func bindingsFrom(bindings []*console.PolicyBindingFragment, config types.Set, c
9191 return setValue
9292}
9393
94- func SetToPolicyBindingAttributes (set types.Set , ctx context.Context , d diag.Diagnostics ) []* console.PolicyBindingAttributes {
94+ func SetToPolicyBindingAttributes (set types.Set , ctx context.Context , d * diag.Diagnostics ) []* console.PolicyBindingAttributes {
9595 return policyBindingAttributes (set , ctx , d )
9696}
9797
0 commit comments