Add skip enum value generation (#3767) (#259)

* Add skip enum value generation

* Fix default

* Fix reader

* Fix line spacing on enum values

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2020-07-23 09:30:20 -07:00 committed by GitHub
parent 54f5764f8e
commit 0eff143eef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 129 additions and 122 deletions

View file

@ -909,13 +909,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default value
and corresponds to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT",
"PERMANENT_REDIRECT", "SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -1400,13 +1400,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default value
and corresponds to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT",
"PERMANENT_REDIRECT", "SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -1467,13 +1467,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT", "PERMANENT_REDIRECT",
"SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -1566,13 +1566,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values are:
- MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
* MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT", "PERMANENT_REDIRECT",
"SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -2480,13 +2480,13 @@ pathMatchers:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
returned: success
type: str
@ -2929,13 +2929,13 @@ pathMatchers:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
returned: success
type: str
@ -2991,13 +2991,13 @@ pathMatchers:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
returned: success
type: str
@ -3080,13 +3080,13 @@ defaultUrlRedirect:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values are:
- MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to
* MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to
301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
returned: success
type: str

View file

@ -945,13 +945,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default
value and corresponds to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case,
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case,
the request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case,
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case,
the request method will be retained."
returned: success
type: str
@ -1406,13 +1406,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default
value and corresponds to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case,
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case,
the request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case,
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case,
the request method will be retained."
returned: success
type: str
@ -1470,13 +1470,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
returned: success
type: str
@ -1560,13 +1560,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
returned: success
type: str

View file

@ -767,13 +767,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default value
and corresponds to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT",
"PERMANENT_REDIRECT", "SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -1558,12 +1558,14 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value
and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER
which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds
to 307. In this case, the request method will be retained. - PERMANENT_REDIRECT,
which corresponds to 308. In this case, the request method will
be retained.'
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default value
and corresponds to 301.'
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT",
"PERMANENT_REDIRECT", "SEE_OTHER", "TEMPORARY_REDIRECT"'
required: false
@ -1624,13 +1626,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT", "PERMANENT_REDIRECT",
"SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -2126,13 +2128,13 @@ options:
redirect_response_code:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values are:
- MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
* MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
- 'Some valid choices include: "FOUND", "MOVED_PERMANENTLY_DEFAULT", "PERMANENT_REDIRECT",
"SEE_OTHER", "TEMPORARY_REDIRECT"'
@ -3312,13 +3314,13 @@ pathMatchers:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
returned: success
type: str
@ -4046,11 +4048,14 @@ pathMatchers:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds
to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case,
the request method will be retained. - PERMANENT_REDIRECT, which corresponds
to 308. In this case, the request method will be retained.'
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
returned: success
type: str
stripQuery:
@ -4105,13 +4110,13 @@ pathMatchers:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
returned: success
type: str
@ -4565,13 +4570,13 @@ defaultUrlRedirect:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values are:
- MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to
* MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to
301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
returned: success
type: str

View file

@ -797,13 +797,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default
value and corresponds to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case,
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case,
the request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case,
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case,
the request method will be retained."
returned: success
type: str
@ -1547,12 +1547,14 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported
values are: - MOVED_PERMANENTLY_DEFAULT, which is the default
value and corresponds to 301. - FOUND, which corresponds to 302.
- SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which
corresponds to 307. In this case, the request method will be retained.
- PERMANENT_REDIRECT, which corresponds to 308. In this case,
the request method will be retained.'
values are: * MOVED_PERMANENTLY_DEFAULT, which is the default
value and corresponds to 301.'
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case,
the request method will be retained."
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case,
the request method will be retained."
returned: success
type: str
stripQuery:
@ -1610,13 +1612,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the
request method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the
request method will be retained."
returned: success
type: str
@ -2075,13 +2077,13 @@ resources:
redirectResponseCode:
description:
- 'The HTTP Status code to use for this RedirectAction. Supported values
are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
are: * MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds
to 301.'
- "- FOUND, which corresponds to 302."
- "- SEE_OTHER which corresponds to 303."
- "- TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
- "* FOUND, which corresponds to 302."
- "* SEE_OTHER which corresponds to 303."
- "* TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request
method will be retained."
- "- PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
- "* PERMANENT_REDIRECT, which corresponds to 308. In this case, the request
method will be retained."
returned: success
type: str