Add Proxy Bind to Target Proxies (#4597) (#389)

* mark field as updatable

Co-authored-by: upodroid <cy@borg.dev>

* add proxy_bind

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2021-03-16 16:07:36 -07:00 committed by GitHub
parent dbd5dbc2fb
commit b7ec9fb848
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 63 additions and 0 deletions

View file

@ -102,6 +102,12 @@ options:
}}"'
required: true
type: dict
proxy_bind:
description:
- This field only applies when the forwarding rule that references this target
proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
required: false
type: bool
project:
description:
- The Google Cloud Platform project to use.
@ -301,6 +307,12 @@ urlMap:
- A reference to the UrlMap resource that defines the mapping from URL to the BackendService.
returned: success
type: dict
proxyBind:
description:
- This field only applies when the forwarding rule that references this target proxy
has a loadBalancingScheme set to INTERNAL_SELF_MANAGED.
returned: success
type: bool
'''
################################################################################
@ -328,6 +340,7 @@ def main():
ssl_certificates=dict(required=True, type='list', elements='dict'),
ssl_policy=dict(type='dict'),
url_map=dict(required=True, type='dict'),
proxy_bind=dict(type='bool'),
)
)
@ -429,6 +442,7 @@ def resource_to_request(module):
u'sslCertificates': replace_resource_dict(module.params.get('ssl_certificates', []), 'selfLink'),
u'sslPolicy': replace_resource_dict(module.params.get(u'ssl_policy', {}), 'selfLink'),
u'urlMap': replace_resource_dict(module.params.get(u'url_map', {}), 'selfLink'),
u'proxyBind': module.params.get('proxy_bind'),
}
return_vals = {}
for k, v in request.items():
@ -502,6 +516,7 @@ def response_to_hash(module, response):
u'sslCertificates': response.get(u'sslCertificates'),
u'sslPolicy': response.get(u'sslPolicy'),
u'urlMap': response.get(u'urlMap'),
u'proxyBind': response.get(u'proxyBind'),
}