Skip to content

Commit 457724f

Browse files
Automatically generated by magic modules for service: apigee and resource: Organizations__envgroup.
This commit includes the following changes: - Singular Resource ERB File - Plural Resource ERB File - Terraform configuration - api.yaml configuration for product apigee and resource Organizations__envgroup Signed-off-by: Samir Anand <sam.sunny001@gmail.com>
1 parent 5550e69 commit 457724f

6 files changed

Lines changed: 164 additions & 1 deletion

File tree

mmv1/products/apigee/api.yaml

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,3 +498,123 @@ objects:
498498
'Creating an environment':
499499
'https://cloud.google.com/apigee/docs/api-platform/get-started/create-environment'
500500
api: 'https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.endpointAttachments/create'
501+
502+
503+
504+
- !ruby/object:Api::Resource
505+
name: OrganizationEnvgroup
506+
base_url: '{{parent}}/envgroups'
507+
self_link: '{{name}}'
508+
references: !ruby/object:Api::Resource::ReferenceLinks
509+
guides:
510+
'Official Documentation':
511+
api: 'https://cloud.google.com/apigee/docs'
512+
async: !ruby/object:Api::OpAsync
513+
operation: !ruby/object:Api::OpAsync::Operation
514+
path: 'name'
515+
base_url: '{op_id}'
516+
wait_ms: 1000
517+
result: !ruby/object:Api::OpAsync::Result
518+
path: 'response'
519+
resource_inside_response: true
520+
status: !ruby/object:Api::OpAsync::Status
521+
path: 'done'
522+
complete: True
523+
allowed:
524+
- True
525+
- False
526+
error: !ruby/object:Api::OpAsync::Error
527+
path: 'error'
528+
message: 'message'
529+
description: |-
530+
EnvironmentGroup configuration. An environment group is used to group one or more Apigee environments under a single host name.
531+
properties:
532+
533+
- !ruby/object:Api::Type::String
534+
name: 'name'
535+
description: |
536+
ID of the environment group.
537+
- !ruby/object:Api::Type::String
538+
name: 'lastModifiedAt'
539+
description: |
540+
Output only. The time at which the environment group was last updated as milliseconds since epoch.
541+
- !ruby/object:Api::Type::Array
542+
name: 'hostnames'
543+
description: |
544+
Required. Host names for this environment group.
545+
item_type: Api::Type::String
546+
- !ruby/object:Api::Type::Enum
547+
name: 'state'
548+
description: |
549+
Output only. State of the environment group. Values other than ACTIVE means the resource is not ready to use.
550+
values:
551+
- :STATE_UNSPECIFIED
552+
- :CREATING
553+
- :ACTIVE
554+
- :DELETING
555+
- :UPDATING
556+
- !ruby/object:Api::Type::String
557+
name: 'createdAt'
558+
description: |
559+
Output only. The time at which the environment group was created as milliseconds since epoch.
560+
561+
562+
563+
564+
- !ruby/object:Api::Resource
565+
name: OrganizationEnvgroup
566+
base_url: '{{parent}}/envgroups'
567+
self_link: '{{name}}'
568+
references: !ruby/object:Api::Resource::ReferenceLinks
569+
guides:
570+
'Official Documentation':
571+
api: 'https://cloud.google.com/apigee/docs'
572+
async: !ruby/object:Api::OpAsync
573+
operation: !ruby/object:Api::OpAsync::Operation
574+
path: 'name'
575+
base_url: '{op_id}'
576+
wait_ms: 1000
577+
result: !ruby/object:Api::OpAsync::Result
578+
path: 'response'
579+
resource_inside_response: true
580+
status: !ruby/object:Api::OpAsync::Status
581+
path: 'done'
582+
complete: True
583+
allowed:
584+
- True
585+
- False
586+
error: !ruby/object:Api::OpAsync::Error
587+
path: 'error'
588+
message: 'message'
589+
description: |-
590+
EnvironmentGroup configuration. An environment group is used to group one or more Apigee environments under a single host name.
591+
properties:
592+
593+
- !ruby/object:Api::Type::String
594+
name: 'name'
595+
description: |
596+
ID of the environment group.
597+
- !ruby/object:Api::Type::String
598+
name: 'lastModifiedAt'
599+
description: |
600+
Output only. The time at which the environment group was last updated as milliseconds since epoch.
601+
- !ruby/object:Api::Type::Array
602+
name: 'hostnames'
603+
description: |
604+
Required. Host names for this environment group.
605+
item_type: Api::Type::String
606+
- !ruby/object:Api::Type::Enum
607+
name: 'state'
608+
description: |
609+
Output only. State of the environment group. Values other than ACTIVE means the resource is not ready to use.
610+
values:
611+
- :STATE_UNSPECIFIED
612+
- :CREATING
613+
- :ACTIVE
614+
- :DELETING
615+
- :UPDATING
616+
- !ruby/object:Api::Type::String
617+
name: 'createdAt'
618+
description: |
619+
Output only. The time at which the environment group was created as milliseconds since epoch.
620+

mmv1/products/apigee/inspec.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2017 Google Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
--- !ruby/object:Provider::Inspec::Config
15+
overrides: !ruby/object:Overrides::ResourceOverrides
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
2+
<% organization_envgroup = grab_attributes(pwd)['organization_envgroup'] -%>
3+
describe google_apigee_organization_envgroup(name: <%= doc_generation ? "' #{organization_envgroup['name']}'":"organization_envgroup['name']" -%>) do
4+
it { should exist }
5+
its('name') { should cmp <%= doc_generation ? "'#{organization_envgroup['name']}'" : "organization_envgroup['name']" -%> }
6+
its('last_modified_at') { should cmp <%= doc_generation ? "'#{organization_envgroup['last_modified_at']}'" : "organization_envgroup['last_modified_at']" -%> }
7+
its('state') { should cmp <%= doc_generation ? "'#{organization_envgroup['state']}'" : "organization_envgroup['state']" -%> }
8+
its('created_at') { should cmp <%= doc_generation ? "'#{organization_envgroup['created_at']}'" : "organization_envgroup['created_at']" -%> }
9+
10+
end
11+
12+
describe google_apigee_organization_envgroup(name: "does_not_exit") do
13+
it { should_not exist }
14+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
gcp_project_id = input(:gcp_project_id, value: '<%= external_attribute(pwd, 'gcp_project_id') -%>', description: 'The GCP project identifier.')
2+
3+
organization_envgroup = input('organization_envgroup', value: <%= JSON.pretty_generate(grab_attributes(pwd)['organization_envgroup']) -%>, description: 'organization_envgroup description')
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
2+
<% organization_envgroup = grab_attributes(pwd)['organization_envgroup'] -%>
3+
describe google_apigee_organization_envgroups(parent: <%= doc_generation ? "' #{organization_envgroup['parent']}'":"organization_envgroup['parent']" -%>) do
4+
it { should exist }
5+
end

mmv1/templates/inspec/tests/integration/configuration/mm-attributes.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,4 +895,10 @@ vpn_gateway:
895895
network : "value_network"
896896
self_link : "value_selflink"
897897
label_fingerprint : "value_labelfingerprint"
898-
stack_type : "value_stacktype"
898+
stack_type : "value_stacktype"
899+
organization_envgroup:
900+
name : "value_name"
901+
parent : "value_parent"
902+
last_modified_at : "value_lastmodifiedat"
903+
state : "value_state"
904+
created_at : "value_createdat"

0 commit comments

Comments
 (0)