@@ -45,45 +45,6 @@ type Meta struct {
4545 credentialsSource * CredentialsSource
4646}
4747
48- func (m Meta ) ScwClient () * scw.Client {
49- return m .scwClient
50- }
51-
52- func (m Meta ) HTTPClient () * http.Client {
53- return m .httpClient
54- }
55-
56- func (m Meta ) AccessKeySource () string {
57- return m .credentialsSource .AccessKey
58- }
59-
60- func (m Meta ) SecretKeySource () string {
61- return m .credentialsSource .SecretKey
62- }
63-
64- func (m Meta ) ProjectIDSource () string {
65- return m .credentialsSource .ProjectID
66- }
67-
68- func (m Meta ) RegionSource () string {
69- return m .credentialsSource .DefaultRegion
70- }
71-
72- func (m Meta ) ZoneSource () string {
73- return m .credentialsSource .DefaultZone
74- }
75-
76- type Config struct {
77- ProviderSchema * schema.ResourceData
78- HTTPClient * http.Client
79- TerraformVersion string
80- ForceZone scw.Zone
81- ForceProjectID string
82- ForceOrganizationID string
83- ForceAccessKey string
84- ForceSecretKey string
85- }
86-
8748// NewMeta creates the Meta object containing the SDK client.
8849func NewMeta (ctx context.Context , config * Config ) (* Meta , error ) {
8950 ////
@@ -149,6 +110,45 @@ func NewMeta(ctx context.Context, config *Config) (*Meta, error) {
149110 }, nil
150111}
151112
113+ func (m Meta ) ScwClient () * scw.Client {
114+ return m .scwClient
115+ }
116+
117+ func (m Meta ) HTTPClient () * http.Client {
118+ return m .httpClient
119+ }
120+
121+ func (m Meta ) AccessKeySource () string {
122+ return m .credentialsSource .AccessKey
123+ }
124+
125+ func (m Meta ) SecretKeySource () string {
126+ return m .credentialsSource .SecretKey
127+ }
128+
129+ func (m Meta ) ProjectIDSource () string {
130+ return m .credentialsSource .ProjectID
131+ }
132+
133+ func (m Meta ) RegionSource () string {
134+ return m .credentialsSource .DefaultRegion
135+ }
136+
137+ func (m Meta ) ZoneSource () string {
138+ return m .credentialsSource .DefaultZone
139+ }
140+
141+ type Config struct {
142+ ProviderSchema * schema.ResourceData
143+ HTTPClient * http.Client
144+ TerraformVersion string
145+ ForceZone scw.Zone
146+ ForceProjectID string
147+ ForceOrganizationID string
148+ ForceAccessKey string
149+ ForceSecretKey string
150+ }
151+
152152func customizeUserAgent (providerVersion string , terraformVersion string ) string {
153153 userAgent := fmt .Sprintf ("terraform-provider/%s terraform/%s" , providerVersion , terraformVersion )
154154
0 commit comments