You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, errors.New("Invalid provider configuration. Either Connect credentials (\"connect_token\" and \"connect_url\") or Service Account (\"service_account_token\" or \"account\") credentials should be set.")
44
+
returnnil, errors.New("Invalid provider configuration. Either Connect credentials (\"connect_token\" and \"connect_url\") or Service Account (\"service_account_token\") or \"account\" should be set.")
MarkdownDescription: "The HTTP(S) URL where your 1Password Connect server can be found. Can also be sourced `OP_CONNECT_HOST` environment variable. Provider will use 1Password Connect server if set.",
54
54
Optional: true,
55
-
Validators: []validator.String{
56
-
stringvalidator.ConflictsWith(
57
-
path.Expressions{
58
-
path.MatchRoot("url"),
59
-
}...,
60
-
),
61
-
},
62
55
},
63
56
"connect_token": schema.StringAttribute{
64
57
MarkdownDescription: "A valid token for your 1Password Connect server. Can also be sourced from `OP_CONNECT_TOKEN` environment variable. Provider will use 1Password Connect server if set.",
65
58
Optional: true,
66
59
Sensitive: true,
67
-
Validators: []validator.String{
68
-
stringvalidator.ConflictsWith(
69
-
path.Expressions{
70
-
path.MatchRoot("token"),
71
-
}...,
72
-
),
73
-
},
74
60
},
75
61
"url": schema.StringAttribute{
76
62
MarkdownDescription: "The HTTP(S) URL where your 1Password Connect server can be found. Can also be sourced `OP_CONNECT_HOST` environment variable. Provider will use 1Password Connect server if set. Deprecated: Use `connect_url` instead.",
DeprecationMessage: "The \"url\" field is deprecated and will be removed in a future version. Use \"connect_url\" instead.",
85
72
},
86
73
"token": schema.StringAttribute{
87
74
MarkdownDescription: "A valid token for your 1Password Connect server. Can also be sourced from `OP_CONNECT_TOKEN` environment variable. Provider will use 1Password Connect server if set. Deprecated: Use `connect_token` instead.",
// Old field names - these are deprecated and will be removed in a future version.
136
124
if!config.ConnectHostOld.IsNull() {
137
-
resp.Diagnostics.AddWarning("Deprecated field", "The \"url\" field is deprecated and will be removed in a future version. Use \"connect_url\" instead.")
138
125
connectHost=config.ConnectHostOld.ValueString()
139
126
}
140
127
if!config.ConnectTokenOld.IsNull() {
141
-
resp.Diagnostics.AddWarning("Deprecated field", "The \"token\" field is deprecated and will be removed in a future version. Use \"connect_token\" instead.")
0 commit comments