You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google/resource_composer_environment.go
+111-105
Original file line number
Diff line number
Diff line change
@@ -79,17 +79,18 @@ var (
79
79
allowedIpRangesConfig=&schema.Resource{
80
80
Schema: map[string]*schema.Schema{
81
81
"value": {
82
-
Type: schema.TypeString,
83
-
Required: true,
84
-
Description: `IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. IP range prefixes should be properly truncated. For example, 1.2.3.4/24 should be truncated to 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 should be truncated to 2001:db8::/32.`,
82
+
Type: schema.TypeString,
83
+
Required: true,
84
+
Description: `IP address or range, defined using CIDR notation, of requests that this rule applies to. Examples: 192.168.1.1 or 192.168.0.0/16 or 2001:db8::/32 or 2001:0db8:0000:0042:0000:8a2e:0370:7334. IP range prefixes should be properly truncated. For example, 1.2.3.4/24 should be truncated to 1.2.3.0/24. Similarly, for IPv6, 2001:db8::1/32 should be truncated to 2001:db8::/32.`,
Description: `The IP address range used to allocate IP addresses to pods in the cluster. For Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*, this field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. Specify either cluster_secondary_range_name or cluster_ipv4_cidr_block but not both.`,
Description: `The IP address range used to allocate IP addresses in this cluster. For Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*, this field is applicable only when use_ip_aliases is true. Set to blank to have GKE choose a range with the default size. Set to /netmask (e.g. /14) to have GKE choose a range with a specific netmask. Set to a CIDR notation (e.g. 10.96.0.0/14) from the RFC-1918 private networks (e.g. 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) to pick a specific range to use. Specify either services_secondary_range_name or services_ipv4_cidr_block but not both.`,
Description: `If true, access to the public endpoint of the GKE cluster is denied. If this field is set to true, ip_allocation_policy.use_ip_aliases must be set to true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.`,
360
+
ForceNew: true,
361
+
Description: `If true, access to the public endpoint of the GKE cluster is denied. If this field is set to true, ip_allocation_policy.use_ip_aliases must be set to true for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.`,
360
362
},
361
363
"master_ipv4_cidr_block": {
362
-
Type: schema.TypeString,
363
-
Optional: true,
364
-
Computed: true,
364
+
Type: schema.TypeString,
365
+
Optional: true,
366
+
Computed: true,
365
367
AtLeastOneOf: composerPrivateEnvironmentConfig,
366
-
ForceNew: true,
367
-
Description: `The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network. If left blank, the default value of '172.16.0.0/28' is used.`,
368
+
ForceNew: true,
369
+
Description: `The IP range in CIDR notation to use for the hosted master network. This range is used for assigning internal IP addresses to the cluster master or set of masters and to the internal load balancer virtual IP. This range must not overlap with any other ranges in use within the cluster's network. If left blank, the default value of '172.16.0.0/28' is used.`,
368
370
},
369
371
"web_server_ipv4_cidr_block": {
370
-
Type: schema.TypeString,
371
-
Optional: true,
372
-
Computed: true,
372
+
Type: schema.TypeString,
373
+
Optional: true,
374
+
Computed: true,
373
375
AtLeastOneOf: composerPrivateEnvironmentConfig,
374
-
ForceNew: true,
375
-
Description: `The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.`,
376
+
ForceNew: true,
377
+
Description: `The CIDR block from which IP range for web server will be reserved. Needs to be disjoint from master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.`,
376
378
},
377
379
"cloud_sql_ipv4_cidr_block": {
378
-
Type: schema.TypeString,
379
-
Optional: true,
380
-
Computed: true,
380
+
Type: schema.TypeString,
381
+
Optional: true,
382
+
Computed: true,
381
383
AtLeastOneOf: composerPrivateEnvironmentConfig,
382
-
ForceNew: true,
383
-
Description: `The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block.`,
384
+
ForceNew: true,
385
+
Description: `The CIDR block from which IP range in tenant project will be reserved for Cloud SQL. Needs to be disjoint from web_server_ipv4_cidr_block.`,
384
386
},
385
387
"cloud_composer_network_ipv4_cidr_block": {
386
-
Type: schema.TypeString,
387
-
Optional: true,
388
-
Computed: true,
388
+
Type: schema.TypeString,
389
+
Optional: true,
390
+
Computed: true,
389
391
AtLeastOneOf: composerPrivateEnvironmentConfig,
390
-
ForceNew: true,
391
-
Description: `The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.`,
392
+
ForceNew: true,
393
+
Description: `The CIDR block from which IP range for Cloud Composer Network in tenant project will be reserved. Needs to be disjoint from private_cluster_config.master_ipv4_cidr_block and cloud_sql_ipv4_cidr_block. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.`,
392
394
},
393
395
},
394
396
},
395
397
},
396
398
"web_server_network_access_control": {
397
-
Type: schema.TypeList,
398
-
Optional: true,
399
-
Computed: true,
399
+
Type: schema.TypeList,
400
+
Optional: true,
401
+
Computed: true,
400
402
AtLeastOneOf: composerConfigKeys,
401
-
MaxItems: 1,
402
-
Description: `The network-level access control policy for the Airflow web server. If unspecified, no network-level access restrictions will be applied. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.`,
403
+
MaxItems: 1,
404
+
Description: `The network-level access control policy for the Airflow web server. If unspecified, no network-level access restrictions will be applied. This field is supported for Cloud Composer environments in versions composer-1.*.*-airflow-*.*.*.`,
Description: `Optional. Cloud SQL machine type used by Airflow database. It has to be one of: db-n1-standard-2, db-n1-standard-4, db-n1-standard-8 or db-n1-standard-16. If not specified, db-n1-standard-2 will be used.`,
Description: `Optional. Machine type on which Airflow web server is running. It has to be one of: composer-n1-webserver-2, composer-n1-webserver-4 or composer-n1-webserver-8. If not specified, composer-n1-webserver-2 will be used. Value custom is returned only in response, if Airflow web server parameters were manually changed to a non-standard values.`,
Description: `The size of the Cloud Composer environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.`,
Description: `The size of the Cloud Composer environment. This field is supported for Cloud Composer environments in versions composer-2.*.*-airflow-*.*.* and newer.`,
636
+
},
635
637
"airflow_uri": {
636
638
Type: schema.TypeString,
637
639
Computed: true,
@@ -920,16 +922,16 @@ func resourceComposerEnvironmentUpdate(d *schema.ResourceData, meta interface{})
0 commit comments