mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-29 08:01:31 -07:00
Minor schema/docs update to SslCertificate. (#89)
<!-- This change is generated by MagicModules. --> /cc @rileykarson
This commit is contained in:
parent
0a18332815
commit
dae82b274d
2 changed files with 113 additions and 116 deletions
|
@ -45,10 +45,8 @@ options:
|
||||||
state:
|
state:
|
||||||
description:
|
description:
|
||||||
- Whether the given object should exist in GCP
|
- Whether the given object should exist in GCP
|
||||||
choices:
|
choices: ['present', 'absent']
|
||||||
- present
|
default: 'present'
|
||||||
- absent
|
|
||||||
default: present
|
|
||||||
certificate:
|
certificate:
|
||||||
description:
|
description:
|
||||||
- The certificate in PEM format.
|
- The certificate in PEM format.
|
||||||
|
@ -61,12 +59,12 @@ options:
|
||||||
required: false
|
required: false
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the resource. Provided by the client when the resource is created. The
|
- Name of the resource. Provided by the client when the resource is created. The name
|
||||||
name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
must be 1-63 characters long, and comply with RFC1035. Specifically, the name must
|
||||||
name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
|
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
|
which means the first character must be a lowercase letter, and all following characters
|
||||||
characters must be a dash, lowercase letter, or digit, except the last character,
|
must be a dash, lowercase letter, or digit, except the last character, which cannot
|
||||||
which cannot be a dash.
|
be a dash.
|
||||||
required: false
|
required: false
|
||||||
private_key:
|
private_key:
|
||||||
description:
|
description:
|
||||||
|
@ -74,8 +72,8 @@ options:
|
||||||
required: true
|
required: true
|
||||||
extends_documentation_fragment: gcp
|
extends_documentation_fragment: gcp
|
||||||
notes:
|
notes:
|
||||||
- 'API Reference: U(https://cloud.google.com/compute/docs/reference/rest/v1/sslCertificates)'
|
- "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)'
|
- "Official Documentation: U(https://cloud.google.com/load-balancing/docs/ssl-certificates)"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -121,7 +119,7 @@ certificate:
|
||||||
- The chain must include at least one intermediate cert.
|
- The chain must include at least one intermediate cert.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
creationTimestamp:
|
creation_timestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
returned: success
|
returned: success
|
||||||
|
@ -138,15 +136,15 @@ id:
|
||||||
type: int
|
type: int
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the resource. Provided by the client when the resource is created. The
|
- Name of the resource. Provided by the client when the resource is created. The name
|
||||||
name must be 1-63 characters long, and comply with RFC1035. Specifically, the
|
must be 1-63 characters long, and comply with RFC1035. Specifically, the name must
|
||||||
name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
|
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
|
which means the first character must be a lowercase letter, and all following characters
|
||||||
characters must be a dash, lowercase letter, or digit, except the last character,
|
must be a dash, lowercase letter, or digit, except the last character, which cannot
|
||||||
which cannot be a dash.
|
be a dash.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
privateKey:
|
private_key:
|
||||||
description:
|
description:
|
||||||
- The write-only private key in PEM format.
|
- The write-only private key in PEM format.
|
||||||
returned: success
|
returned: success
|
||||||
|
@ -175,7 +173,7 @@ def main():
|
||||||
certificate=dict(required=True, type='str'),
|
certificate=dict(required=True, type='str'),
|
||||||
description=dict(type='str'),
|
description=dict(type='str'),
|
||||||
name=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):
|
def update(module, link, kind):
|
||||||
delete(module, self_link(module), kind)
|
module.fail_json(msg="SslCertificate cannot be edited")
|
||||||
create(module, collection(module), kind)
|
|
||||||
|
|
||||||
|
|
||||||
def delete(module, link, kind):
|
def delete(module, link, kind):
|
||||||
|
|
|
@ -59,8 +59,8 @@ EXAMPLES = '''
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
resources:
|
items:
|
||||||
description: List of resources
|
description: List of items
|
||||||
returned: always
|
returned: always
|
||||||
type: complex
|
type: complex
|
||||||
contains:
|
contains:
|
||||||
|
@ -71,7 +71,7 @@ resources:
|
||||||
- The chain must include at least one intermediate cert.
|
- The chain must include at least one intermediate cert.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
creationTimestamp:
|
creation_timestamp:
|
||||||
description:
|
description:
|
||||||
- Creation timestamp in RFC3339 text format.
|
- Creation timestamp in RFC3339 text format.
|
||||||
returned: success
|
returned: success
|
||||||
|
@ -88,15 +88,15 @@ resources:
|
||||||
type: int
|
type: int
|
||||||
name:
|
name:
|
||||||
description:
|
description:
|
||||||
- Name of the resource. Provided by the client when the resource is created.
|
- Name of the resource. Provided by the client when the resource is created. The name
|
||||||
The name must be 1-63 characters long, and comply with RFC1035. Specifically,
|
must be 1-63 characters long, and comply with RFC1035. Specifically, the name must
|
||||||
the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
|
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
|
which means the first character must be a lowercase letter, and all following characters
|
||||||
characters must be a dash, lowercase letter, or digit, except the last character,
|
must be a dash, lowercase letter, or digit, except the last character, which cannot
|
||||||
which cannot be a dash.
|
be a dash.
|
||||||
returned: success
|
returned: success
|
||||||
type: str
|
type: str
|
||||||
privateKey:
|
private_key:
|
||||||
description:
|
description:
|
||||||
- The write-only private key in PEM format.
|
- The write-only private key in PEM format.
|
||||||
returned: success
|
returned: success
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue