mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-04-23 03:11:22 -07:00
Add source snapshot to ansible (#300)
* Make `iap` field computed (#3814) (#272) Signed-off-by: Modular Magician <magic-modules@google.com> * add source_image and source_snapshot to google_compute_image (#3799) (#273) * add source_image to google_compute_image * add source_snapshot to google_compute_image * PR comment changes Signed-off-by: Modular Magician <magic-modules@google.com> * Collection fixes for release (#3831) (#274) Signed-off-by: Modular Magician <magic-modules@google.com> * Add new field filter to pubsub. (#3759) (#275) * Add new field filter to pubsub. Fixes: https://github.com/terraform-providers/terraform-provider-google/issues/6727 * Fixed filter name, it was improperly set. * add filter key to pubsub subscription unit test * spaces not tabs! * hardcode filter value in test * revert remove escaped quotes Co-authored-by: Tim O'Connell <hi@timoconnell.co.uk> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Tim O'Connell <hi@timoconnell.co.uk> * Add archive class to gcs (#3867) (#276) Signed-off-by: Modular Magician <magic-modules@google.com> * Add support for gRPC healthchecks (#3825) (#277) Signed-off-by: Modular Magician <magic-modules@google.com> * Add enableMessageOrdering to Pub/Sub Subscription (#3872) (#278) Add enableMessageOrdering to Pub/Sub Subscription Signed-off-by: Modular Magician <magic-modules@google.com> * use {product}.googleapis.com endpoints (#3755) (#279) * use {product}.googleapis.com endpoints * use actual correct urls * fix zone data source test * fix network peering tests * possibly fix deleting default network Signed-off-by: Modular Magician <magic-modules@google.com> * Removed instances where input and output are both true (#3890) (#280) * [provider-yaml] - Removed instances where input and output are both true * modified to only supply output. Following pattern from bigquerydatatransfer Co-authored-by: Scott Suarez <scottsuarez@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Scott Suarez <scottsuarez@google.com> * retrypolicy attribute added (#3843) (#281) * retrypolicy attribute added * test case updated Signed-off-by: Modular Magician <magic-modules@google.com> * Advanced logging config options in google_compute_subnetwork (#3603) (#282) Co-authored-by: Dana Hoffman <danahoffman@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Dana Hoffman <danahoffman@google.com> * Add Erase Windows VSS support to compute disk (#3898) (#283) Co-authored-by: Cameron Thornton <camthornton@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Cameron Thornton <camthornton@google.com> * Add Snapshot location to compute snapshot (#3896) (#286) * added storage locations * add storage locations to field * tweak cmek logic * fix the decoder logic and cleanup whitespaces * remove duplicate entry Signed-off-by: Modular Magician <magic-modules@google.com> * Added missing 'all' option for protocol firewall rule (#3962) (#287) Signed-off-by: Modular Magician <magic-modules@google.com> * Added support GRPC for google_compute_(region)_backend_service.protocol (#3973) (#289) Co-authored-by: Edward Sun <sunedward@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Edward Sun <sunedward@google.com> * Add schema update support to spanner db 2082 (#3947) (#291) * eoncders and customdiff added for spanner DB ddl update * config update test case added * customdiff modified to handle out-of-index issue * new lines added * indent fixed * indent fixed for tests * test added for ddl update condition * mock added Terraformresourcediff, unit tests added * test fixed * more unit tests added * tests fixed * PR comments implemented * unit tests converted to table driven tests * ImportStateVerifyIgnore flag added to tests * syntax corrected in test Signed-off-by: Modular Magician <magic-modules@google.com> * Added properties of options & artifacts on google_cloudbuild_trigger (#3944) (#292) * added options & artifacts to cloudbuild trigger * updated with minor changes and added more options in test * a test adding update behavior for multiple optional fields Co-authored-by: Edward Sun <sunedward@google.com> Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Edward Sun <sunedward@google.com> * Enable TPUs to use Shared VPC (#3939) (#293) * add support for shared vpc * make cidr_block computable * add diffsuppression * tweak diffsupression to ignore when network has a change * rework diffsupress * add customizediff * switch the diff checks Signed-off-by: Modular Magician <magic-modules@google.com> * Add SEV_CAPABLE option to google_compute_image (#3994) (#294) Signed-off-by: Modular Magician <magic-modules@google.com> * Update docs for pubsub targets in cloud scheduler (#4008) (#295) Signed-off-by: Modular Magician <magic-modules@google.com> * Make RegionBackendService health checks optional (#4053) (#297) Signed-off-by: Modular Magician <magic-modules@google.com> * Update terminology for IAM roles (#4056) (#299) Roles like "Owner" and "Editor" are now called "basic roles": https://cloud.google.com/iam/docs/understand Signed-off-by: Modular Magician <magic-modules@google.com> * Add source snapshot to ansible (#4060) Signed-off-by: Modular Magician <magic-modules@google.com> Co-authored-by: Tim O'Connell <hi@timoconnell.co.uk> Co-authored-by: Scott Suarez <scottsuarez@google.com> Co-authored-by: Dana Hoffman <danahoffman@google.com> Co-authored-by: Cameron Thornton <camthornton@google.com> Co-authored-by: Edward Sun <sunedward@google.com>
This commit is contained in:
parent
fb1485be7b
commit
7fa00db18c
169 changed files with 2105 additions and 764 deletions
|
@ -33,7 +33,6 @@ module: gcp_tpu_node
|
|||
description:
|
||||
- A Cloud TPU instance.
|
||||
short_description: Creates a GCP Node
|
||||
version_added: '2.9'
|
||||
author: Google Inc. (@googlecloudplatform)
|
||||
requirements:
|
||||
- python >= 2.6
|
||||
|
@ -85,8 +84,18 @@ options:
|
|||
TPU node, the CIDR block conflicts with any subnetworks in the user's provided
|
||||
network, or the provided network is peered with another network that is using
|
||||
that CIDR block.
|
||||
required: true
|
||||
required: false
|
||||
type: str
|
||||
use_service_networking:
|
||||
description:
|
||||
- Whether the VPC peering for the node is set up through Service Networking API.
|
||||
- The VPC Peering should be set up before provisioning the node. If this field
|
||||
is set, cidr_block field should not be specified. If the network that you want
|
||||
to peer the TPU Node to is a Shared VPC network, the node must be created with
|
||||
this this field enabled.
|
||||
required: false
|
||||
default: 'false'
|
||||
type: bool
|
||||
scheduling_config:
|
||||
description:
|
||||
- Sets the scheduling options for this TPU instance.
|
||||
|
@ -139,6 +148,7 @@ options:
|
|||
description:
|
||||
- Array of scopes to be used
|
||||
type: list
|
||||
elements: str
|
||||
env_type:
|
||||
description:
|
||||
- Specifies which Ansible environment you're running this module within.
|
||||
|
@ -146,7 +156,7 @@ options:
|
|||
- This only alters the User Agent string for any API requests.
|
||||
type: str
|
||||
notes:
|
||||
- 'API Reference: U(https://cloud.google.com/tpu/docs/reference/rest/)'
|
||||
- 'API Reference: U(https://cloud.google.com/tpu/docs/reference/rest/v1/projects.locations.nodes)'
|
||||
- 'Official Documentation: U(https://cloud.google.com/tpu/docs/)'
|
||||
- for authentication, you can set service_account_file using the C(gcp_service_account_file)
|
||||
env variable.
|
||||
|
@ -220,6 +230,15 @@ serviceAccount:
|
|||
in the Node, this account must have permissions to that data.
|
||||
returned: success
|
||||
type: str
|
||||
useServiceNetworking:
|
||||
description:
|
||||
- Whether the VPC peering for the node is set up through Service Networking API.
|
||||
- The VPC Peering should be set up before provisioning the node. If this field is
|
||||
set, cidr_block field should not be specified. If the network that you want to
|
||||
peer the TPU Node to is a Shared VPC network, the node must be created with this
|
||||
this field enabled.
|
||||
returned: success
|
||||
type: bool
|
||||
schedulingConfig:
|
||||
description:
|
||||
- Sets the scheduling options for this TPU instance.
|
||||
|
@ -292,11 +311,13 @@ def main():
|
|||
accelerator_type=dict(required=True, type='str'),
|
||||
tensorflow_version=dict(required=True, type='str'),
|
||||
network=dict(type='str'),
|
||||
cidr_block=dict(required=True, type='str'),
|
||||
cidr_block=dict(type='str'),
|
||||
use_service_networking=dict(type='bool'),
|
||||
scheduling_config=dict(type='dict', options=dict(preemptible=dict(required=True, type='bool'))),
|
||||
labels=dict(type='dict'),
|
||||
zone=dict(required=True, type='str'),
|
||||
)
|
||||
),
|
||||
mutually_exclusive=[['cidr_block', 'use_service_networking']],
|
||||
)
|
||||
|
||||
if not module.params['scopes']:
|
||||
|
@ -365,6 +386,7 @@ def resource_to_request(module):
|
|||
u'tensorflowVersion': module.params.get('tensorflow_version'),
|
||||
u'network': module.params.get('network'),
|
||||
u'cidrBlock': module.params.get('cidr_block'),
|
||||
u'useServiceNetworking': module.params.get('use_service_networking'),
|
||||
u'schedulingConfig': NodeSchedulingconfig(module.params.get('scheduling_config', {}), module).to_request(),
|
||||
u'labels': module.params.get('labels'),
|
||||
}
|
||||
|
@ -443,6 +465,7 @@ def response_to_hash(module, response):
|
|||
u'network': module.params.get('network'),
|
||||
u'cidrBlock': module.params.get('cidr_block'),
|
||||
u'serviceAccount': response.get(u'serviceAccount'),
|
||||
u'useServiceNetworking': module.params.get('use_service_networking'),
|
||||
u'schedulingConfig': NodeSchedulingconfig(module.params.get('scheduling_config', {}), module).to_request(),
|
||||
u'networkEndpoints': NodeNetworkendpointsArray(response.get(u'networkEndpoints', []), module).from_response(),
|
||||
u'labels': module.params.get('labels'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue