Skip to content

Commit

Permalink
Merged with main
Browse files Browse the repository at this point in the history
Signed-off-by: Samir Anand <[email protected]>
  • Loading branch information
samiranand1990 committed Dec 8, 2023
2 parents 67fafc5 + 05227f7 commit 106ac60
Show file tree
Hide file tree
Showing 35 changed files with 1,489 additions and 4 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# Change Log

<!-- latest_release 1.11.59 -->
<!-- latest_release 1.11.61 -->
## [v1.11.61](https://github.com/inspec/inspec-gcp/tree/v1.11.61) (2023-12-08)

#### Merged Pull Requests
- CHEF-7356-MAGIC-MODULE-apigee-Organizations__envgroup - Resource Implementation [#539](https://github.com/inspec/inspec-gcp/pull/539) ([sa-progress](https://github.com/sa-progress))
<!-- latest_release -->

## [v1.11.60](https://github.com/inspec/inspec-gcp/tree/v1.11.60) (2023-12-08)

#### Merged Pull Requests
- CHEF-7354-MAGIC-MODULE-artifactregistry-Projects__locations__repository - Resource Implementation [#544](https://github.com/inspec/inspec-gcp/pull/544) ([sa-progress](https://github.com/sa-progress))

## [v1.11.59](https://github.com/inspec/inspec-gcp/tree/v1.11.59) (2023-12-08)

#### Merged Pull Requests
- Removed worng dir [#551](https://github.com/inspec/inspec-gcp/pull/551) ([sa-progress](https://github.com/sa-progress))
<!-- latest_release -->

## [v1.11.58](https://github.com/inspec/inspec-gcp/tree/v1.11.58) (2023-12-08)

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ The following resources are available in the InSpec GCP Profile
| [google_access_context_manager_access_level](docs/resources/google_access_context_manager_access_level.md) | [google_access_context_manager_access_levels](docs/resources/google_access_context_manager_access_levels.md) |
| [google_access_context_manager_access_policy](docs/resources/google_access_context_manager_access_policy.md) | [google_access_context_manager_access_policies](docs/resources/google_access_context_manager_access_policies.md) |
| [google_access_context_manager_service_perimeter](docs/resources/google_access_context_manager_service_perimeter.md) | [google_access_context_manager_service_perimeters](docs/resources/google_access_context_manager_service_perimeters.md) |
| [google_apigeegoogle_apigee_organization_envgroup](docs/resources/google_apigee_organization_envgroup.md) | [google_apigee_organization_envgroups](docs/resources/google_apigee_organization_envgroups.md) |
| [google_apigee_organization_envgroup_attachment](docs/resources/google_apigee_organization_envgroup_attachment.md) | [google_apigee_organization_envgroup_attachments](docs/resources/google_apigee_organization_envgroup_attachments.md) |
| [google_appengine_standard_app_version](docs/resources/google_appengine_standard_app_version.md) | [google_appengine_standard_app_versions](docs/resources/google_appengine_standard_app_versions.md) |
| [google_bigquery_dataset](docs/resources/google_bigquery_dataset.md) | [google_bigquery_datasets](docs/resources/google_bigquery_datasets.md) |
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.59
1.11.61
50 changes: 50 additions & 0 deletions docs/resources/google_apigee_organization_envgroup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: About the google_apigee_organization_envgroup resource
platform: gcp
---

## Syntax

A `google_apigee_organization_envgroup` is used to test a Google OrganizationEnvgroup resource

## Examples

```
describe google_apigee_organization_envgroup(name: ' value_name') do
it { should exist }
its('name') { should cmp 'value_name' }
its('hostnames') { should include 'value_hostname' }
its('last_modified_at') { should cmp 'value_lastmodifiedat' }
its('state') { should cmp 'value_state' }
its('created_at') { should cmp 'value_createdat' }
end
describe google_apigee_organization_envgroup(name: "does_not_exit") do
it { should_not exist }
end
```

## Properties

Properties that can be accessed from the `google_apigee_organization_envgroup` resource:

* `name`: ID of the environment group.

* `last_modified_at`: The time at which the environment group was last updated as milliseconds since epoch.

* `hostnames`: Host names for this environment group.

* `state`: State of the environment group. Values other than ACTIVE means the resource is not ready to use.

Possible values:
* STATE_UNSPECIFIED
* CREATING
* ACTIVE
* DELETING
* UPDATING

* `created_at`: The time at which the environment group was created as milliseconds since epoch.

## GCP Permissions

Ensure the [Apigee API](https://console.cloud.google.com/apis/library/apigee.googleapis.com/) is enabled for the current project.
36 changes: 36 additions & 0 deletions docs/resources/google_apigee_organization_envgroups.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: About the google_apigee_organization_envgroups resource
platform: gcp
---

## Syntax

A `google_apigee_organization_envgroups` is used to test a Google OrganizationEnvgroup resource

## Examples

```
describe google_apigee_organization_envgroups(parent: 'value_parent') do
it { should exist }
end
```

## Properties

Properties that can be accessed from the `google_apigee_organization_envgroups` resource:

See [google_apigee_organization_envgroup.md](google_apigee_organization_envgroup.md) for more detailed information
* `names`: an array of `google_apigee_organization_envgroup` name
* `last_modified_ats`: an array of `google_apigee_organization_envgroup` last_modified_at
* `hostnames`: an array of `google_apigee_organization_envgroup` hostnames
* `states`: an array of `google_apigee_organization_envgroup` state
* `created_ats`: an array of `google_apigee_organization_envgroup` created_at

## Filter Criteria

This resource supports all of the above properties as filter criteria, which can be used
with `where` as a block or a method.

## GCP Permissions

Ensure the [Apigee API](https://console.cloud.google.com/apis/library/apigee.googleapis.com/) is enabled for the current project.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: About the google_artifactregistry_project_location_repositories resource
platform: gcp
---

## Syntax
A `google_artifactregistry_project_location_repositories` is used to test a Google ProjectLocationRepository resource

## Examples
```
describe google_artifactregistry_project_location_repositories(parent: ' value_parent') do
it { should exist }
end
```

## Properties
Properties that can be accessed from the `google_artifactregistry_project_location_repositories` resource:

See [google_artifactregistry_project_location_repository.md](google_artifactregistry_project_location_repository.md) for more detailed information
* `maven_configs`: an array of `google_artifactregistry_project_location_repository` maven_config
* `docker_configs`: an array of `google_artifactregistry_project_location_repository` docker_config
* `virtual_repository_configs`: an array of `google_artifactregistry_project_location_repository` virtual_repository_config
* `remote_repository_configs`: an array of `google_artifactregistry_project_location_repository` remote_repository_config
* `names`: an array of `google_artifactregistry_project_location_repository` name
* `formats`: an array of `google_artifactregistry_project_location_repository` format
* `descriptions`: an array of `google_artifactregistry_project_location_repository` description
* `labels`: an array of `google_artifactregistry_project_location_repository` labels
* `create_times`: an array of `google_artifactregistry_project_location_repository` create_time
* `update_times`: an array of `google_artifactregistry_project_location_repository` update_time
* `kms_key_names`: an array of `google_artifactregistry_project_location_repository` kms_key_name
* `modes`: an array of `google_artifactregistry_project_location_repository` mode
* `cleanup_policies`: an array of `google_artifactregistry_project_location_repository` cleanup_policies
* `size_bytes`: an array of `google_artifactregistry_project_location_repository` size_bytes
* `satisfies_pzs`: an array of `google_artifactregistry_project_location_repository` satisfies_pzs
* `cleanup_policy_dry_runs`: an array of `google_artifactregistry_project_location_repository` cleanup_policy_dry_run

## Filter Criteria
This resource supports all of the above properties as filter criteria, which can be used
with `where` as a block or a method.

## GCP Permissions

Ensure the [Artifact Registry API](https://console.cloud.google.com/apis/library/artifactregistry.googleapis.com/) is enabled for the current project.
165 changes: 165 additions & 0 deletions docs/resources/google_artifactregistry_project_location_repository.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
---
title: About the google_artifactregistry_project_location_repository resource
platform: gcp
---

## Syntax
A `google_artifactregistry_project_location_repository` is used to test a Google ProjectLocationRepository resource

## Examples
```
describe google_artifactregistry_project_location_repository(name: ' value_name') do
it { should exist }
end
describe google_artifactregistry_project_location_repository(name: "does_not_exit") do
it { should_not exist }
end
```

## Properties
Properties that can be accessed from the `google_artifactregistry_project_location_repository` resource:


* `maven_config`: MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.

* `allow_snapshot_overwrites`: The repository with this flag will allow publishing the same snapshot versions.

* `version_policy`: Version policy defines the versions that the registry will accept.
Possible values:
* VERSION_POLICY_UNSPECIFIED
* RELEASE
* SNAPSHOT

* `docker_config`: DockerRepositoryConfig is docker related repository details. Provides additional configuration details for repositories of the docker format type.

* `immutable_tags`: The repository which enabled this flag prevents all tags from being modified, moved or deleted. This does not prevent tags from being created.

* `virtual_repository_config`: Virtual repository configuration.

* `upstream_policies`: Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

* `id`: The user-provided ID of the upstream policy.

* `repository`: A reference to the repository resource, for example: `projects/p1/locations/us-central1/repositories/repo1`.

* `priority`: Entries with a greater priority value take precedence in the pull order.

* `remote_repository_config`: Remote repository configuration.

* `docker_repository`: Configuration for a Docker remote repository.

* `public_repository`: One of the publicly available Docker repositories supported by Artifact Registry.
Possible values:
* PUBLIC_REPOSITORY_UNSPECIFIED
* DOCKER_HUB

* `maven_repository`: Configuration for a Maven remote repository.

* `public_repository`: One of the publicly available Maven repositories supported by Artifact Registry.
Possible values:
* PUBLIC_REPOSITORY_UNSPECIFIED
* MAVEN_CENTRAL

* `npm_repository`: Configuration for a Npm remote repository.

* `public_repository`: One of the publicly available Npm repositories supported by Artifact Registry.
Possible values:
* PUBLIC_REPOSITORY_UNSPECIFIED
* NPMJS

* `python_repository`: Configuration for a Python remote repository.

* `public_repository`: One of the publicly available Python repositories supported by Artifact Registry.
Possible values:
* PUBLIC_REPOSITORY_UNSPECIFIED
* PYPI

* `apt_repository`: Configuration for an Apt remote repository.

* `public_repository`: Publicly available Apt repositories constructed from a common repository base and a custom repository path.

* `repository_base`: A common public repository base for Apt.
Possible values:
* REPOSITORY_BASE_UNSPECIFIED
* DEBIAN
* UBUNTU
* DEBIAN_SNAPSHOT

* `repository_path`: A custom field to define a path to a specific repository from the base.

* `yum_repository`: Configuration for a Yum remote repository.

* `public_repository`: Publicly available Yum repositories constructed from a common repository base and a custom repository path.

* `repository_base`: A common public repository base for Yum.
Possible values:
* REPOSITORY_BASE_UNSPECIFIED
* CENTOS
* CENTOS_DEBUG
* CENTOS_VAULT
* CENTOS_STREAM
* ROCKY
* EPEL

* `repository_path`: A custom field to define a path to a specific repository from the base.

* `description`: The description of the remote source.

* `upstream_credentials`: The credentials to access the remote repository.

* `username_password_credentials`: Username and password credentials.

* `username`: The username to access the remote repository.

* `password_secret_version`: The Secret Manager key version that holds the password to access the remote repository. Must be in the format of `projects/{project}/secrets/{secret}/versions/{version}`.

* `name`: The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.

* `format`: Optional. The format of packages that are stored in the repository.
Possible values:
* FORMAT_UNSPECIFIED
* DOCKER
* MAVEN
* NPM
* APT
* YUM
* GOOGET
* PYTHON
* KFP
* GO

* `description`: The user-provided description of the repository.

* `labels`: Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

* `additional_properties`:

* `create_time`: Output only. The time when the repository was created.

* `update_time`: Output only. The time when the repository was last updated.

* `kms_key_name`: The Cloud KMS resource name of the customer managed encryption key that's used to encrypt the contents of the Repository. Has the form: `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. This value may not be changed after the Repository has been created.

* `mode`: Optional. The mode of the repository.
Possible values:
* MODE_UNSPECIFIED
* STANDARD_REPOSITORY
* VIRTUAL_REPOSITORY
* REMOTE_REPOSITORY

* `cleanup_policies`: Optional. Cleanup policies for this repository. Cleanup policies indicate when certain package versions can be automatically deleted. Map keys are policy IDs supplied by users during policy creation. They must unique within a repository and be under 128 characters in length.

* `additional_properties`: Artifact policy configuration for repository cleanup policies.

* `size_bytes`: Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs.

* `satisfies_pzs`: Output only. If set, the repository satisfies physical zone separation.

* `cleanup_policy_dry_run`: Optional. If true, the cleanup pipeline is prevented from deleting versions in this repository.


## GCP Permissions

Ensure the [Artifact Registry API](https://console.cloud.google.com/apis/library/artifactregistry.googleapis.com/) is enabled for the current project.
2 changes: 1 addition & 1 deletion inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ maintainer: [email protected],[email protected]
summary: This resource pack provides compliance resources_old_ignore for Google Cloud Platform
copyright: [email protected],[email protected]
copyright_email: [email protected],[email protected]
version: 1.11.59
version: 1.11.61
license: Apache-2.0
inspec_version: '>= 4.7.3'
supports:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** Type: MMv1 ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in README.md and
# CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
module GoogleInSpec
module Artifactregistry
module Property
class ProjectLocationRepositoryCleanupPolicies
attr_reader :additional_properties

def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
@additional_properties = args['additionalProperties']
end

def to_s
"#{@parent_identifier} ProjectLocationRepositoryCleanupPolicies"
end
end
end
end
end
Loading

0 comments on commit 106ac60

Please sign in to comment.