Skip to content

Commit

Permalink
Automatically generated by magic modules for service: apigee and reso…
Browse files Browse the repository at this point in the history
…urce: Organizations__apis__revision.

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__apis__revision

Signed-off-by: Samir Anand <[email protected]>
  • Loading branch information
samiranand1990 committed Dec 13, 2023
1 parent dfff5d9 commit d8c4d42
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
45 changes: 45 additions & 0 deletions mmv1/products/apigee/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1160,3 +1160,48 @@ objects:
description: |
Output only. The time at which the environment group was created as milliseconds since epoch.



- !ruby/object:Api::Resource
name: OrganizationApiRevision
self_link: '{{name}}'
references: !ruby/object:Api::Resource::ReferenceLinks
guides:
'Official Documentation':
api: 'https://cloud.google.com/apigee/docs'
async: !ruby/object:Api::OpAsync
operation: !ruby/object:Api::OpAsync::Operation
path: 'name'
base_url: '{op_id}'
wait_ms: 1000
result: !ruby/object:Api::OpAsync::Result
path: 'response'
resource_inside_response: true
status: !ruby/object:Api::OpAsync::Status
path: 'done'
complete: True
allowed:
- True
- False
error: !ruby/object:Api::OpAsync::Error
path: 'error'
message: 'message'
description: |-
Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
properties:

- !ruby/object:Api::Type::Array
name: 'extensions'
description: |
Application specific response metadata. Must be set in the first response for streaming APIs.
item_type: Api::Type::String
- !ruby/object:Api::Type::String
name: 'contentType'
description: |
The HTTP Content-Type header value specifying the content type of the body.
- !ruby/object:Api::Type::String
name: 'data'
description: |
The HTTP request/response body as raw binary.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% organization_api_revision = grab_attributes(pwd)['organization_api_revision'] -%>
describe google_apigee_organization_api_revision(name: <%= doc_generation ? "' #{organization_api_revision['name']}'":"organization_api_revision['name']" -%>) do
it { should exist }
its('content_type') { should cmp <%= doc_generation ? "'#{organization_api_revision['content_type']}'" : "organization_api_revision['content_type']" -%> }
its('data') { should cmp <%= doc_generation ? "'#{organization_api_revision['data']}'" : "organization_api_revision['data']" -%> }

end

describe google_apigee_organization_api_revision(name: "does_not_exit") do
it { should_not exist }
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gcp_project_id = input(:gcp_project_id, value: '<%= external_attribute(pwd, 'gcp_project_id') -%>', description: 'The GCP project identifier.')

organization_api_revision = input('organization_api_revision', value: <%= JSON.pretty_generate(grab_attributes(pwd)['organization_api_revision']) -%>, description: 'organization_api_revision description')
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% organization_api_revision = grab_attributes(pwd)['organization_api_revision'] -%>
describe google_apigee_organization_api_revisions() do
it { should exist }
end
Original file line number Diff line number Diff line change
Expand Up @@ -942,3 +942,8 @@ project_location_environment:
state : "value_state"
create_time : "value_createtime"
update_time : "value_updatetime"

organization_api_revision:
name : "value_name"
content_type : "value_contenttype"
data : "value_data"

0 comments on commit d8c4d42

Please sign in to comment.