Skip to content

Commit

Permalink
Format YAML for products c-d
Browse files Browse the repository at this point in the history
  • Loading branch information
trodge committed Apr 28, 2023
1 parent 8ee52d8 commit 1335009
Show file tree
Hide file tree
Showing 146 changed files with 2,997 additions and 2,728 deletions.
45 changes: 23 additions & 22 deletions mmv1/products/certificatemanager/Certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,30 @@ async: !ruby/object:Api::OpAsync
message: 'message'
docs: !ruby/object:Provider::Terraform::Docs
autogen_async: true
import_format: ["projects/{{project}}/locations/{{location}}/certificates/{{name}}"]
id_format: "projects/{{project}}/locations/{{location}}/certificates/{{name}}"
import_format:
['projects/{{project}}/locations/{{location}}/certificates/{{name}}']
id_format: 'projects/{{project}}/locations/{{location}}/certificates/{{name}}'
schema_version: 1
examples:
- !ruby/object:Provider::Terraform::Examples
name: "certificate_manager_google_managed_certificate"
primary_resource_id: "default"
name: 'certificate_manager_google_managed_certificate'
primary_resource_id: 'default'
vars:
dns_auth_name: "dns-auth"
dns_auth_subdomain: "subdomain"
dns_auth_name2: "dns-auth2"
dns_auth_subdomain2: "subdomain2"
cert_name: "dns-cert"
dns_auth_name: 'dns-auth'
dns_auth_subdomain: 'subdomain'
dns_auth_name2: 'dns-auth2'
dns_auth_subdomain2: 'subdomain2'
cert_name: 'dns-cert'
- !ruby/object:Provider::Terraform::Examples
name: "certificate_manager_self_managed_certificate"
primary_resource_id: "default"
name: 'certificate_manager_self_managed_certificate'
primary_resource_id: 'default'
vars:
cert_name: "self-managed-cert"
cert_name: 'self-managed-cert'
- !ruby/object:Provider::Terraform::Examples
name: "certificate_manager_self_managed_certificate_regional"
primary_resource_id: "default"
name: 'certificate_manager_self_managed_certificate_regional'
primary_resource_id: 'default'
vars:
cert_name: "self-managed-cert"
cert_name: 'self-managed-cert'
custom_code: !ruby/object:Provider::Terraform::CustomCode
constants: templates/terraform/constants/cert_manager.erb
parameters:
Expand All @@ -74,11 +75,11 @@ parameters:
The name must be 1-64 characters long, and match the regular expression [a-zA-Z][a-zA-Z0-9_-]* which means the first character must be a letter,
and all following characters must be a dash, underscore, letter or digit.
- !ruby/object:Api::Type::String
name: 'location'
description: |
The Certificate Manager location. If not specified, "global" is used.
default_value: global
url_param_only: true
name: 'location'
description: |
The Certificate Manager location. If not specified, "global" is used.
default_value: global
url_param_only: true
properties:
- !ruby/object:Api::Type::String
name: 'description'
Expand Down Expand Up @@ -118,7 +119,7 @@ properties:
exactly_one_of:
- self_managed.0.certificate_pem
- self_managed.0.pem_certificate
deprecation_message: "Deprecated in favor of `pem_certificate`"
deprecation_message: 'Deprecated in favor of `pem_certificate`'
description: |
**Deprecated** The certificate chain in PEM-encoded form.
Expand All @@ -129,7 +130,7 @@ properties:
exactly_one_of:
- self_managed.0.private_key_pem
- self_managed.0.pem_private_key
deprecation_message: "Deprecated in favor of `pem_private_key`"
deprecation_message: 'Deprecated in favor of `pem_private_key`'
description: |
**Deprecated** The private key of the leaf certificate in PEM-encoded form.
sensitive: true
Expand Down
9 changes: 5 additions & 4 deletions mmv1/products/certificatemanager/CertificateMap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ async: !ruby/object:Api::OpAsync
message: 'message'
docs: !ruby/object:Provider::Terraform::Docs
autogen_async: true
import_format: ["projects/{{project}}/locations/global/certificateMaps/{{name}}"]
import_format:
['projects/{{project}}/locations/global/certificateMaps/{{name}}']
examples:
- !ruby/object:Provider::Terraform::Examples
name: "certificate_manager_certificate_map_basic"
primary_resource_id: "default"
name: 'certificate_manager_certificate_map_basic'
primary_resource_id: 'default'
vars:
cert_map_name: "cert-map"
cert_map_name: 'cert-map'
parameters:
- !ruby/object:Api::Type::String
name: 'name'
Expand Down
33 changes: 16 additions & 17 deletions mmv1/products/certificatemanager/CertificateMapEntry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ update_verb: :PATCH
update_mask: true
description: |
CertificateMapEntry is a list of certificate configurations,
that have been issued for a particular hostname
that have been issued for a particular hostname
async: !ruby/object:Api::OpAsync
operation: !ruby/object:Api::OpAsync::Operation
path: 'name'
Expand All @@ -41,23 +41,24 @@ docs: !ruby/object:Provider::Terraform::Docs
autogen_async: true
examples:
- !ruby/object:Provider::Terraform::Examples
name: "certificate_manager_certificate_map_entry_full"
primary_resource_id: "default"
name: 'certificate_manager_certificate_map_entry_full'
primary_resource_id: 'default'
vars:
dns_auth_name: "dns-auth"
dns_auth_subdomain: "subdomain"
dns_auth_name2: "dns-auth2"
dns_auth_subdomain2: "subdomain2"
cert_map_entry_name: "cert-map-entry"
dns_auth_name: 'dns-auth'
dns_auth_subdomain: 'subdomain'
dns_auth_name2: 'dns-auth2'
dns_auth_subdomain2: 'subdomain2'
cert_map_entry_name: 'cert-map-entry'
parameters:
- !ruby/object:Api::Type::String
name: 'name'
required: true
immutable: true
immutable:
true
# url_param_only: true
description: |
A user-defined name of the Certificate Map Entry. Certificate Map Entry
names must be unique globally and match pattern
A user-defined name of the Certificate Map Entry. Certificate Map Entry
names must be unique globally and match pattern
'projects/*/locations/*/certificateMaps/*/certificateMapEntries/*'
custom_expand: templates/terraform/custom_expand/resource_from_self_link.go.erb
custom_flatten: templates/terraform/custom_flatten/name_from_self_link.erb
Expand All @@ -81,14 +82,14 @@ properties:
name: 'createTime'
output: true
description: |
Creation timestamp of a Certificate Map Entry. Timestamp in RFC3339 UTC "Zulu" format,
with nanosecond resolution and up to nine fractional digits.
Creation timestamp of a Certificate Map Entry. Timestamp in RFC3339 UTC "Zulu" format,
with nanosecond resolution and up to nine fractional digits.
Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
- !ruby/object:Api::Type::Time
name: 'updateTime'
description: |
Update timestamp of a Certificate Map Entry. Timestamp in RFC3339 UTC "Zulu" format,
with nanosecond resolution and up to nine fractional digits.
Update timestamp of a Certificate Map Entry. Timestamp in RFC3339 UTC "Zulu" format,
with nanosecond resolution and up to nine fractional digits.
Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
output: true
- !ruby/object:Api::Type::KeyValuePairs
Expand Down Expand Up @@ -130,5 +131,3 @@ properties:
- matcher
description: |
A predefined matcher for particular cases, other than SNI selection
11 changes: 6 additions & 5 deletions mmv1/products/certificatemanager/DnsAuthorization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ async: !ruby/object:Api::OpAsync
message: 'message'
docs: !ruby/object:Provider::Terraform::Docs
autogen_async: true
import_format: ["projects/{{project}}/locations/global/dnsAuthorizations/{{name}}"]
import_format:
['projects/{{project}}/locations/global/dnsAuthorizations/{{name}}']
examples:
- !ruby/object:Provider::Terraform::Examples
name: "certificate_manager_dns_authorization_basic"
primary_resource_id: "default"
name: 'certificate_manager_dns_authorization_basic'
primary_resource_id: 'default'
vars:
dns_auth_name: "dns-auth"
zone_name: "my-zone"
dns_auth_name: 'dns-auth'
zone_name: 'my-zone'
parameters:
- !ruby/object:Api::Type::String
name: 'name'
Expand Down
16 changes: 8 additions & 8 deletions mmv1/products/cloudasset/FolderFeed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
name: FolderFeed
base_url: folders/{{folder_id}}/feeds
create_url: folders/{{folder_id}}/feeds?feedId={{feed_id}}
self_link: "{{name}}"
self_link: '{{name}}'
update_verb: :PATCH
update_mask: true
collection_url_key: 'feeds'
Expand All @@ -33,11 +33,11 @@ custom_code: !ruby/object:Provider::Terraform::CustomCode
encoder: templates/terraform/encoders/cloud_asset_feed.go.erb
examples:
- !ruby/object:Provider::Terraform::Examples
name: "cloud_asset_folder_feed"
primary_resource_id: "folder_feed"
name: 'cloud_asset_folder_feed'
primary_resource_id: 'folder_feed'
vars:
feed_id: "network-updates"
folder_name: "Networking"
feed_id: 'network-updates'
folder_name: 'Networking'
test_env_vars:
project: :PROJECT_NAME
org_id: :ORG_ID
Expand All @@ -57,7 +57,7 @@ properties:
url_param_only: true
description: |
The project whose identity will be used when sending messages to the
destination pubsub topic. It also specifies the project for API
destination pubsub topic. It also specifies the project for API
enablement check, quota, and billing.
- !ruby/object:Api::Type::String
name: folder_id
Expand All @@ -81,7 +81,7 @@ properties:
name: assetNames
item_type: Api::Type::String
description: |
A list of the full names of the assets to receive updates. You must specify either or both of
A list of the full names of the assets to receive updates. You must specify either or both of
assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are
exported to the feed. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.
See https://cloud.google.com/apis/design/resourceNames#fullResourceName for more info.
Expand Down Expand Up @@ -149,5 +149,5 @@ properties:
- !ruby/object:Api::Type::String
name: location
description: |
String indicating the location of the expression for error reporting, e.g. a file
String indicating the location of the expression for error reporting, e.g. a file
name and a position in the file.
19 changes: 9 additions & 10 deletions mmv1/products/cloudasset/OrganizationFeed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

--- !ruby/object:Api::Resource
name: OrganizationFeed
base_url: "organizations/{{org_id}}/feeds"
create_url: "organizations/{{org_id}}/feeds?feedId={{feed_id}}"
self_link: "{{name}}"
base_url: 'organizations/{{org_id}}/feeds'
create_url: 'organizations/{{org_id}}/feeds?feedId={{feed_id}}'
self_link: '{{name}}'
update_verb: :PATCH
update_mask: true
collection_url_key: 'feeds'
Expand All @@ -33,10 +33,10 @@ custom_code: !ruby/object:Provider::Terraform::CustomCode
encoder: templates/terraform/encoders/cloud_asset_feed.go.erb
examples:
- !ruby/object:Provider::Terraform::Examples
name: "cloud_asset_organization_feed"
primary_resource_id: "organization_feed"
name: 'cloud_asset_organization_feed'
primary_resource_id: 'organization_feed'
vars:
feed_id: "network-updates"
feed_id: 'network-updates'
test_env_vars:
project: :PROJECT_NAME
org_id: :ORG_ID
Expand All @@ -56,7 +56,7 @@ properties:
url_param_only: true
description: |
The project whose identity will be used when sending messages to the
destination pubsub topic. It also specifies the project for API
destination pubsub topic. It also specifies the project for API
enablement check, quota, and billing.
- !ruby/object:Api::Type::String
name: name
Expand All @@ -74,7 +74,7 @@ properties:
name: assetNames
item_type: Api::Type::String
description: |
A list of the full names of the assets to receive updates. You must specify either or both of
A list of the full names of the assets to receive updates. You must specify either or both of
assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are
exported to the feed. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.
See https://cloud.google.com/apis/design/resourceNames#fullResourceName for more info.
Expand Down Expand Up @@ -142,6 +142,5 @@ properties:
- !ruby/object:Api::Type::String
name: location
description: |
String indicating the location of the expression for error reporting, e.g. a file
String indicating the location of the expression for error reporting, e.g. a file
name and a position in the file.
14 changes: 7 additions & 7 deletions mmv1/products/cloudasset/ProjectFeed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
name: ProjectFeed
base_url: projects/{{project}}/feeds
create_url: projects/{{project}}/feeds?feedId={{feed_id}}
self_link: "{{name}}"
self_link: '{{name}}'
update_verb: :PATCH
update_mask: true
collection_url_key: 'feeds'
Expand All @@ -32,10 +32,10 @@ custom_code: !ruby/object:Provider::Terraform::CustomCode
encoder: templates/terraform/encoders/cloud_asset_feed.go.erb
examples:
- !ruby/object:Provider::Terraform::Examples
name: "cloud_asset_project_feed"
primary_resource_id: "project_feed"
name: 'cloud_asset_project_feed'
primary_resource_id: 'project_feed'
vars:
feed_id: "network-updates"
feed_id: 'network-updates'
test_env_vars:
project: :PROJECT_NAME
properties:
Expand All @@ -45,7 +45,7 @@ properties:
immutable: true
description: |
The project whose identity will be used when sending messages to the
destination pubsub topic. It also specifies the project for API
destination pubsub topic. It also specifies the project for API
enablement check, quota, and billing. If not specified, the resource's
project will be used.
- !ruby/object:Api::Type::String
Expand All @@ -64,7 +64,7 @@ properties:
name: assetNames
item_type: Api::Type::String
description: |
A list of the full names of the assets to receive updates. You must specify either or both of
A list of the full names of the assets to receive updates. You must specify either or both of
assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are
exported to the feed. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1.
See https://cloud.google.com/apis/design/resourceNames#fullResourceName for more info.
Expand Down Expand Up @@ -132,5 +132,5 @@ properties:
- !ruby/object:Api::Type::String
name: location
description: |
String indicating the location of the expression for error reporting, e.g. a file
String indicating the location of the expression for error reporting, e.g. a file
name and a position in the file.
22 changes: 11 additions & 11 deletions mmv1/products/cloudbuild/BitbucketServerConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ async: !ruby/object:Api::OpAsync
message: 'message'
autogen_async: true
import_format:
- "projects/{{project}}/locations/{{location}}/bitbucketServerConfigs/{{config_id}}"
- 'projects/{{project}}/locations/{{location}}/bitbucketServerConfigs/{{config_id}}'
id_format: 'projects/{{project}}/locations/{{location}}/bitbucketServerConfigs/{{config_id}}'
examples:
- !ruby/object:Provider::Terraform::Examples
name: "cloudbuild_bitbucket_server_config"
primary_resource_id: "bbs-config"
name: 'cloudbuild_bitbucket_server_config'
primary_resource_id: 'bbs-config'
- !ruby/object:Provider::Terraform::Examples
name: "cloudbuild_bitbucket_server_config_repositories"
primary_resource_id: "bbs-config-with-repos"
name: 'cloudbuild_bitbucket_server_config_repositories'
primary_resource_id: 'bbs-config-with-repos'
skip_test: true
- !ruby/object:Provider::Terraform::Examples
name: "cloudbuild_bitbucket_server_config_peered_network"
primary_resource_id: "bbs-config-with-peered-network"
name: 'cloudbuild_bitbucket_server_config_peered_network'
primary_resource_id: 'bbs-config-with-peered-network'
vars:
network_name: "vpc-network"
network_name: 'vpc-network'
test_vars_overrides:
network_name: 'BootstrapSharedTestNetwork(t, "peered-network")'
custom_code: !ruby/object:Provider::Terraform::CustomCode
Expand Down Expand Up @@ -152,9 +152,9 @@ properties:
- !ruby/object:Api::Type::String
name: 'peeredNetwork'
description: |
The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection.
This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty,
no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format
The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection.
This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty,
no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format
projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project.
- !ruby/object:Api::Type::String
name: 'sslCa'
Expand Down
Loading

0 comments on commit 1335009

Please sign in to comment.