-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically generated by magic modules for service: run_v2 and reso…
…urce: Service. This commit includes the following changes: - Singular Resource - Plural Resource - Documentation updates - Terraform configuration - Integration tests Signed-off-by: Samir <[email protected]>
- Loading branch information
1 parent
1b5d34d
commit 6af12c8
Showing
46 changed files
with
2,734 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
+++ | ||
|
||
title = "google_run_services Resource" | ||
platform = "gcp" | ||
draft = false | ||
gh_repo = "inspec-gcp" | ||
|
||
|
||
[menu.inspec] | ||
|
||
title = "google_run_services" | ||
identifier = "inspec/resources/gcp/google_run_services Resource" | ||
parent = "inspec/resources/gcp" | ||
+++ | ||
|
||
Use the `google_run_services` InSpec audit resource to test the properties of a test a Google Service. | ||
|
||
## Installation | ||
{{% inspec_gcp_install %}} | ||
|
||
## Syntax | ||
A `google_run_services` is used to test a Google Service resource | ||
|
||
## Examples | ||
``` | ||
describe google_run_services(parent: ' ') do | ||
it { should exist } | ||
end | ||
``` | ||
|
||
## Parameters | ||
Properties that can be accessed from the `google_run_services` resource: | ||
|
||
See [google_run_service.md](google_run_service.md) for more detailed information | ||
* `names`: an array of `google_run_service` name | ||
* `descriptions`: an array of `google_run_service` description | ||
* `uids`: an array of `google_run_service` uid | ||
* `generations`: an array of `google_run_service` generation | ||
* `labels`: an array of `google_run_service` labels | ||
* `annotations`: an array of `google_run_service` annotations | ||
* `create_times`: an array of `google_run_service` create_time | ||
* `update_times`: an array of `google_run_service` update_time | ||
* `delete_times`: an array of `google_run_service` delete_time | ||
* `expire_times`: an array of `google_run_service` expire_time | ||
* `creators`: an array of `google_run_service` creator | ||
* `last_modifiers`: an array of `google_run_service` last_modifier | ||
* `clients`: an array of `google_run_service` client | ||
* `client_versions`: an array of `google_run_service` client_version | ||
* `ingresses`: an array of `google_run_service` ingress | ||
* `launch_stages`: an array of `google_run_service` launch_stage | ||
* `binary_authorizations`: an array of `google_run_service` binary_authorization | ||
* `templates`: an array of `google_run_service` template | ||
* `traffics`: an array of `google_run_service` traffic | ||
* `scalings`: an array of `google_run_service` scaling | ||
* `default_uri_disableds`: an array of `google_run_service` default_uri_disabled | ||
* `custom_audiences`: an array of `google_run_service` custom_audiences | ||
* `observed_generations`: an array of `google_run_service` observed_generation | ||
* `terminal_conditions`: an array of `google_run_service` terminal_condition | ||
* `conditions`: an array of `google_run_service` conditions | ||
* `latest_ready_revisions`: an array of `google_run_service` latest_ready_revision | ||
* `latest_created_revisions`: an array of `google_run_service` latest_created_revision | ||
* `traffic_statuses`: an array of `google_run_service` traffic_statuses | ||
* `uris`: an array of `google_run_service` uri | ||
* `satisfies_pzs`: an array of `google_run_service` satisfies_pzs | ||
* `reconcilings`: an array of `google_run_service` reconciling | ||
* `etags`: an array of `google_run_service` etag | ||
## Properties | ||
Properties that can be accessed from the `google_run_services` resource: | ||
|
||
See [google_run_service.md](google_run_service.md) for more detailed information | ||
* `names`: an array of `google_run_service` name | ||
* `descriptions`: an array of `google_run_service` description | ||
* `uids`: an array of `google_run_service` uid | ||
* `generations`: an array of `google_run_service` generation | ||
* `labels`: an array of `google_run_service` labels | ||
* `annotations`: an array of `google_run_service` annotations | ||
* `create_times`: an array of `google_run_service` create_time | ||
* `update_times`: an array of `google_run_service` update_time | ||
* `delete_times`: an array of `google_run_service` delete_time | ||
* `expire_times`: an array of `google_run_service` expire_time | ||
* `creators`: an array of `google_run_service` creator | ||
* `last_modifiers`: an array of `google_run_service` last_modifier | ||
* `clients`: an array of `google_run_service` client | ||
* `client_versions`: an array of `google_run_service` client_version | ||
* `ingresses`: an array of `google_run_service` ingress | ||
* `launch_stages`: an array of `google_run_service` launch_stage | ||
* `binary_authorizations`: an array of `google_run_service` binary_authorization | ||
* `templates`: an array of `google_run_service` template | ||
* `traffics`: an array of `google_run_service` traffic | ||
* `scalings`: an array of `google_run_service` scaling | ||
* `default_uri_disableds`: an array of `google_run_service` default_uri_disabled | ||
* `custom_audiences`: an array of `google_run_service` custom_audiences | ||
* `observed_generations`: an array of `google_run_service` observed_generation | ||
* `terminal_conditions`: an array of `google_run_service` terminal_condition | ||
* `conditions`: an array of `google_run_service` conditions | ||
* `latest_ready_revisions`: an array of `google_run_service` latest_ready_revision | ||
* `latest_created_revisions`: an array of `google_run_service` latest_created_revision | ||
* `traffic_statuses`: an array of `google_run_service` traffic_statuses | ||
* `uris`: an array of `google_run_service` uri | ||
* `satisfies_pzs`: an array of `google_run_service` satisfies_pzs | ||
* `reconcilings`: an array of `google_run_service` reconciling | ||
* `etags`: an array of `google_run_service` etag | ||
|
||
## 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 [https://run.googleapis.com/](https://console.cloud.google.com/apis/library/run.googleapis.com/) is enabled for the current project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Run | ||
module Property | ||
class ServiceAnnotations | ||
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} ServiceAnnotations" | ||
end | ||
end | ||
end | ||
end | ||
end |
40 changes: 40 additions & 0 deletions
40
libraries/google/run/property/service_binary_authorization.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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 Run | ||
module Property | ||
class ServiceBinaryAuthorization | ||
attr_reader :use_default | ||
|
||
attr_reader :policy | ||
|
||
attr_reader :breakglass_justification | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@use_default = args['useDefault'] | ||
@policy = args['policy'] | ||
@breakglass_justification = args['breakglassJustification'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} ServiceBinaryAuthorization" | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# 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 Run | ||
module Property | ||
class ServiceConditions | ||
attr_reader :type | ||
|
||
attr_reader :state | ||
|
||
attr_reader :message | ||
|
||
attr_reader :last_transition_time | ||
|
||
attr_reader :severity | ||
|
||
attr_reader :reason | ||
|
||
attr_reader :revision_reason | ||
|
||
attr_reader :execution_reason | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@type = args['type'] | ||
@state = args['state'] | ||
@message = args['message'] | ||
@last_transition_time = args['lastTransitionTime'] | ||
@severity = args['severity'] | ||
@reason = args['reason'] | ||
@revision_reason = args['revisionReason'] | ||
@execution_reason = args['executionReason'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} ServiceConditions" | ||
end | ||
end | ||
|
||
class ServiceConditionsArray | ||
def self.parse(value, parent_identifier) | ||
return if value.nil? | ||
return ServiceConditions.new(value, parent_identifier) unless value.is_a?(::Array) | ||
value.map { |v| ServiceConditions.new(v, parent_identifier) } | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Run | ||
module Property | ||
class ServiceLabels | ||
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} ServiceLabels" | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Run | ||
module Property | ||
class ServiceScaling | ||
attr_reader :min_instance_count | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@min_instance_count = args['minInstanceCount'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} ServiceScaling" | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.