Skip to content

Commit

Permalink
Merge branch 'main' into CHEF-7367_1-MAGIC-MODULE-dataflow_v1b3-Proje…
Browse files Browse the repository at this point in the history
…cts__locations__job
  • Loading branch information
balasubramanian-s authored Feb 7, 2024
2 parents 93db617 + 19d479e commit a4df15e
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 1 deletion.
144 changes: 144 additions & 0 deletions mmv1/products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23262,3 +23262,147 @@ objects:
description: |
[Output Only] Reserved for future use.




- !ruby/object:Api::Resource
name: NetworkEdgeSecurityService
self_link: 'projects/{{project}}/regions/{{region}}/networkEdgeSecurityServices/{{networkEdgeSecurityService}}'
references: !ruby/object:Api::Resource::ReferenceLinks
guides:
'Official Documentation':
api: 'https://cloud.google.com/compute_v1/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: |-
Represents a Google Cloud Armor network edge security service resource.
properties:

- !ruby/object:Api::Type::String
name: 'kind'
description: |
[Output only] Type of the resource. Always compute#networkEdgeSecurityService for NetworkEdgeSecurityServices
- !ruby/object:Api::Type::String
name: 'id'
description: |
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
- !ruby/object:Api::Type::String
name: 'creationTimestamp'
description: |
[Output Only] Creation timestamp in RFC3339 text format.
- !ruby/object:Api::Type::String
name: 'name'
description: |
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
- !ruby/object:Api::Type::String
name: 'description'
description: |
An optional description of this resource. Provide this property when you create the resource.
- !ruby/object:Api::Type::String
name: 'selfLink'
description: |
[Output Only] Server-defined URL for the resource.
- !ruby/object:Api::Type::String
name: 'selfLinkWithId'
description: |
[Output Only] Server-defined URL for this resource with the resource id.
- !ruby/object:Api::Type::String
name: 'region'
description: |
[Output Only] URL of the region where the resource resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
- !ruby/object:Api::Type::String
name: 'fingerprint'
description: |
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService.
- !ruby/object:Api::Type::String
name: 'securityPolicy'
description: |
The resource URL for the network edge security service associated with this network edge security service.




- !ruby/object:Api::Resource
name: NetworkEdgeSecurityService
self_link: 'projects/{{project}}/regions/{{region}}/networkEdgeSecurityServices/{{networkEdgeSecurityService}}'
references: !ruby/object:Api::Resource::ReferenceLinks
guides:
'Official Documentation':
api: 'https://cloud.google.com/compute_v1/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: |-
Represents a Google Cloud Armor network edge security service resource.
properties:

- !ruby/object:Api::Type::String
name: 'kind'
description: |
[Output only] Type of the resource. Always compute#networkEdgeSecurityService for NetworkEdgeSecurityServices
- !ruby/object:Api::Type::String
name: 'id'
description: |
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
- !ruby/object:Api::Type::String
name: 'creationTimestamp'
description: |
[Output Only] Creation timestamp in RFC3339 text format.
- !ruby/object:Api::Type::String
name: 'name'
description: |
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
- !ruby/object:Api::Type::String
name: 'description'
description: |
An optional description of this resource. Provide this property when you create the resource.
- !ruby/object:Api::Type::String
name: 'selfLink'
description: |
[Output Only] Server-defined URL for the resource.
- !ruby/object:Api::Type::String
name: 'selfLinkWithId'
description: |
[Output Only] Server-defined URL for this resource with the resource id.
- !ruby/object:Api::Type::String
name: 'region'
description: |
[Output Only] URL of the region where the resource resides. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
- !ruby/object:Api::Type::String
name: 'fingerprint'
description: |
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a NetworkEdgeSecurityService. An up-to-date fingerprint must be provided in order to update the NetworkEdgeSecurityService, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a NetworkEdgeSecurityService.
- !ruby/object:Api::Type::String
name: 'securityPolicy'
description: |
The resource URL for the network edge security service associated with this network edge security service.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% network_edge_security_service = grab_attributes(pwd)['network_edge_security_service'] -%>
describe google_compute_v1_network_edge_security_service(networkEdgeSecurityService: <%= doc_generation ? "' #{network_edge_security_service['networkEdgeSecurityService']}'":"network_edge_security_service['networkEdgeSecurityService']" -%>, project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{network_edge_security_service['region']}'":"network_edge_security_service['region']" -%>) do
it { should exist }
its('kind') { should cmp <%= doc_generation ? "'#{network_edge_security_service['kind']}'" : "network_edge_security_service['kind']" -%> }
its('id') { should cmp <%= doc_generation ? "'#{network_edge_security_service['id']}'" : "network_edge_security_service['id']" -%> }
its('creation_timestamp') { should cmp <%= doc_generation ? "'#{network_edge_security_service['creation_timestamp']}'" : "network_edge_security_service['creation_timestamp']" -%> }
its('name') { should cmp <%= doc_generation ? "'#{network_edge_security_service['name']}'" : "network_edge_security_service['name']" -%> }
its('description') { should cmp <%= doc_generation ? "'#{network_edge_security_service['description']}'" : "network_edge_security_service['description']" -%> }
its('self_link') { should cmp <%= doc_generation ? "'#{network_edge_security_service['self_link']}'" : "network_edge_security_service['self_link']" -%> }
its('self_link_with_id') { should cmp <%= doc_generation ? "'#{network_edge_security_service['self_link_with_id']}'" : "network_edge_security_service['self_link_with_id']" -%> }
its('region') { should cmp <%= doc_generation ? "'#{network_edge_security_service['region']}'" : "network_edge_security_service['region']" -%> }
its('fingerprint') { should cmp <%= doc_generation ? "'#{network_edge_security_service['fingerprint']}'" : "network_edge_security_service['fingerprint']" -%> }
its('security_policy') { should cmp <%= doc_generation ? "'#{network_edge_security_service['security_policy']}'" : "network_edge_security_service['security_policy']" -%> }

end

describe google_compute_v1_network_edge_security_service(networkEdgeSecurityService: <%= doc_generation ? "' #{network_edge_security_service['networkEdgeSecurityService']}'":"network_edge_security_service['networkEdgeSecurityService']" -%>, project: <%= gcp_project_id -%>, region: <%= doc_generation ? "' #{network_edge_security_service['region']}'":"network_edge_security_service['region']" -%>) 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.')

network_edge_security_service = input('network_edge_security_service', value: <%= JSON.pretty_generate(grab_attributes(pwd)['network_edge_security_service']) -%>, description: 'network_edge_security_service 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)}" -%>
<% network_edge_security_service = grab_attributes(pwd)['network_edge_security_service'] -%>
describe google_compute_v1_network_edge_security_services() do
it { should exist }
end
Original file line number Diff line number Diff line change
Expand Up @@ -1023,4 +1023,18 @@ project_location_job:
client_request_id : "value_clientrequestid"
replaced_by_job_id : "value_replacedbyjobid"
start_time : "value_starttime"
created_from_snapshot_id : "value_createdfromsnapshotid"
created_from_snapshot_id : "value_createdfromsnapshotid"
network_edge_security_service:
machine_type : "value_machinetype"
project : "value_project"
zone : "value_zone"
kind : "value_kind"
id : "value_id"
creation_timestamp : "value_creationtimestamp"
name : "value_name"
description : "value_description"
self_link : "value_selflink"
self_link_with_id : "value_selflinkwithid"
region : "value_region"
fingerprint : "value_fingerprint"
security_policy : "value_securitypolicy"

0 comments on commit a4df15e

Please sign in to comment.