Skip to content

Commit 3302827

Browse files
Upgrade terraform provider scm to v1.0.2 major (#371)
* first steps for update * Fix import casing * Update shim patch to use correct spelling of upstream package and call the provider via the new way * make schema * Generate SDKS * Git rename files with casing-only changes in Dotnet so worktree remains clean * Git rename Java files as well
1 parent dc0112b commit 3302827

File tree

12,048 files changed

+1433049
-305004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,048 files changed

+1433049
-305004
lines changed

.ci-mgmt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
provider: scm
2-
major-version: 0
2+
major-version: 1
33
makeTemplate: bridged
44
team: ecosystem
55
providerDefaultBranch: main

.github/workflows/prerequisites.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- uses: pulumi/provider-version-action@f96d032a2758fdda7939e5728eff6c0d980ae894 # v1.6.0
5353
id: provider-version
5454
with:
55-
major-version: 0
55+
major-version: 1
5656
set-env: 'PROVIDER_VERSION'
5757
- name: Cache examples generation
5858
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PULUMI_MISSING_DOCS_ERROR := false
1616

1717
# Override during CI using `make [TARGET] PROVIDER_VERSION=""` or by setting a PROVIDER_VERSION environment variable
1818
# Local & branch builds will just used this fixed default version unless specified
19-
PROVIDER_VERSION ?= 0.0.0-alpha.0+dev
19+
PROVIDER_VERSION ?= 1.0.0-alpha.0+dev
2020

2121
# Check version doesn't start with a "v" - this is a common mistake
2222
ifeq ($(shell echo $(PROVIDER_VERSION) | cut -c1),v)

docs/_index.md

Lines changed: 58 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ The `scm` provider provides resources and functions to manage and query Strata C
2121

2222
This provider covers the following aspects of Strata Cloud Manager:
2323
* Unified Networking Security
24+
## Beta Release Disclaimer
25+
26+
**This software is a pre-release version and is not ready for production use.**
27+
28+
* **No Warranty:** This software is provided "as is," without any warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.
29+
* **Instability:** The beta software may contain defects, may not operate correctly, and may be substantially modified or withdrawn at any time.
30+
* **Limitation of Liability:** In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the beta software or the use or other dealings in the beta software.
31+
* **Feedback:** We encourage and appreciate your feedback and bug reports. However, you acknowledge that any feedback you provide is non-confidential.
32+
33+
By using this software, you agree to these terms.
2434
## Warranty
2535

2636
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -35,14 +45,18 @@ THIS SOFTWARE IS RELEASED AS A PROOF OF CONCEPT FOR EXPERIMENTAL PURPOSES ONLY.
3545
name: configuration-example
3646
runtime: nodejs
3747
config:
48+
scm:authUrl:
49+
value: ""
3850
scm:clientId:
39-
value: your-id@12345
51+
value: ""
4052
scm:clientSecret:
41-
value: secret
53+
value: ""
4254
scm:host:
43-
value: api.strata.paloaltonetworks.com
55+
value: ""
56+
scm:logging:
57+
value: ""
4458
scm:scope:
45-
value: tsg_id:12345
59+
value: ""
4660

4761
```
4862
```typescript
@@ -56,14 +70,18 @@ import * as pulumi from "@pulumi/pulumi";
5670
name: configuration-example
5771
runtime: python
5872
config:
73+
scm:authUrl:
74+
value: ""
5975
scm:clientId:
60-
value: your-id@12345
76+
value: ""
6177
scm:clientSecret:
62-
value: secret
78+
value: ""
6379
scm:host:
64-
value: api.strata.paloaltonetworks.com
80+
value: ""
81+
scm:logging:
82+
value: ""
6583
scm:scope:
66-
value: tsg_id:12345
84+
value: ""
6785

6886
```
6987
```python
@@ -77,14 +95,18 @@ import pulumi
7795
name: configuration-example
7896
runtime: dotnet
7997
config:
98+
scm:authUrl:
99+
value: ""
80100
scm:clientId:
81-
value: your-id@12345
101+
value: ""
82102
scm:clientSecret:
83-
value: secret
103+
value: ""
84104
scm:host:
85-
value: api.strata.paloaltonetworks.com
105+
value: ""
106+
scm:logging:
107+
value: ""
86108
scm:scope:
87-
value: tsg_id:12345
109+
value: ""
88110

89111
```
90112
```csharp
@@ -104,14 +126,18 @@ return await Deployment.RunAsync(() =>
104126
name: configuration-example
105127
runtime: go
106128
config:
129+
scm:authUrl:
130+
value: ""
107131
scm:clientId:
108-
value: your-id@12345
132+
value: ""
109133
scm:clientSecret:
110-
value: secret
134+
value: ""
111135
scm:host:
112-
value: api.strata.paloaltonetworks.com
136+
value: ""
137+
scm:logging:
138+
value: ""
113139
scm:scope:
114-
value: tsg_id:12345
140+
value: ""
115141

116142
```
117143
```go
@@ -134,14 +160,18 @@ func main() {
134160
name: configuration-example
135161
runtime: yaml
136162
config:
163+
scm:authUrl:
164+
value: ""
137165
scm:clientId:
138-
value: your-id@12345
166+
value: ""
139167
scm:clientSecret:
140-
value: secret
168+
value: ""
141169
scm:host:
142-
value: api.strata.paloaltonetworks.com
170+
value: ""
171+
scm:logging:
172+
value: ""
143173
scm:scope:
144-
value: tsg_id:12345
174+
value: ""
145175

146176
```
147177
```yaml
@@ -154,14 +184,18 @@ config:
154184
name: configuration-example
155185
runtime: java
156186
config:
187+
scm:authUrl:
188+
value: ""
157189
scm:clientId:
158-
value: your-id@12345
190+
value: ""
159191
scm:clientSecret:
160-
value: secret
192+
value: ""
161193
scm:host:
162-
value: api.strata.paloaltonetworks.com
194+
value: ""
195+
scm:logging:
196+
value: ""
163197
scm:scope:
164-
value: tsg_id:12345
198+
value: ""
165199

166200
```
167201
```java

patches/0001-Add-shim.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ Subject: [PATCH] Add shim
66

77
diff --git a/scm/shim.go b/scm/shim.go
88
new file mode 100644
9-
index 0000000..0fabc68
9+
index 0000000..e573a39
1010
--- /dev/null
1111
+++ b/scm/shim.go
1212
@@ -0,0 +1,12 @@
1313
+package scm
1414
+
1515
+import (
16-
+ scm "github.com/PaloAltoNetworks/terraform-provider-scm/internal/provider"
1716
+ "github.com/hashicorp/terraform-plugin-framework/provider"
17+
+ scm "github.com/paloaltonetworks/terraform-provider-scm/internal/provider"
1818
+)
1919
+
2020
+const version = "dev"
2121
+
2222
+func Provider() provider.Provider {
23-
+ return scm.New(version)()
23+
+ return scm.New(version)
2424
+}

0 commit comments

Comments
 (0)