Skip to content

Commit

Permalink
Upgrade terraform-provider-artifactory to v11.9.2 (#884)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-artifactory
--kind=all --target-bridge-version=latest`.

---

- Updating Java Gen version from 0.15.0 to 0.16.0.
- Upgrading terraform-provider-artifactory from 11.9.1  to 11.9.2.
	Fixes #883
  • Loading branch information
pulumi-bot authored Sep 13, 2024
1 parent 69c5ac8 commit 1753a1a
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .pulumi-java-gen.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.15.0
0.16.0
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-artifactory/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30179,7 +30179,7 @@
}
},
"artifactory:index/packageCleanupPolicy:PackageCleanupPolicy": {
"description": "Provides an Artifactory Package Cleanup Policy resource. This resource enable system administrators to define and customize policies based on specific criteria for removing unused binaries from across their JFrog platform. See [Retention Policies](https://jfrog.com/help/r/jfrog-platform-administration-documentation/retention-policies) for more details.\n\n-\u003eOnly available for Artifactory 7.90.1 or later.\n\n~\u003eCurrently in beta and not yet globally available. A full rollout is scheduled for early October 2024.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.artifactory.PackageCleanupPolicy;\nimport com.pulumi.artifactory.PackageCleanupPolicyArgs;\nimport com.pulumi.artifactory.inputs.PackageCleanupPolicySearchCriteriaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var my_cleanup_policy = new PackageCleanupPolicy(\"my-cleanup-policy\", PackageCleanupPolicyArgs.builder()\n .key(\"my-policy\")\n .description(\"My package cleanup policy\")\n .cronExpression(\"0 0 2 ? * MON-SAT *\")\n .durationInMinutes(60)\n .enabled(true)\n .skipTrashcan(false)\n .projectKey(\"myprojkey\")\n .searchCriteria(PackageCleanupPolicySearchCriteriaArgs.builder()\n .package_types( \n \"docker\",\n \"maven\")\n .repos( \n \"my-docker-local\",\n \"my-maven-local\")\n .excluded_repos(\"gradle-global\")\n .include_all_projects(false)\n .included_projects()\n .included_packages(\"com/jfrog\")\n .excluded_packages(\"com/jfrog/latest\")\n .created_before_in_months(1)\n .last_downloaded_before_in_months(6)\n .keep_last_n_versions(0)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n my-cleanup-policy:\n type: artifactory:PackageCleanupPolicy\n properties:\n key: my-policy\n description: My package cleanup policy\n cronExpression: 0 0 2 ? * MON-SAT *\n durationInMinutes: 60\n enabled: true\n skipTrashcan: false\n projectKey: myprojkey\n searchCriteria:\n package_types:\n - docker\n - maven\n repos:\n - my-docker-local\n - my-maven-local\n excluded_repos:\n - gradle-global\n include_all_projects: false\n included_projects: []\n included_packages:\n - com/jfrog\n excluded_packages:\n - com/jfrog/latest\n created_before_in_months: 1\n last_downloaded_before_in_months: 6\n keep_last_n_versions: 0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import artifactory:index/packageCleanupPolicy:PackageCleanupPolicy my-cleanup-policy my-policy\n```\n\n```sh\n$ pulumi import artifactory:index/packageCleanupPolicy:PackageCleanupPolicy my-cleanup-policy my-policy:myproj\n```\n\n",
"description": "Provides an Artifactory Package Cleanup Policy resource. This resource enable system administrators to define and customize policies based on specific criteria for removing unused binaries from across their JFrog platform. See [Rentation Policies](https://jfrog.com/help/r/jfrog-platform-administration-documentation/retention-policies) for more details.\n\n~\u003eCurrently in beta and not yet globally available. A full rollout is scheduled for early October 2024.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.artifactory.PackageCleanupPolicy;\nimport com.pulumi.artifactory.PackageCleanupPolicyArgs;\nimport com.pulumi.artifactory.inputs.PackageCleanupPolicySearchCriteriaArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var my_cleanup_policy = new PackageCleanupPolicy(\"my-cleanup-policy\", PackageCleanupPolicyArgs.builder()\n .key(\"my-policy\")\n .description(\"My package cleanup policy\")\n .cronExpression(\"0 0 2 ? * MON-SAT *\")\n .durationInMinutes(60)\n .enabled(true)\n .skipTrashcan(false)\n .projectKey(\"myprojkey\")\n .searchCriteria(PackageCleanupPolicySearchCriteriaArgs.builder()\n .package_types( \n \"docker\",\n \"maven\")\n .repos( \n \"my-docker-local\",\n \"my-maven-local\")\n .excluded_repos(\"gradle-global\")\n .include_all_projects(false)\n .included_projects()\n .included_packages(\"com/jfrog\")\n .excluded_packages(\"com/jfrog/latest\")\n .created_before_in_months(1)\n .last_downloaded_before_in_months(6)\n .keep_last_n_versions(0)\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n my-cleanup-policy:\n type: artifactory:PackageCleanupPolicy\n properties:\n key: my-policy\n description: My package cleanup policy\n cronExpression: 0 0 2 ? * MON-SAT *\n durationInMinutes: 60\n enabled: true\n skipTrashcan: false\n projectKey: myprojkey\n searchCriteria:\n package_types:\n - docker\n - maven\n repos:\n - my-docker-local\n - my-maven-local\n excluded_repos:\n - gradle-global\n include_all_projects: false\n included_projects: []\n included_packages:\n - com/jfrog\n excluded_packages:\n - com/jfrog/latest\n created_before_in_months: 1\n last_downloaded_before_in_months: 6\n keep_last_n_versions: 0\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import artifactory:index/packageCleanupPolicy:PackageCleanupPolicy my-cleanup-policy my-policy\n```\n\n```sh\n$ pulumi import artifactory:index/packageCleanupPolicy:PackageCleanupPolicy my-cleanup-policy my-policy:myproj\n```\n\n",
"properties": {
"cronExpression": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
module github.com/pulumi/pulumi-artifactory/provider/v7

go 1.22.5
go 1.22.7

replace (
github.com/hashicorp/go-getter v1.5.0 => github.com/hashicorp/go-getter v1.4.0
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10
)

require (
github.com/jfrog/terraform-provider-artifactory/v11 v11.9.1
github.com/jfrog/terraform-provider-artifactory/v11 v11.9.2
github.com/pulumi/providertest v0.0.14
github.com/pulumi/pulumi-terraform-bridge/pf v0.43.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.90.0
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1721,8 +1721,8 @@ github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
github.com/jfrog/terraform-provider-artifactory/v11 v11.9.1 h1:ZeMPwToA7b722n6elbPpaUaa6J5XVBadRAz62I0WRY4=
github.com/jfrog/terraform-provider-artifactory/v11 v11.9.1/go.mod h1:g7GJysPJ7X2u8Il5wSAbUZxkcqdhZGEo03/NJMfe6gk=
github.com/jfrog/terraform-provider-artifactory/v11 v11.9.2 h1:zsANTWFJw8FuiWigYiyPOLSczHt4nBWEtjUL2j9aPKY=
github.com/jfrog/terraform-provider-artifactory/v11 v11.9.2/go.mod h1:lk28VDpgQXBinvuQWfIy9Hnpmyt2/axTnv0e/kYYvP0=
github.com/jfrog/terraform-provider-shared v1.25.5 h1:+hal/9yDAIt2mZljDR8Ymie28yAHr8CAkfthwQ3O3bM=
github.com/jfrog/terraform-provider-shared v1.25.5/go.mod h1:QthwPRUALElMt2RTGqoeB/3Vztx626YPBzIAoqEp0w0=
github.com/jhump/gopoet v0.0.0-20190322174617-17282ff210b3/go.mod h1:me9yfT6IJSlOL3FCfrg+L6yzUEZ+5jW6WHt4Sk+UPUI=
Expand Down
4 changes: 1 addition & 3 deletions sdk/dotnet/PackageCleanupPolicy.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions sdk/go/artifactory/packageCleanupPolicy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/java/build.gradle

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions sdk/nodejs/packageCleanupPolicy.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions sdk/python/pulumi_artifactory/package_cleanup_policy.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1753a1a

Please sign in to comment.