Minor schema/docs update to SslCertificate. (#89)

<!-- This change is generated by MagicModules. -->
/cc @rileykarson
This commit is contained in:
The Magician 2018-09-12 14:50:22 -07:00 committed by Alex Stephen
parent 0a18332815
commit dae82b274d
2 changed files with 113 additions and 116 deletions

View file

@ -45,10 +45,8 @@ options:
state:
description:
- Whether the given object should exist in GCP
choices:
- present
- absent
default: present
choices: ['present', 'absent']
default: 'present'
certificate:
description:
- The certificate in PEM format.
@ -61,12 +59,12 @@ options:
required: false
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.
- 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.
required: false
private_key:
description:
@ -74,8 +72,8 @@ options:
required: true
extends_documentation_fragment: gcp
notes:
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/sslCertificates)'
- 'Official Documentation: U(https://cloud.google.com/load-balancing/docs/ssl-certificates)'
- "API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/sslCertificates)"
- "Official Documentation: U(https://cloud.google.com/load-balancing/docs/ssl-certificates)"
'''
EXAMPLES = '''
@ -121,7 +119,7 @@ certificate:
- The chain must include at least one intermediate cert.
returned: success
type: str
creationTimestamp:
creation_timestamp:
description:
- Creation timestamp in RFC3339 text format.
returned: success
@ -138,15 +136,15 @@ id:
type: int
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.
- 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.
returned: success
type: str
privateKey:
private_key:
description:
- The write-only private key in PEM format.
returned: success
@ -175,7 +173,7 @@ def main():
certificate=dict(required=True, type='str'),
description=dict(type='str'),
name=dict(type='str'),
private_key=dict(required=True, type='str'),
private_key=dict(required=True, type='str')
)
)
@ -216,8 +214,7 @@ def create(module, link, kind):
def update(module, link, kind):
delete(module, self_link(module), kind)
create(module, collection(module), kind)
module.fail_json(msg="SslCertificate cannot be edited")
def delete(module, link, kind):

View file

@ -59,8 +59,8 @@ EXAMPLES = '''
'''
RETURN = '''
resources:
description: List of resources
items:
description: List of items
returned: always
type: complex
contains:
@ -71,7 +71,7 @@ resources:
- The chain must include at least one intermediate cert.
returned: success
type: str
creationTimestamp:
creation_timestamp:
description:
- Creation timestamp in RFC3339 text format.
returned: success
@ -88,15 +88,15 @@ resources:
type: int
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.
- 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.
returned: success
type: str
privateKey:
private_key:
description:
- The write-only private key in PEM format.
returned: success