Skip to content

Commit

Permalink
Artifact Registry: add version policy support for maven (#5294) (#11246)
Browse files Browse the repository at this point in the history
* Artifact Registry: add version policy support for maven

* Artifact Registry: add version policy support for maven

* Fixing description

* tests

* Fixing camelcase to snake case

* Update mmv1/third_party/terraform/tests/resource_artifact_registry_repository_test.go.erb

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Update mmv1/products/artifactregistry/api.yaml

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Update mmv1/products/artifactregistry/api.yaml

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Update mmv1/products/artifactregistry/api.yaml

Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>

* Resolving comments

* Addressing comments

* Restricting modifications for allowSnapshotsOverwrite

* fixing test names

* Fixing tests

Co-authored-by: Yury Gridasov <gridasov@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
Signed-off-by: Modular Magician <magic-modules@google.com>

Co-authored-by: Yury Gridasov <gridasov@google.com>
Co-authored-by: Stephen Lewis (Burrows) <stephen.r.burrows@gmail.com>
  • Loading branch information
3 people committed Mar 9, 2022
1 parent 4d07390 commit ac0fed2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/5294.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
artifactregistry: added maven config for `google_artifact_registry_repository`
```
20 changes: 20 additions & 0 deletions website/docs/r/artifact_registry_repository.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,30 @@ The following arguments are supported:
`projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`.
This value may not be changed after the Repository has been created.

* `maven_config` -
(Optional)
MavenRepositoryConfig is maven related repository details.
Provides additional configuration details for repositories of the maven
format type.
Structure is [documented below](#nested_maven_config).

* `project` - (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.


<a name="nested_maven_config"></a>The `maven_config` block supports:

* `allow_snapshot_overwrites` -
(Optional)
The repository with this flag will allow publishing the same
snapshot versions.

* `version_policy` -
(Optional)
Version policy defines the versions that the registry will accept.
Default value is `VERSION_POLICY_UNSPECIFIED`.
Possible values are `VERSION_POLICY_UNSPECIFIED`, `RELEASE`, and `SNAPSHOT`.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:
Expand Down

0 comments on commit ac0fed2

Please sign in to comment.