diff --git a/.changelog/3010.txt b/.changelog/3010.txt new file mode 100644 index 000000000..b1f54dc22 --- /dev/null +++ b/.changelog/3010.txt @@ -0,0 +1,3 @@ +```release-note:REPLACEME + +``` diff --git a/docs/resources/google_cloudbuild_trigger.md b/docs/resources/google_cloudbuild_trigger.md index 1e43f208a..3f852e6fa 100644 --- a/docs/resources/google_cloudbuild_trigger.md +++ b/docs/resources/google_cloudbuild_trigger.md @@ -58,24 +58,6 @@ Properties that can be accessed from the `google_cloudbuild_trigger` resource: * `commit_sha`: Explicit commit SHA to build. Exactly one of a branch name, tag, or commit SHA must be provided. - * `github`: (Beta only) Describes the configuration of a trigger that creates a build whenever a GitHub event is received. - - * `owner`: Owner of the repository. For example: The owner for https://github.com/googlecloudplatform/cloud-builders is "googlecloudplatform". - - * `name`: Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is "cloud-builders". - - * `pull_request`: filter to match changes in pull requests. Specify only one of pullRequest or push. - - * `branch`: Regex of branches to match. - - * `comment_control`: Whether to block builds on a "/gcbrun" comment from a repository owner or collaborator. - - * `push`: filter to match changes in refs, like branches or tags. Specify only one of pullRequest or push. - - * `branch`: Regex of branches to match. Specify only one of branch or tag. - - * `tag`: Regex of tags to match. Specify only one of branch or tag. - * `build`: Contents of the build template. Either a filename or build template must be provided. * `tags`: Tags for annotation of a Build. These are not docker tags. diff --git a/docs/resources/google_cloudbuild_triggers.md b/docs/resources/google_cloudbuild_triggers.md index 626807ee5..a1080c56e 100644 --- a/docs/resources/google_cloudbuild_triggers.md +++ b/docs/resources/google_cloudbuild_triggers.md @@ -36,7 +36,6 @@ See [google_cloudbuild_trigger.md](google_cloudbuild_trigger.md) for more detail * `ignored_files`: an array of `google_cloudbuild_trigger` ignored_files * `included_files`: an array of `google_cloudbuild_trigger` included_files * `trigger_templates`: an array of `google_cloudbuild_trigger` trigger_template - * `githubs`: (Beta only) an array of `google_cloudbuild_trigger` github * `builds`: an array of `google_cloudbuild_trigger` build ## Filter Criteria diff --git a/docs/resources/google_compute_address.md b/docs/resources/google_compute_address.md index 0480f4563..24c52733d 100644 --- a/docs/resources/google_compute_address.md +++ b/docs/resources/google_compute_address.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_address` is used to test a Google Address resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_address(project: 'chef-gcp-inspec', location: 'europe-west2', name: 'inspec-gcp-global-address') do @@ -73,10 +69,6 @@ Properties that can be accessed from the `google_compute_address` resource: * `users`: The URLs of the resources that are using this address. - * `labels`: (Beta only) Labels to apply to this address. A list of key->value pairs. - - * `label_fingerprint`: (Beta only) The fingerprint used for optimistic locking of this resource. Used internally during updates. - * `status`: The status of the address, which can be one of RESERVING, RESERVED, or IN_USE. An address that is RESERVING is currently in the process of being reserved. A RESERVED address is currently reserved and available to use. An IN_USE address is currently being used by another resource and is not available. * `region`: URL of the region where the regional address resides. This field is not applicable to global addresses. diff --git a/docs/resources/google_compute_addresses.md b/docs/resources/google_compute_addresses.md index 40f6a96b3..a7fe6d942 100644 --- a/docs/resources/google_compute_addresses.md +++ b/docs/resources/google_compute_addresses.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_addresses` is used to test a Google Address resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_addresses(project: 'chef-gcp-inspec', location: 'europe-west2') do @@ -32,8 +28,6 @@ See [google_compute_address.md](google_compute_address.md) for more detailed inf * `network_tiers`: an array of `google_compute_address` network_tier * `subnetworks`: an array of `google_compute_address` subnetwork * `users`: an array of `google_compute_address` users - * `labels`: (Beta only) an array of `google_compute_address` labels - * `label_fingerprints`: (Beta only) an array of `google_compute_address` label_fingerprint * `statuses`: an array of `google_compute_address` status * `regions`: an array of `google_compute_address` region diff --git a/docs/resources/google_compute_autoscaler.md b/docs/resources/google_compute_autoscaler.md index 32bac2da7..d97dc524d 100644 --- a/docs/resources/google_compute_autoscaler.md +++ b/docs/resources/google_compute_autoscaler.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_autoscaler` is used to test a Google Autoscaler resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_autoscaler(project: 'chef-gcp-inspec', zone: 'zone', name: 'inspec-gcp-autoscaler') do @@ -55,14 +51,10 @@ Properties that can be accessed from the `google_compute_autoscaler` resource: * `metric`: The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values. The metric must have a value type of INT64 or DOUBLE. - * `single_instance_assignment`: (Beta only) If scaling is based on a per-group metric value that represents the total amount of work to be done or resource usage, set this value to an amount assigned for a single instance of the scaled group. The autoscaler will keep the number of instances proportional to the value of this metric, the metric itself should not change value due to group resizing. For example, a good metric to use with the target is `pubsub.googleapis.com/subscription/num_undelivered_messages` or a custom metric exporting the total number of requests coming to your instances. A bad example would be a metric exporting an average or median latency, since this value can't include a chunk assignable to a single instance, it could be better used with utilization_target instead. - * `utilization_target`: The target value of the metric that autoscaler should maintain. This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric. For example, a good metric to use as a utilizationTarget is www.googleapis.com/compute/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances. * `utilization_target_type`: Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. - * `filter`: (Beta only) A filter string to be used as the filter string for a Stackdriver Monitoring TimeSeries.list API call. This filter is used to select a specific TimeSeries for the purpose of autoscaling and to determine whether the metric is exporting per-instance or per-group data. You can only use the AND operator for joining selectors. You can only use direct equality comparison operator (=) without any functions for each selector. You can specify the metric in both the filter string and in the metric field. However, if specified in both places, the metric must be identical. The monitored resource type determines what kind of values are expected for the metric. If it is a gce_instance, the autoscaler expects the metric to include a separate TimeSeries for each instance in a group. In such a case, you cannot filter on resource labels. If the resource type is any other value, the autoscaler expects this metric to contain values that apply to the entire autoscaled instance group and resource label filtering can be performed to point autoscaler at the correct TimeSeries to scale upon. This is called a per-group metric for the purpose of autoscaling. If not specified, the type defaults to gce_instance. You should provide a filter that is selective enough to pick just one TimeSeries for the autoscaled group or for each of the instances (if you are using gce_instance resource type). If multiple TimeSeries are returned upon the query execution, the autoscaler will sum their respective values to obtain its scaling value. - * `load_balancing_utilization`: Configuration parameters of autoscaling based on a load balancer. * `utilization_target`: Fraction of backend capacity utilization (set in HTTP(s) load balancing configuration) that autoscaler should maintain. Must be a positive float value. If not defined, the default is 0.8. diff --git a/docs/resources/google_compute_autoscalers.md b/docs/resources/google_compute_autoscalers.md index 4b5348477..b71a0c9e2 100644 --- a/docs/resources/google_compute_autoscalers.md +++ b/docs/resources/google_compute_autoscalers.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_autoscalers` is used to test a Google Autoscaler resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` autoscalers = google_compute_autoscalers(project: 'chef-gcp-inspec', zone: 'zone') diff --git a/docs/resources/google_compute_backend_bucket.md b/docs/resources/google_compute_backend_bucket.md index c183499ea..78c4529bc 100644 --- a/docs/resources/google_compute_backend_bucket.md +++ b/docs/resources/google_compute_backend_bucket.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_backend_bucket` is used to test a Google BackendBucket resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_backend_bucket(project: 'chef-gcp-inspec', name: 'inspec-gcp-backend-bucket') do diff --git a/docs/resources/google_compute_backend_buckets.md b/docs/resources/google_compute_backend_buckets.md index c473934f4..7b78ecc8b 100644 --- a/docs/resources/google_compute_backend_buckets.md +++ b/docs/resources/google_compute_backend_buckets.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_backend_buckets` is used to test a Google BackendBucket resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_backend_buckets(project: 'chef-gcp-inspec', name: 'inspec-gcp-backend-bucket') do diff --git a/docs/resources/google_compute_backend_service.md b/docs/resources/google_compute_backend_service.md index 80f0d32ed..8a3350313 100644 --- a/docs/resources/google_compute_backend_service.md +++ b/docs/resources/google_compute_backend_service.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_backend_service` is used to test a Google BackendService resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_backend_service(project: 'chef-gcp-inspec', name: 'inspec-gcp-backend-service') do @@ -56,42 +52,6 @@ Properties that can be accessed from the `google_compute_backend_service` resour * `max_utilization`: Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0]. - * `circuit_breakers`: (Beta only) Settings controlling the volume of connections to a backend service. This field is applicable only when the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. - - * `connect_timeout`: The timeout for new network connections to hosts. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive. - - * `max_requests_per_connection`: Maximum requests for a single backend connection. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. - - * `max_connections`: The maximum number of connections to the backend cluster. Defaults to 1024. - - * `max_pending_requests`: The maximum number of pending requests to the backend cluster. Defaults to 1024. - - * `max_requests`: The maximum number of parallel requests to the backend cluster. Defaults to 1024. - - * `max_retries`: The maximum number of parallel retries to the backend cluster. Defaults to 3. - - * `consistent_hash`: (Beta only) Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field only applies if the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. This field is only applicable when locality_lb_policy is set to MAGLEV or RING_HASH. - - * `http_cookie`: Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. - - * `ttl`: Lifetime of the cookie. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive. - - * `name`: Name of the cookie. - - * `path`: Path to set for the cookie. - - * `http_header_name`: The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD. - - * `minimum_ring_size`: The minimum number of virtual nodes to use for the hash ring. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node. Defaults to 1024. - * `cdn_policy`: Cloud CDN configuration for this BackendService. * `cache_key_policy`: The CacheKeyPolicy for this CdnPolicy. @@ -114,8 +74,6 @@ Properties that can be accessed from the `google_compute_backend_service` resour * `creation_timestamp`: Creation timestamp in RFC3339 text format. - * `custom_request_headers`: (Beta only) Headers that the HTTP/S load balancer should add to proxied requests. - * `fingerprint`: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. * `description`: An optional description of this resource. @@ -138,42 +96,8 @@ Properties that can be accessed from the `google_compute_backend_service` resour * `load_balancing_scheme`: Indicates whether the backend service will be used with internal or external load balancing. A backend service created for one type of load balancing cannot be used with the other. Must be `EXTERNAL` or `INTERNAL_SELF_MANAGED` for a global backend service. Defaults to `EXTERNAL`. - * `locality_lb_policy`: (Beta only) The load balancing algorithm used within the scope of the locality. The possible values are - ROUND_ROBIN - This is a simple policy in which each healthy backend is selected in round robin order. LEAST_REQUEST - An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. RING_HASH - The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. RANDOM - The load balancer selects a random healthy host. ORIGINAL_DESTINATION - Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. MAGLEV - used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, refer to https://ai.google/research/pubs/pub44824 This field is applicable only when the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. - * `name`: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must 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 characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * `outlier_detection`: (Beta only) Settings controlling eviction of unhealthy hosts from the load balancing pool. This field is applicable only when the load_balancing_scheme is set to INTERNAL_SELF_MANAGED. - - * `base_ejection_time`: The base time that a host is ejected for. The real time is equal to the base time multiplied by the number of times the host has been ejected. Defaults to 30000ms or 30s. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. - - * `consecutive_errors`: Number of errors before a host is ejected from the connection pool. When the backend host is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. - - * `consecutive_gateway_failure`: The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 5. - - * `enforcing_consecutive_errors`: The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. - - * `enforcing_consecutive_gateway_failure`: The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0. - - * `enforcing_success_rate`: The percentage chance that a host will be actually ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. - - * `interval`: Time interval between ejection sweep analysis. This can result in both new ejections as well as hosts being returned to service. Defaults to 10 seconds. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. - - * `max_ejection_percent`: Maximum percentage of hosts in the load balancing pool for the backend service that can be ejected. Defaults to 10%. - - * `success_rate_minimum_hosts`: The number of hosts in a cluster that must have enough request volume to detect success rate outliers. If the number of hosts is less than this setting, outlier detection via success rate statistics is not performed for any host in the cluster. Defaults to 5. - - * `success_rate_request_volume`: The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this host in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that host. Defaults to 100. - - * `success_rate_stdev_factor`: This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * success_rate_stdev_factor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. - * `port_name`: Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL. * `protocol`: The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, TCP, and SSL. The default is HTTP. **NOTE**: HTTP2 is only valid for beta HTTP/2 load balancer types and may result in errors if used with the GA API. @@ -184,12 +108,6 @@ Properties that can be accessed from the `google_compute_backend_service` resour * `timeout_sec`: How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. Valid range is [1, 86400]. - * `log_config`: (Beta only) This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver. - - * `enable`: Whether to enable logging for the load balancer traffic served by this backend service. - - * `sample_rate`: This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0. - ## GCP Permissions diff --git a/docs/resources/google_compute_backend_services.md b/docs/resources/google_compute_backend_services.md index 7a5d44bbd..48ce6d878 100644 --- a/docs/resources/google_compute_backend_services.md +++ b/docs/resources/google_compute_backend_services.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_backend_services` is used to test a Google BackendService resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_backend_services(project: 'chef-gcp-inspec') do @@ -27,12 +23,9 @@ Properties that can be accessed from the `google_compute_backend_services` resou See [google_compute_backend_service.md](google_compute_backend_service.md) for more detailed information * `affinity_cookie_ttl_secs`: an array of `google_compute_backend_service` affinity_cookie_ttl_sec * `backends`: an array of `google_compute_backend_service` backends - * `circuit_breakers`: (Beta only) an array of `google_compute_backend_service` circuit_breakers - * `consistent_hashes`: (Beta only) an array of `google_compute_backend_service` consistent_hash * `cdn_policies`: an array of `google_compute_backend_service` cdn_policy * `connection_drainings`: an array of `google_compute_backend_service` connection_draining * `creation_timestamps`: an array of `google_compute_backend_service` creation_timestamp - * `custom_request_headers`: (Beta only) an array of `google_compute_backend_service` custom_request_headers * `fingerprints`: an array of `google_compute_backend_service` fingerprint * `descriptions`: an array of `google_compute_backend_service` description * `enable_cdns`: an array of `google_compute_backend_service` enable_cdn @@ -40,15 +33,12 @@ See [google_compute_backend_service.md](google_compute_backend_service.md) for m * `ids`: an array of `google_compute_backend_service` id * `iaps`: an array of `google_compute_backend_service` iap * `load_balancing_schemes`: an array of `google_compute_backend_service` load_balancing_scheme - * `locality_lb_policies`: (Beta only) an array of `google_compute_backend_service` locality_lb_policy * `names`: an array of `google_compute_backend_service` name - * `outlier_detections`: (Beta only) an array of `google_compute_backend_service` outlier_detection * `port_names`: an array of `google_compute_backend_service` port_name * `protocols`: an array of `google_compute_backend_service` protocol * `security_policies`: an array of `google_compute_backend_service` security_policy * `session_affinities`: an array of `google_compute_backend_service` session_affinity * `timeout_secs`: an array of `google_compute_backend_service` timeout_sec - * `log_configs`: (Beta only) an array of `google_compute_backend_service` log_config ## Filter Criteria This resource supports all of the above properties as filter criteria, which can be used diff --git a/docs/resources/google_compute_disk.md b/docs/resources/google_compute_disk.md index 05014de01..189f06a98 100644 --- a/docs/resources/google_compute_disk.md +++ b/docs/resources/google_compute_disk.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_disk` is used to test a Google Disk resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` @@ -67,8 +63,6 @@ Properties that can be accessed from the `google_compute_disk` resource: * `source_image`: The source image used to create this disk. If the source image is deleted, this field will not be set. To create a disk with one of the public operating system images, specify the image by its family name. For example, specify family/debian-8 to use the latest Debian 8 image: projects/debian-cloud/global/images/family/debian-8 Alternatively, use a specific version of a public operating system image: projects/debian-cloud/global/images/debian-8-jessie-vYYYYMMDD To create a disk with a private image that you created, specify the image name in the following format: global/images/my-private-image You can also specify a private image by its image family, which returns the latest version of the image in that family. Replace the image name with family/family-name: global/images/family/my-private-family - * `resource_policies`: (Beta only) Resource policies applied to this disk for automatic snapshot creations. - * `zone`: A reference to the zone where the disk resides. * `source_image_encryption_key`: The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key. diff --git a/docs/resources/google_compute_disks.md b/docs/resources/google_compute_disks.md index d2aa8b890..f76c16051 100644 --- a/docs/resources/google_compute_disks.md +++ b/docs/resources/google_compute_disks.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_disks` is used to test a Google Disk resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` most_recent_image = google_compute_image(project: 'debian-cloud', name: 'debian-10-buster-v20191014') @@ -38,7 +34,6 @@ See [google_compute_disk.md](google_compute_disk.md) for more detailed informati * `physical_block_size_bytes`: an array of `google_compute_disk` physical_block_size_bytes * `types`: an array of `google_compute_disk` type * `source_images`: an array of `google_compute_disk` source_image - * `resource_policies`: (Beta only) an array of `google_compute_disk` resource_policies * `zones`: an array of `google_compute_disk` zone * `source_image_encryption_keys`: an array of `google_compute_disk` source_image_encryption_key * `source_image_ids`: an array of `google_compute_disk` source_image_id diff --git a/docs/resources/google_compute_firewall.md b/docs/resources/google_compute_firewall.md index 01d1e73a1..d17f1c4f4 100644 --- a/docs/resources/google_compute_firewall.md +++ b/docs/resources/google_compute_firewall.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_firewall` is used to test a Google Firewall resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_firewall(project: 'chef-gcp-inspec', name: 'inspec-gcp-firewall') do diff --git a/docs/resources/google_compute_firewalls.md b/docs/resources/google_compute_firewalls.md index 7cc9e4d16..86fc33253 100644 --- a/docs/resources/google_compute_firewalls.md +++ b/docs/resources/google_compute_firewalls.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_firewalls` is used to test a Google Firewall resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_firewalls(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_forwarding_rule.md b/docs/resources/google_compute_forwarding_rule.md index 89d7191f8..17d232f58 100644 --- a/docs/resources/google_compute_forwarding_rule.md +++ b/docs/resources/google_compute_forwarding_rule.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_forwarding_rule` is used to test a Google ForwardingRule resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` @@ -57,12 +53,6 @@ Properties that can be accessed from the `google_compute_forwarding_rule` resour * `target`: The URL of the target resource to receive the matched traffic. The target must live in the same region as the forwarding rule. The forwarded traffic must be of a type appropriate to the target object. - * `allow_global_access`: (Beta only) If true, clients can access ILB from all regions. Otherwise only allows from the local region the ILB is located at. - - * `labels`: (Beta only) Labels to apply to this forwarding rule. A list of key->value pairs. - - * `label_fingerprint`: (Beta only) The fingerprint used for optimistic locking of this resource. Used internally during updates. - * `all_ports`: For internal TCP/UDP load balancing (i.e. load balancing scheme is INTERNAL and protocol is TCP/UDP), set this to true to allow packets addressed to any ports to be forwarded to the backends configured with this forwarding rule. Used with backend service. Cannot be set if port or portRange are set. * `network_tier`: The networking tier used for configuring this address. This field can take the following values: PREMIUM or STANDARD. If this field is not specified, it is assumed to be PREMIUM. diff --git a/docs/resources/google_compute_forwarding_rules.md b/docs/resources/google_compute_forwarding_rules.md index 673f13bb6..bc70a8ae6 100644 --- a/docs/resources/google_compute_forwarding_rules.md +++ b/docs/resources/google_compute_forwarding_rules.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_forwarding_rules` is used to test a Google ForwardingRule resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` @@ -35,9 +31,6 @@ See [google_compute_forwarding_rule.md](google_compute_forwarding_rule.md) for m * `ports`: an array of `google_compute_forwarding_rule` ports * `subnetworks`: an array of `google_compute_forwarding_rule` subnetwork * `targets`: an array of `google_compute_forwarding_rule` target - * `allow_global_accesses`: (Beta only) an array of `google_compute_forwarding_rule` allow_global_access - * `labels`: (Beta only) an array of `google_compute_forwarding_rule` labels - * `label_fingerprints`: (Beta only) an array of `google_compute_forwarding_rule` label_fingerprint * `all_ports`: an array of `google_compute_forwarding_rule` all_ports * `network_tiers`: an array of `google_compute_forwarding_rule` network_tier * `service_labels`: an array of `google_compute_forwarding_rule` service_label diff --git a/docs/resources/google_compute_global_address.md b/docs/resources/google_compute_global_address.md index 36fa660ef..7acd0c872 100644 --- a/docs/resources/google_compute_global_address.md +++ b/docs/resources/google_compute_global_address.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_global_address` is used to test a Google GlobalAddress resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_global_address(project: 'chef-gcp-inspec', name: 'inspec-gcp-global-address') do @@ -36,10 +32,6 @@ Properties that can be accessed from the `google_compute_global_address` resourc * `name`: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must 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 characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * `labels`: (Beta only) Labels to apply to this address. A list of key->value pairs. - - * `label_fingerprint`: (Beta only) The fingerprint used for optimistic locking of this resource. Used internally during updates. - * `ip_version`: The IP Version that will be used by this address. Valid options are `IPV4` or `IPV6`. The default value is `IPV4`. * `region`: A reference to the region where the regional address resides. diff --git a/docs/resources/google_compute_global_addresses.md b/docs/resources/google_compute_global_addresses.md index 97633d944..40a45de60 100644 --- a/docs/resources/google_compute_global_addresses.md +++ b/docs/resources/google_compute_global_addresses.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_global_addresses` is used to test a Google GlobalAddress resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_global_addresses(project: 'chef-gcp-inspec', name: 'inspec-gcp-global-address') do @@ -28,8 +24,6 @@ See [google_compute_global_address.md](google_compute_global_address.md) for mor * `descriptions`: an array of `google_compute_global_address` description * `ids`: an array of `google_compute_global_address` id * `names`: an array of `google_compute_global_address` name - * `labels`: (Beta only) an array of `google_compute_global_address` labels - * `label_fingerprints`: (Beta only) an array of `google_compute_global_address` label_fingerprint * `ip_versions`: an array of `google_compute_global_address` ip_version * `regions`: an array of `google_compute_global_address` region * `prefix_lengths`: an array of `google_compute_global_address` prefix_length diff --git a/docs/resources/google_compute_global_forwarding_rule.md b/docs/resources/google_compute_global_forwarding_rule.md index b1e3a886f..3e7782235 100644 --- a/docs/resources/google_compute_global_forwarding_rule.md +++ b/docs/resources/google_compute_global_forwarding_rule.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_global_forwarding_rule` is used to test a Google GlobalForwardingRule resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_global_forwarding_rule(project: 'chef-gcp-inspec', name: 'inspec-gcp-global-forwarding-rule') do @@ -39,10 +35,6 @@ Properties that can be accessed from the `google_compute_global_forwarding_rule` * `ip_version`: The IP Version that will be used by this global forwarding rule. Valid options are IPV4 or IPV6. - * `labels`: (Beta only) Labels to apply to this forwarding rule. A list of key->value pairs. - - * `label_fingerprint`: (Beta only) The fingerprint used for optimistic locking of this resource. Used internally during updates. - * `load_balancing_scheme`: This signifies what the GlobalForwardingRule will be used for. The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Global Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) NOTE: Currently global forwarding rules cannot be used for INTERNAL load balancing. * `metadata_filters`: Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata. metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references. metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. diff --git a/docs/resources/google_compute_global_forwarding_rules.md b/docs/resources/google_compute_global_forwarding_rules.md index 043249b3a..23e07cf70 100644 --- a/docs/resources/google_compute_global_forwarding_rules.md +++ b/docs/resources/google_compute_global_forwarding_rules.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_global_forwarding_rules` is used to test a Google GlobalForwardingRule resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_global_forwarding_rules(project: 'chef-gcp-inspec') do @@ -28,8 +24,6 @@ See [google_compute_global_forwarding_rule.md](google_compute_global_forwarding_ * `ip_addresses`: an array of `google_compute_global_forwarding_rule` ip_address * `ip_protocols`: an array of `google_compute_global_forwarding_rule` ip_protocol * `ip_versions`: an array of `google_compute_global_forwarding_rule` ip_version - * `labels`: (Beta only) an array of `google_compute_global_forwarding_rule` labels - * `label_fingerprints`: (Beta only) an array of `google_compute_global_forwarding_rule` label_fingerprint * `load_balancing_schemes`: an array of `google_compute_global_forwarding_rule` load_balancing_scheme * `metadata_filters`: an array of `google_compute_global_forwarding_rule` metadata_filters * `names`: an array of `google_compute_global_forwarding_rule` name diff --git a/docs/resources/google_compute_health_check.md b/docs/resources/google_compute_health_check.md index 7a1d6071e..46dec43c0 100644 --- a/docs/resources/google_compute_health_check.md +++ b/docs/resources/google_compute_health_check.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_health_check` is used to test a Google HealthCheck resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_health_check(project: 'chef-gcp-inspec', name: 'inspec-gcp-health-check') do diff --git a/docs/resources/google_compute_health_checks.md b/docs/resources/google_compute_health_checks.md index f37775753..c943fcba1 100644 --- a/docs/resources/google_compute_health_checks.md +++ b/docs/resources/google_compute_health_checks.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_health_checks` is used to test a Google HealthCheck resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_health_checks(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_http_health_check.md b/docs/resources/google_compute_http_health_check.md index 76a99f5ac..ee25196ea 100644 --- a/docs/resources/google_compute_http_health_check.md +++ b/docs/resources/google_compute_http_health_check.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_http_health_check` is used to test a Google HttpHealthCheck resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_http_health_check(project: 'chef-gcp-inspec', name: 'inspec-gcp-http-health-check') do diff --git a/docs/resources/google_compute_http_health_checks.md b/docs/resources/google_compute_http_health_checks.md index c306f0925..346b230ac 100644 --- a/docs/resources/google_compute_http_health_checks.md +++ b/docs/resources/google_compute_http_health_checks.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_http_health_checks` is used to test a Google HttpHealthCheck resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_http_health_checks(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_https_health_check.md b/docs/resources/google_compute_https_health_check.md index 5a4054388..4742a2199 100644 --- a/docs/resources/google_compute_https_health_check.md +++ b/docs/resources/google_compute_https_health_check.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_https_health_check` is used to test a Google HttpsHealthCheck resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_https_health_check(project: 'chef-gcp-inspec', name: 'inspec-gcp-https-health-check') do diff --git a/docs/resources/google_compute_https_health_checks.md b/docs/resources/google_compute_https_health_checks.md index fa6ce2675..d7bc536dd 100644 --- a/docs/resources/google_compute_https_health_checks.md +++ b/docs/resources/google_compute_https_health_checks.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_https_health_checks` is used to test a Google HttpsHealthCheck resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_https_health_checks(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_instance.md b/docs/resources/google_compute_instance.md index 1ab8bdcc5..523050621 100644 --- a/docs/resources/google_compute_instance.md +++ b/docs/resources/google_compute_instance.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance` is used to test a Google Instance resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_instance_group.md b/docs/resources/google_compute_instance_group.md index 38aa3b3c6..22f19f38a 100644 --- a/docs/resources/google_compute_instance_group.md +++ b/docs/resources/google_compute_instance_group.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance_group` is used to test a Google InstanceGroup resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_instance_group_manager.md b/docs/resources/google_compute_instance_group_manager.md index bd7058bc7..6573bea14 100644 --- a/docs/resources/google_compute_instance_group_manager.md +++ b/docs/resources/google_compute_instance_group_manager.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance_group_manager` is used to test a Google InstanceGroupManager resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_instance_group_manager(project: 'chef-gcp-inspec', zone: 'zone', name: 'inspec-gcp-igm') do diff --git a/docs/resources/google_compute_instance_group_managers.md b/docs/resources/google_compute_instance_group_managers.md index c7cd3c907..ff0151a0b 100644 --- a/docs/resources/google_compute_instance_group_managers.md +++ b/docs/resources/google_compute_instance_group_managers.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance_group_managers` is used to test a Google InstanceGroupManager resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_instance_group_managers(project: 'chef-gcp-inspec', zone: 'zone') do diff --git a/docs/resources/google_compute_instance_groups.md b/docs/resources/google_compute_instance_groups.md index 5cfcf2665..eceb3b39e 100644 --- a/docs/resources/google_compute_instance_groups.md +++ b/docs/resources/google_compute_instance_groups.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance_groups` is used to test a Google InstanceGroup resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_instance_template.md b/docs/resources/google_compute_instance_template.md index 2b0ec7989..d5f34bf03 100644 --- a/docs/resources/google_compute_instance_template.md +++ b/docs/resources/google_compute_instance_template.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance_template` is used to test a Google InstanceTemplate resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_instance_template(project: 'chef-gcp-inspec', name: 'inspec-gcp-instance-template') do diff --git a/docs/resources/google_compute_instance_templates.md b/docs/resources/google_compute_instance_templates.md index db70a74da..6d02f7cf8 100644 --- a/docs/resources/google_compute_instance_templates.md +++ b/docs/resources/google_compute_instance_templates.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instance_templates` is used to test a Google InstanceTemplate resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_instance_templates(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_instances.md b/docs/resources/google_compute_instances.md index 8d8d69c5a..f799aa24b 100644 --- a/docs/resources/google_compute_instances.md +++ b/docs/resources/google_compute_instances.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_instances` is used to test a Google Instance resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_network.md b/docs/resources/google_compute_network.md index 4a8ffbb08..126bb3413 100644 --- a/docs/resources/google_compute_network.md +++ b/docs/resources/google_compute_network.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_network` is used to test a Google Network resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_network(project: 'chef-gcp-inspec', name: 'inspec-network') do diff --git a/docs/resources/google_compute_network_endpoint_group.md b/docs/resources/google_compute_network_endpoint_group.md index 0a030d0cb..5043b252e 100644 --- a/docs/resources/google_compute_network_endpoint_group.md +++ b/docs/resources/google_compute_network_endpoint_group.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_network_endpoint_group` is used to test a Google NetworkEndpointGroup resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_network_endpoint_groups.md b/docs/resources/google_compute_network_endpoint_groups.md index cb0f7c48a..fe7c287a4 100644 --- a/docs/resources/google_compute_network_endpoint_groups.md +++ b/docs/resources/google_compute_network_endpoint_groups.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_network_endpoint_groups` is used to test a Google NetworkEndpointGroup resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_networks.md b/docs/resources/google_compute_networks.md index 634e303e4..e8917795b 100644 --- a/docs/resources/google_compute_networks.md +++ b/docs/resources/google_compute_networks.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_networks` is used to test a Google Network resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_networks(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_node_group.md b/docs/resources/google_compute_node_group.md index fd0901e39..61f95aa18 100644 --- a/docs/resources/google_compute_node_group.md +++ b/docs/resources/google_compute_node_group.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_node_group` is used to test a Google NodeGroup resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_node_groups.md b/docs/resources/google_compute_node_groups.md index ade92c89a..41067010e 100644 --- a/docs/resources/google_compute_node_groups.md +++ b/docs/resources/google_compute_node_groups.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_node_groups` is used to test a Google NodeGroup resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_node_template.md b/docs/resources/google_compute_node_template.md index 1a845b67c..42d8c2340 100644 --- a/docs/resources/google_compute_node_template.md +++ b/docs/resources/google_compute_node_template.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_node_template` is used to test a Google NodeTemplate resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` @@ -45,10 +41,6 @@ Properties that can be accessed from the `google_compute_node_template` resource * `local_ssd`: Use local SSD - * `server_binding`: (Beta only) The server binding policy for nodes using this template. Determines where the nodes should restart following a maintenance event. - - * `type`: Type of server binding policy. If `RESTART_NODE_ON_ANY_SERVER`, nodes using this template will restart on any physical server following a maintenance event. If `RESTART_NODE_ON_MINIMAL_SERVER`, nodes using this template will restart on the same physical server following a maintenance event, instead of being live migrated to or restarted on a new physical server. This option may be useful if you are using software licenses tied to the underlying server characteristics such as physical sockets or cores, to avoid the need for additional licenses when maintenance occurs. However, VMs on such nodes will experience outages while maintenance is applied. - * `region`: Region where nodes using the node template will be created diff --git a/docs/resources/google_compute_node_templates.md b/docs/resources/google_compute_node_templates.md index dc2865a3a..e3cbb1363 100644 --- a/docs/resources/google_compute_node_templates.md +++ b/docs/resources/google_compute_node_templates.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_node_templates` is used to test a Google NodeTemplate resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` @@ -28,7 +24,6 @@ See [google_compute_node_template.md](google_compute_node_template.md) for more * `node_affinity_labels`: an array of `google_compute_node_template` node_affinity_labels * `node_types`: an array of `google_compute_node_template` node_type * `node_type_flexibilities`: an array of `google_compute_node_template` node_type_flexibility - * `server_bindings`: (Beta only) an array of `google_compute_node_template` server_binding * `regions`: an array of `google_compute_node_template` region ## Filter Criteria diff --git a/docs/resources/google_compute_region.md b/docs/resources/google_compute_region.md index 3db48219d..2ade15f28 100644 --- a/docs/resources/google_compute_region.md +++ b/docs/resources/google_compute_region.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_region` is used to test a Google Region resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_region(project: 'chef-gcp-inspec', name: 'europe-west2') do diff --git a/docs/resources/google_compute_region_backend_service.md b/docs/resources/google_compute_region_backend_service.md index 3cce7ee56..ddc6e92c1 100644 --- a/docs/resources/google_compute_region_backend_service.md +++ b/docs/resources/google_compute_region_backend_service.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_region_backend_service` is used to test a Google RegionBackendService resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_region_backend_service(project: 'chef-gcp-inspec', region: 'europe-west2', name: 'inspec-gcp-region-backend-service') do @@ -28,8 +24,6 @@ end Properties that can be accessed from the `google_compute_region_backend_service` resource: - * `affinity_cookie_ttl_sec`: (Beta only) Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day. When the load balancing scheme is INTERNAL, this field is not used. - * `backends`: The set of backends that serve this RegionBackendService. * `balancing_mode`: Specifies the balancing mode for this backend. Defaults to CONNECTION. @@ -38,8 +32,6 @@ Properties that can be accessed from the `google_compute_region_backend_service` * `description`: An optional description of this resource. Provide this property when you create the resource. - * `failover`: (Beta only) This field designates whether this is a failover backend. More than one failover backend can be configured for a given RegionBackendService. - * `group`: The fully-qualified URL of an Instance Group or Network Endpoint Group resource. In case of instance group this defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource. For Network Endpoint Groups this defines list of endpoints. All endpoints of Network Endpoint Group must be hosted on instances located in the same zone as the Network Endpoint Group. Backend services cannot mix Instance Group and Network Endpoint Group backends. When the `load_balancing_scheme` is INTERNAL, only instance groups are supported. Note that you must specify an Instance Group or Network Endpoint Group resource using the fully-qualified URL, rather than a partial URL. * `max_connections`: The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or one of maxConnectionsPerInstance or maxConnectionsPerEndpoint, as appropriate for group type, must be set. @@ -56,42 +48,6 @@ Properties that can be accessed from the `google_compute_region_backend_service` * `max_utilization`: Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. Valid range is [0.0, 1.0]. - * `circuit_breakers`: (Beta only) Settings controlling the volume of connections to a backend service. This field is applicable only when the `load_balancing_scheme` is set to INTERNAL_MANAGED and the `protocol` is set to HTTP, HTTPS, or HTTP2. - - * `connect_timeout`: The timeout for new network connections to hosts. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive. - - * `max_requests_per_connection`: Maximum requests for a single backend connection. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. - - * `max_connections`: The maximum number of connections to the backend cluster. Defaults to 1024. - - * `max_pending_requests`: The maximum number of pending requests to the backend cluster. Defaults to 1024. - - * `max_requests`: The maximum number of parallel requests to the backend cluster. Defaults to 1024. - - * `max_retries`: The maximum number of parallel retries to the backend cluster. Defaults to 3. - - * `consistent_hash`: (Beta only) Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service. This field specifies parameters that control consistent hashing. This field only applies when all of the following are true - * `load_balancing_scheme` is set to INTERNAL_MANAGED * `protocol` is set to HTTP, HTTPS, or HTTP2 * `locality_lb_policy` is set to MAGLEV or RING_HASH - - * `http_cookie`: Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. - - * `ttl`: Lifetime of the cookie. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive. - - * `name`: Name of the cookie. - - * `path`: Path to set for the cookie. - - * `http_header_name`: The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD. - - * `minimum_ring_size`: The minimum number of virtual nodes to use for the hash ring. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node. Defaults to 1024. - * `connection_draining`: Settings for connection draining * `draining_timeout_sec`: Time for which instance will be drained (not accept new connections, but still work to finish started). @@ -100,14 +56,6 @@ Properties that can be accessed from the `google_compute_region_backend_service` * `description`: An optional description of this resource. - * `failover_policy`: (Beta only) Policy for failovers. - - * `disable_connection_drain_on_failover`: On failover or failback, this field indicates whether connection drain will be honored. Setting this to true has the following effect: connections to the old active pool are not drained. Connections to the new active pool use the timeout of 10 min (currently fixed). Setting to false has the following effect: both old and new connections will have a drain timeout of 10 min. This can be set to true only if the protocol is TCP. The default is false. - - * `drop_traffic_if_unhealthy`: This option is used only when no healthy VMs are detected in the primary and backup instance groups. When set to true, traffic is dropped. When set to false, new connections are sent across all VMs in the primary group. The default is false. - - * `failover_ratio`: The value of the field must be in [0, 1]. If the ratio of the healthy VMs in the primary backend is at or below this number, traffic arriving at the load-balanced IP will be directed to the failover backend. In case where 'failoverRatio' is not set or all the VMs in the backup backend are unhealthy, the traffic will be directed back to the primary backend in the "force" mode, where traffic will be spread to the healthy VMs with the best effort, or to all VMs when no VM is healthy. This field is only used with l4 load balancing. - * `fingerprint`: Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. * `health_checks`: The set of URLs to HealthCheck resources for health checking this RegionBackendService. Currently at most one health check can be specified, and a health check is required. @@ -116,56 +64,14 @@ Properties that can be accessed from the `google_compute_region_backend_service` * `load_balancing_scheme`: Indicates what kind of load balancing this regional backend service will be used for. A backend service created for one type of load balancing cannot be used with the other(s). Must be `INTERNAL` or `INTERNAL_MANAGED`. Defaults to `INTERNAL`. - * `locality_lb_policy`: (Beta only) The load balancing algorithm used within the scope of the locality. The possible values are - ROUND_ROBIN - This is a simple policy in which each healthy backend is selected in round robin order. LEAST_REQUEST - An O(1) algorithm which selects two random healthy hosts and picks the host which has fewer active requests. RING_HASH - The ring/modulo hash load balancer implements consistent hashing to backends. The algorithm has the property that the addition/removal of a host from a set of N hosts only affects 1/N of the requests. RANDOM - The load balancer selects a random healthy host. ORIGINAL_DESTINATION - Backend host is selected based on the client connection metadata, i.e., connections are opened to the same address as the destination address of the incoming connection before the connection was redirected to the load balancer. MAGLEV - used as a drop in replacement for the ring hash load balancer. Maglev is not as stable as ring hash but has faster table lookup build times and host selection times. For more information about Maglev, refer to https://ai.google/research/pubs/pub44824 This field is applicable only when the `load_balancing_scheme` is set to INTERNAL_MANAGED and the `protocol` is set to HTTP, HTTPS, or HTTP2. - * `name`: Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must 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 characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. - * `outlier_detection`: (Beta only) Settings controlling eviction of unhealthy hosts from the load balancing pool. This field is applicable only when the `load_balancing_scheme` is set to INTERNAL_MANAGED and the `protocol` is set to HTTP, HTTPS, or HTTP2. - - * `base_ejection_time`: The base time that a host is ejected for. The real time is equal to the base time multiplied by the number of times the host has been ejected. Defaults to 30000ms or 30s. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. - - * `consecutive_errors`: Number of errors before a host is ejected from the connection pool. When the backend host is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. - - * `consecutive_gateway_failure`: The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 5. - - * `enforcing_consecutive_errors`: The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. - - * `enforcing_consecutive_gateway_failure`: The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0. - - * `enforcing_success_rate`: The percentage chance that a host will be actually ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. - - * `interval`: Time interval between ejection sweep analysis. This can result in both new ejections as well as hosts being returned to service. Defaults to 10 seconds. - - * `seconds`: Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. - - * `nanos`: Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive. - - * `max_ejection_percent`: Maximum percentage of hosts in the load balancing pool for the backend service that can be ejected. Defaults to 10%. - - * `success_rate_minimum_hosts`: The number of hosts in a cluster that must have enough request volume to detect success rate outliers. If the number of hosts is less than this setting, outlier detection via success rate statistics is not performed for any host in the cluster. Defaults to 5. - - * `success_rate_request_volume`: The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this host in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that host. Defaults to 100. - - * `success_rate_stdev_factor`: This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * success_rate_stdev_factor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. - * `protocol`: The protocol this RegionBackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, SSL, TCP, and UDP. The default is HTTP. **NOTE**: HTTP2 is only valid for beta HTTP/2 load balancer types and may result in errors if used with the GA API. * `session_affinity`: Type of session affinity to use. The default is NONE. Session affinity is not applicable if the protocol is UDP. * `timeout_sec`: How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. Valid range is [1, 86400]. - * `log_config`: (Beta only) This field denotes the logging options for the load balancer traffic served by this backend service. If logging is enabled, logs will be exported to Stackdriver. - - * `enable`: Whether to enable logging for the load balancer traffic served by this backend service. - - * `sample_rate`: This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0. - - * `network`: (Beta only) The URL of the network to which this backend service belongs. This field can only be specified when the load balancing scheme is set to INTERNAL. - * `region`: A reference to the region where the regional backend service resides. diff --git a/docs/resources/google_compute_region_backend_services.md b/docs/resources/google_compute_region_backend_services.md index 72a9f5417..6e6a98fba 100644 --- a/docs/resources/google_compute_region_backend_services.md +++ b/docs/resources/google_compute_region_backend_services.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_region_backend_services` is used to test a Google RegionBackendService resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_region_backend_services(project: 'chef-gcp-inspec', region: 'europe-west2') do @@ -24,26 +20,18 @@ end Properties that can be accessed from the `google_compute_region_backend_services` resource: See [google_compute_region_backend_service.md](google_compute_region_backend_service.md) for more detailed information - * `affinity_cookie_ttl_secs`: (Beta only) an array of `google_compute_region_backend_service` affinity_cookie_ttl_sec * `backends`: an array of `google_compute_region_backend_service` backends - * `circuit_breakers`: (Beta only) an array of `google_compute_region_backend_service` circuit_breakers - * `consistent_hashes`: (Beta only) an array of `google_compute_region_backend_service` consistent_hash * `connection_drainings`: an array of `google_compute_region_backend_service` connection_draining * `creation_timestamps`: an array of `google_compute_region_backend_service` creation_timestamp * `descriptions`: an array of `google_compute_region_backend_service` description - * `failover_policies`: (Beta only) an array of `google_compute_region_backend_service` failover_policy * `fingerprints`: an array of `google_compute_region_backend_service` fingerprint * `health_checks`: an array of `google_compute_region_backend_service` health_checks * `ids`: an array of `google_compute_region_backend_service` id * `load_balancing_schemes`: an array of `google_compute_region_backend_service` load_balancing_scheme - * `locality_lb_policies`: (Beta only) an array of `google_compute_region_backend_service` locality_lb_policy * `names`: an array of `google_compute_region_backend_service` name - * `outlier_detections`: (Beta only) an array of `google_compute_region_backend_service` outlier_detection * `protocols`: an array of `google_compute_region_backend_service` protocol * `session_affinities`: an array of `google_compute_region_backend_service` session_affinity * `timeout_secs`: an array of `google_compute_region_backend_service` timeout_sec - * `log_configs`: (Beta only) an array of `google_compute_region_backend_service` log_config - * `networks`: (Beta only) an array of `google_compute_region_backend_service` network * `regions`: an array of `google_compute_region_backend_service` region ## Filter Criteria diff --git a/docs/resources/google_compute_region_instance_group_manager.md b/docs/resources/google_compute_region_instance_group_manager.md index 060aeba36..88e0a2f34 100644 --- a/docs/resources/google_compute_region_instance_group_manager.md +++ b/docs/resources/google_compute_region_instance_group_manager.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_region_instance_group_manager` is used to test a Google RegionInstanceGroupManager resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_region_instance_group_manager(project: 'chef-gcp-inspec', region: 'europe-west2', name: 'inspec-rigm') do diff --git a/docs/resources/google_compute_region_instance_group_managers.md b/docs/resources/google_compute_region_instance_group_managers.md index 723129dac..6dd594045 100644 --- a/docs/resources/google_compute_region_instance_group_managers.md +++ b/docs/resources/google_compute_region_instance_group_managers.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_region_instance_group_managers` is used to test a Google RegionInstanceGroupManager resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_region_instance_group_managers(project: 'chef-gcp-inspec', region: 'europe-west2') do diff --git a/docs/resources/google_compute_regions.md b/docs/resources/google_compute_regions.md index e7b96f988..626a01a24 100644 --- a/docs/resources/google_compute_regions.md +++ b/docs/resources/google_compute_regions.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_regions` is used to test a Google Region resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_regions(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_route.md b/docs/resources/google_compute_route.md index c41491f99..4c55bd74c 100644 --- a/docs/resources/google_compute_route.md +++ b/docs/resources/google_compute_route.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_route` is used to test a Google Route resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_route(project: 'chef-gcp-inspec', name: 'inspec-gcp-route') do diff --git a/docs/resources/google_compute_router.md b/docs/resources/google_compute_router.md index def49b8f4..100ff0bf8 100644 --- a/docs/resources/google_compute_router.md +++ b/docs/resources/google_compute_router.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_router` is used to test a Google Router resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_router(project: 'chef-gcp-inspec', region: 'europe-west2', name: 'inspec-gcp-router') do diff --git a/docs/resources/google_compute_router_nat.md b/docs/resources/google_compute_router_nat.md index f2be1a470..e2fae89fe 100644 --- a/docs/resources/google_compute_router_nat.md +++ b/docs/resources/google_compute_router_nat.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_router_nat` is used to test a Google RouterNat resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_router_nat(project: 'chef-gcp-inspec', region: 'europe-west2', router: 'inspec-gcp-router', name: 'inspec-router-nat') do @@ -36,8 +32,6 @@ Properties that can be accessed from the `google_compute_router_nat` resource: * `nat_ips`: Self-links of NAT IPs. Only valid if natIpAllocateOption is set to MANUAL_ONLY. - * `drain_nat_ips`: (Beta only) A list of URLs of the IP resources to be drained. These IPs must be valid static external IPs that have been assigned to the NAT. - * `source_subnetwork_ip_ranges_to_nat`: How NAT should be configured per Subnetwork. If `ALL_SUBNETWORKS_ALL_IP_RANGES`, all of the IP ranges in every Subnetwork are allowed to Nat. If `ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES`, all of the primary IP ranges in every Subnetwork are allowed to Nat. `LIST_OF_SUBNETWORKS`: A list of Subnetworks are allowed to Nat (specified in the field subnetwork below). Note that if this field contains ALL_SUBNETWORKS_ALL_IP_RANGES or ALL_SUBNETWORKS_ALL_PRIMARY_IP_RANGES, then there should not be any other RouterNat section in any Router for this network in this region. * `subnetwork`: One or more subnetwork NAT configurations. Only used if `source_subnetwork_ip_ranges_to_nat` is set to `LIST_OF_SUBNETWORKS` diff --git a/docs/resources/google_compute_router_nats.md b/docs/resources/google_compute_router_nats.md index d18ecbee1..5e5558c07 100644 --- a/docs/resources/google_compute_router_nats.md +++ b/docs/resources/google_compute_router_nats.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_router_nats` is used to test a Google RouterNat resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_router_nats(project: 'chef-gcp-inspec', region: 'europe-west2', router: 'inspec-gcp-router') do @@ -24,7 +20,6 @@ See [google_compute_router_nat.md](google_compute_router_nat.md) for more detail * `names`: an array of `google_compute_router_nat` name * `nat_ip_allocate_options`: an array of `google_compute_router_nat` nat_ip_allocate_option * `nat_ips`: an array of `google_compute_router_nat` nat_ips - * `drain_nat_ips`: (Beta only) an array of `google_compute_router_nat` drain_nat_ips * `source_subnetwork_ip_ranges_to_nats`: an array of `google_compute_router_nat` source_subnetwork_ip_ranges_to_nat * `subnetworks`: an array of `google_compute_router_nat` subnetwork * `min_ports_per_vms`: an array of `google_compute_router_nat` min_ports_per_vm diff --git a/docs/resources/google_compute_routers.md b/docs/resources/google_compute_routers.md index 8905a8f10..56e203753 100644 --- a/docs/resources/google_compute_routers.md +++ b/docs/resources/google_compute_routers.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_routers` is used to test a Google Router resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_routers(project: 'chef-gcp-inspec', region: 'europe-west2') do diff --git a/docs/resources/google_compute_routes.md b/docs/resources/google_compute_routes.md index 9b14c3b53..8097a96f8 100644 --- a/docs/resources/google_compute_routes.md +++ b/docs/resources/google_compute_routes.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_routes` is used to test a Google Route resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_routes(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_snapshot.md b/docs/resources/google_compute_snapshot.md index d84db230e..bcf011471 100644 --- a/docs/resources/google_compute_snapshot.md +++ b/docs/resources/google_compute_snapshot.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_snapshot` is used to test a Google Snapshot resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_snapshots.md b/docs/resources/google_compute_snapshots.md index 519b5d1ef..55f391fb7 100644 --- a/docs/resources/google_compute_snapshots.md +++ b/docs/resources/google_compute_snapshots.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_snapshots` is used to test a Google Snapshot resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` diff --git a/docs/resources/google_compute_ssl_certificate.md b/docs/resources/google_compute_ssl_certificate.md index 4860b7ec0..ec13992b9 100644 --- a/docs/resources/google_compute_ssl_certificate.md +++ b/docs/resources/google_compute_ssl_certificate.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_ssl_certificate` is used to test a Google SslCertificate resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_ssl_certificate(project: 'chef-gcp-inspec', name: 'inspec-gcp-ssl-certificate') do diff --git a/docs/resources/google_compute_ssl_certificates.md b/docs/resources/google_compute_ssl_certificates.md index 97d2bc9ce..6bd3a253e 100644 --- a/docs/resources/google_compute_ssl_certificates.md +++ b/docs/resources/google_compute_ssl_certificates.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_ssl_certificates` is used to test a Google SslCertificate resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_ssl_certificates(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_ssl_policies.md b/docs/resources/google_compute_ssl_policies.md index c3ab56520..de48b3d2a 100644 --- a/docs/resources/google_compute_ssl_policies.md +++ b/docs/resources/google_compute_ssl_policies.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_ssl_policies` is used to test a Google SslPolicy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_ssl_policies(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_ssl_policy.md b/docs/resources/google_compute_ssl_policy.md index 533a5705f..7b43d1b02 100644 --- a/docs/resources/google_compute_ssl_policy.md +++ b/docs/resources/google_compute_ssl_policy.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_ssl_policy` is used to test a Google SslPolicy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_ssl_policy(project: 'chef-gcp-inspec', name: 'inspec-gcp-ssl-policy') do diff --git a/docs/resources/google_compute_subnetwork.md b/docs/resources/google_compute_subnetwork.md index 902859e46..01f5b1f6c 100644 --- a/docs/resources/google_compute_subnetwork.md +++ b/docs/resources/google_compute_subnetwork.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_subnetwork` is used to test a Google Subnetwork resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_subnetwork(project: 'chef-gcp-inspec', region: 'europe-west2', name: 'inspec-subnet') do @@ -86,10 +82,6 @@ Properties that can be accessed from the `google_compute_subnetwork` resource: * `network`: The network this subnet belongs to. Only networks that are in the distributed mode can have subnetworks. - * `purpose`: (Beta only) The purpose of the resource. This field can be either PRIVATE or INTERNAL_HTTPS_LOAD_BALANCER. A subnetwork with purpose set to INTERNAL_HTTPS_LOAD_BALANCER is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing. If unspecified, the purpose defaults to PRIVATE. If set to INTERNAL_HTTPS_LOAD_BALANCER you must also set the role. - - * `role`: (Beta only) The role of subnetwork. Currently, this field is only used when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that is ready to be promoted to ACTIVE or is currently draining. - * `secondary_ip_ranges`: An array of configurations for secondary IP ranges for VM instances contained in this subnetwork. The primary IP of such VM must belong to the primary ipCidrRange of the subnetwork. The alias IPs may belong to either primary or secondary ranges. * `range_name`: The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork. diff --git a/docs/resources/google_compute_subnetworks.md b/docs/resources/google_compute_subnetworks.md index 2e0773c95..c6a137e2c 100644 --- a/docs/resources/google_compute_subnetworks.md +++ b/docs/resources/google_compute_subnetworks.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_subnetworks` is used to test a Google Subnetwork resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_subnetworks(project: 'chef-gcp-inspec', region: 'europe-west2') do @@ -29,8 +25,6 @@ See [google_compute_subnetwork.md](google_compute_subnetwork.md) for more detail * `ip_cidr_ranges`: an array of `google_compute_subnetwork` ip_cidr_range * `subnetwork_names`: an array of `google_compute_subnetwork` name * `networks`: an array of `google_compute_subnetwork` network - * `purposes`: (Beta only) an array of `google_compute_subnetwork` purpose - * `roles`: (Beta only) an array of `google_compute_subnetwork` role * `secondary_ip_ranges`: an array of `google_compute_subnetwork` secondary_ip_ranges * `private_ip_google_accesses`: an array of `google_compute_subnetwork` private_ip_google_access * `regions`: an array of `google_compute_subnetwork` region diff --git a/docs/resources/google_compute_target_http_proxies.md b/docs/resources/google_compute_target_http_proxies.md index e81a275bc..dd91b6254 100644 --- a/docs/resources/google_compute_target_http_proxies.md +++ b/docs/resources/google_compute_target_http_proxies.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_http_proxies` is used to test a Google TargetHttpProxy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_http_proxies(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_target_http_proxy.md b/docs/resources/google_compute_target_http_proxy.md index 8d0d485f4..8a382d076 100644 --- a/docs/resources/google_compute_target_http_proxy.md +++ b/docs/resources/google_compute_target_http_proxy.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_http_proxy` is used to test a Google TargetHttpProxy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_http_proxy(project: 'chef-gcp-inspec', name: 'inspec-gcp-http-proxy') do diff --git a/docs/resources/google_compute_target_https_proxies.md b/docs/resources/google_compute_target_https_proxies.md index a95f18f12..ec709dae4 100644 --- a/docs/resources/google_compute_target_https_proxies.md +++ b/docs/resources/google_compute_target_https_proxies.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_https_proxies` is used to test a Google TargetHttpsProxy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_https_proxies(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_target_https_proxy.md b/docs/resources/google_compute_target_https_proxy.md index 548817444..59b8d8eed 100644 --- a/docs/resources/google_compute_target_https_proxy.md +++ b/docs/resources/google_compute_target_https_proxy.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_https_proxy` is used to test a Google TargetHttpsProxy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_https_proxy(project: 'chef-gcp-inspec', name: 'inspec-gcp-https-proxy') do diff --git a/docs/resources/google_compute_target_pool.md b/docs/resources/google_compute_target_pool.md index 556fee347..621fdac5c 100644 --- a/docs/resources/google_compute_target_pool.md +++ b/docs/resources/google_compute_target_pool.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_pool` is used to test a Google TargetPool resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_pool(project: 'chef-gcp-inspec', region: 'europe-west2', name: 'inspec-gcp-target-pool') do diff --git a/docs/resources/google_compute_target_pools.md b/docs/resources/google_compute_target_pools.md index 0abe4fff8..b1a3d8b3d 100644 --- a/docs/resources/google_compute_target_pools.md +++ b/docs/resources/google_compute_target_pools.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_pools` is used to test a Google TargetPool resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_pools(project: 'chef-gcp-inspec', region: 'europe-west2') do diff --git a/docs/resources/google_compute_target_tcp_proxies.md b/docs/resources/google_compute_target_tcp_proxies.md index 73e9a051c..d10ea1bb5 100644 --- a/docs/resources/google_compute_target_tcp_proxies.md +++ b/docs/resources/google_compute_target_tcp_proxies.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_tcp_proxies` is used to test a Google TargetTcpProxy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_tcp_proxies(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_target_tcp_proxy.md b/docs/resources/google_compute_target_tcp_proxy.md index 0cfc90a89..3dc20f07f 100644 --- a/docs/resources/google_compute_target_tcp_proxy.md +++ b/docs/resources/google_compute_target_tcp_proxy.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_target_tcp_proxy` is used to test a Google TargetTcpProxy resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_target_tcp_proxy(project: 'chef-gcp-inspec', name: 'inspec-gcp-target-tcp-proxy') do diff --git a/docs/resources/google_compute_url_map.md b/docs/resources/google_compute_url_map.md index daf0c78ba..8359f2f0e 100644 --- a/docs/resources/google_compute_url_map.md +++ b/docs/resources/google_compute_url_map.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_url_map` is used to test a Google UrlMap resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_url_map(project: 'chef-gcp-inspec', name: 'inspec-gcp-url-map') do diff --git a/docs/resources/google_compute_url_maps.md b/docs/resources/google_compute_url_maps.md index 97def2c13..a77dbdcdc 100644 --- a/docs/resources/google_compute_url_maps.md +++ b/docs/resources/google_compute_url_maps.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_url_maps` is used to test a Google UrlMap resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_url_maps(project: 'chef-gcp-inspec') do diff --git a/docs/resources/google_compute_vpn_tunnel.md b/docs/resources/google_compute_vpn_tunnel.md index 506e53a2f..dce84b4cf 100644 --- a/docs/resources/google_compute_vpn_tunnel.md +++ b/docs/resources/google_compute_vpn_tunnel.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_vpn_tunnel` is used to test a Google VpnTunnel resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_vpn_tunnel(project: 'chef-gcp-inspec', region: 'europe-west2', name: 'inspec-vpn-tunnel') do @@ -36,16 +32,6 @@ Properties that can be accessed from the `google_compute_vpn_tunnel` resource: * `target_vpn_gateway`: URL of the Target VPN gateway with which this VPN tunnel is associated. - * `vpn_gateway`: (Beta only) URL of the VPN gateway with which this VPN tunnel is associated. This must be used if a High Availability VPN gateway resource is created. - - * `vpn_gateway_interface`: (Beta only) The interface ID of the VPN gateway with which this VPN tunnel is associated. - - * `peer_external_gateway`: (Beta only) URL of the peer side external VPN gateway to which this VPN tunnel is connected. - - * `peer_external_gateway_interface`: (Beta only) The interface ID of the external VPN gateway to which this VPN tunnel is connected. - - * `peer_gcp_gateway`: (Beta only) URL of the peer side HA GCP VPN gateway to which this VPN tunnel is connected. If provided, the VPN tunnel will automatically use the same vpn_gateway_interface ID in the peer GCP VPN gateway. - * `router`: URL of router resource to be used for dynamic routing. * `peer_ip`: IP address of the peer VPN gateway. Only IPv4 is supported. @@ -60,10 +46,6 @@ Properties that can be accessed from the `google_compute_vpn_tunnel` resource: * `remote_traffic_selector`: Remote traffic selector to use when establishing the VPN tunnel with peer VPN gateway. The value should be a CIDR formatted string, for example `192.168.0.0/16`. The ranges should be disjoint. Only IPv4 is supported. - * `labels`: (Beta only) Labels to apply to this VpnTunnel. - - * `label_fingerprint`: (Beta only) The fingerprint used for optimistic locking of this resource. Used internally during updates. - * `region`: The region where the tunnel is located. diff --git a/docs/resources/google_compute_vpn_tunnels.md b/docs/resources/google_compute_vpn_tunnels.md index ffe7a345e..f58a94cdb 100644 --- a/docs/resources/google_compute_vpn_tunnels.md +++ b/docs/resources/google_compute_vpn_tunnels.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_vpn_tunnels` is used to test a Google VpnTunnel resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_vpn_tunnels(project: 'chef-gcp-inspec', region: 'europe-west2') do @@ -27,11 +23,6 @@ See [google_compute_vpn_tunnel.md](google_compute_vpn_tunnel.md) for more detail * `vpn_tunnel_names`: an array of `google_compute_vpn_tunnel` name * `descriptions`: an array of `google_compute_vpn_tunnel` description * `target_vpn_gateways`: an array of `google_compute_vpn_tunnel` target_vpn_gateway - * `vpn_gateways`: (Beta only) an array of `google_compute_vpn_tunnel` vpn_gateway - * `vpn_gateway_interfaces`: (Beta only) an array of `google_compute_vpn_tunnel` vpn_gateway_interface - * `peer_external_gateways`: (Beta only) an array of `google_compute_vpn_tunnel` peer_external_gateway - * `peer_external_gateway_interfaces`: (Beta only) an array of `google_compute_vpn_tunnel` peer_external_gateway_interface - * `peer_gcp_gateways`: (Beta only) an array of `google_compute_vpn_tunnel` peer_gcp_gateway * `routers`: an array of `google_compute_vpn_tunnel` router * `peer_ips`: an array of `google_compute_vpn_tunnel` peer_ip * `shared_secrets`: an array of `google_compute_vpn_tunnel` shared_secret @@ -39,8 +30,6 @@ See [google_compute_vpn_tunnel.md](google_compute_vpn_tunnel.md) for more detail * `ike_versions`: an array of `google_compute_vpn_tunnel` ike_version * `local_traffic_selectors`: an array of `google_compute_vpn_tunnel` local_traffic_selector * `remote_traffic_selectors`: an array of `google_compute_vpn_tunnel` remote_traffic_selector - * `labels`: (Beta only) an array of `google_compute_vpn_tunnel` labels - * `label_fingerprints`: (Beta only) an array of `google_compute_vpn_tunnel` label_fingerprint * `regions`: an array of `google_compute_vpn_tunnel` region ## Filter Criteria diff --git a/docs/resources/google_compute_zone.md b/docs/resources/google_compute_zone.md index c0c9b07e3..0dcaa2bfb 100644 --- a/docs/resources/google_compute_zone.md +++ b/docs/resources/google_compute_zone.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_zone` is used to test a Google Zone resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_compute_zone(project: 'chef-gcp-inspec', name: "us-central1-a") do diff --git a/docs/resources/google_compute_zones.md b/docs/resources/google_compute_zones.md index 86d9b9be5..12a2ccb1a 100644 --- a/docs/resources/google_compute_zones.md +++ b/docs/resources/google_compute_zones.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_compute_zones` is used to test a Google Zone resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` google_compute_zones(project: 'chef-gcp-inspec').zone_names.each do |zone_name| diff --git a/docs/resources/google_container_cluster.md b/docs/resources/google_container_cluster.md index 4a23b0c69..0ea50408b 100644 --- a/docs/resources/google_container_cluster.md +++ b/docs/resources/google_container_cluster.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_container_cluster` is used to test a Google Cluster resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_container_cluster(project: 'chef-gcp-inspec', location: 'europe-west2-a', name: 'gcp-inspec-kube-cluster') do diff --git a/docs/resources/google_container_clusters.md b/docs/resources/google_container_clusters.md index ab92e8552..dc23939bd 100644 --- a/docs/resources/google_container_clusters.md +++ b/docs/resources/google_container_clusters.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_container_clusters` is used to test a Google Cluster resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_container_clusters(project: 'chef-gcp-inspec', location: 'europe-west2-a') do diff --git a/docs/resources/google_container_node_pool.md b/docs/resources/google_container_node_pool.md index 1b84593d9..7726814ab 100644 --- a/docs/resources/google_container_node_pool.md +++ b/docs/resources/google_container_node_pool.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_container_node_pool` is used to test a Google NodePool resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_container_node_pool(project: 'chef-gcp-inspec', location: 'europe-west2-a', cluster_name: 'gcp-inspec-kube-cluster', nodepool_name: 'inspec-gcp-regional-node-pool') do diff --git a/docs/resources/google_container_node_pools.md b/docs/resources/google_container_node_pools.md index 3ddf7ebc8..8986c575d 100644 --- a/docs/resources/google_container_node_pools.md +++ b/docs/resources/google_container_node_pools.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_container_node_pools` is used to test a Google NodePool resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_container_node_pools(project: 'chef-gcp-inspec', location: 'europe-west2-a', cluster_name: 'gcp-inspec-kube-cluster') do diff --git a/docs/resources/google_dataproc_cluster.md b/docs/resources/google_dataproc_cluster.md index e1d1437aa..f78295b87 100644 --- a/docs/resources/google_dataproc_cluster.md +++ b/docs/resources/google_dataproc_cluster.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_dataproc_cluster` is used to test a Google Cluster resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_dataproc_cluster(project: 'chef-gcp-inspec', region: 'europe-west2', cluster_name: 'inspec-dataproc-cluster') do diff --git a/docs/resources/google_dataproc_clusters.md b/docs/resources/google_dataproc_clusters.md index 39371b642..398698731 100644 --- a/docs/resources/google_dataproc_clusters.md +++ b/docs/resources/google_dataproc_clusters.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_dataproc_clusters` is used to test a Google Cluster resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_dataproc_clusters(project: 'chef-gcp-inspec', region: 'europe-west2') do diff --git a/docs/resources/google_dns_managed_zone.md b/docs/resources/google_dns_managed_zone.md index 9618802d9..2777aaf9c 100644 --- a/docs/resources/google_dns_managed_zone.md +++ b/docs/resources/google_dns_managed_zone.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_dns_managed_zone` is used to test a Google ManagedZone resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_dns_managed_zone(project: 'chef-gcp-inspec', zone: 'example-zone') do @@ -72,18 +68,6 @@ Properties that can be accessed from the `google_dns_managed_zone` resource: * `network_url`: The fully qualified URL of the VPC network to bind to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` - * `forwarding_config`: (Beta only) The presence for this field indicates that outbound forwarding is enabled for this zone. The value of this field contains the set of destinations to forward to. - - * `target_name_servers`: List of target name servers to forward to. Cloud DNS will select the best available name server if more than one target is given. - - * `ipv4_address`: IPv4 address of a target name server. - - * `peering_config`: (Beta only) The presence of this field indicates that DNS Peering is enabled for this zone. The value of this field contains the network to peer with. - - * `target_network`: The network with which to peer. - - * `network_url`: The fully qualified URL of the VPC network to forward queries to. This should be formatted like `https://www.googleapis.com/compute/v1/projects/{project}/global/networks/{network}` - ## GCP Permissions diff --git a/docs/resources/google_dns_managed_zones.md b/docs/resources/google_dns_managed_zones.md index 2256e38da..89be58705 100644 --- a/docs/resources/google_dns_managed_zones.md +++ b/docs/resources/google_dns_managed_zones.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_dns_managed_zones` is used to test a Google ManagedZone resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_dns_managed_zones(project: 'chef-gcp-inspec') do @@ -34,8 +30,6 @@ See [google_dns_managed_zone.md](google_dns_managed_zone.md) for more detailed i * `labels`: an array of `google_dns_managed_zone` labels * `visibilities`: an array of `google_dns_managed_zone` visibility * `private_visibility_configs`: an array of `google_dns_managed_zone` private_visibility_config - * `forwarding_configs`: (Beta only) an array of `google_dns_managed_zone` forwarding_config - * `peering_configs`: (Beta only) an array of `google_dns_managed_zone` peering_config ## Filter Criteria This resource supports all of the above properties as filter criteria, which can be used diff --git a/docs/resources/google_dns_resource_record_set.md b/docs/resources/google_dns_resource_record_set.md index aa4896568..2f95b898e 100644 --- a/docs/resources/google_dns_resource_record_set.md +++ b/docs/resources/google_dns_resource_record_set.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_dns_resource_record_set` is used to test a Google ResourceRecordSet resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_dns_resource_record_set(project: 'chef-gcp-inspec', name: 'backend.my.domain.com.', type: 'A', managed_zone: 'inspec-gcp-managed-zone') do diff --git a/docs/resources/google_dns_resource_record_sets.md b/docs/resources/google_dns_resource_record_sets.md index dfaa7471f..b1c5dce02 100644 --- a/docs/resources/google_dns_resource_record_sets.md +++ b/docs/resources/google_dns_resource_record_sets.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_dns_resource_record_sets` is used to test a Google ResourceRecordSet resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_dns_resource_record_sets(project: 'chef-gcp-inspec', name: 'backend.my.domain.com.', managed_zone: 'inspec-gcp-managed-zone') do diff --git a/docs/resources/google_redis_instance.md b/docs/resources/google_redis_instance.md index a615ba816..08b8c9eca 100644 --- a/docs/resources/google_redis_instance.md +++ b/docs/resources/google_redis_instance.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_redis_instance` is used to test a Google Instance resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_redis_instance(project: 'chef-gcp-inspec', region: 'us-central1', name: 'my-redis-cache') do diff --git a/docs/resources/google_redis_instances.md b/docs/resources/google_redis_instances.md index 417b92f0a..28d4a9c64 100644 --- a/docs/resources/google_redis_instances.md +++ b/docs/resources/google_redis_instances.md @@ -6,10 +6,6 @@ platform: gcp ## Syntax A `google_redis_instances` is used to test a Google Instance resource - -## Beta Resource -This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource - ## Examples ``` describe google_redis_instances(project: 'chef-gcp-inspec', region: 'us-central1') do diff --git a/libraries/google/compute/property/autoscaler_autoscaling_policy_custom_metric_utilizations.rb b/libraries/google/compute/property/autoscaler_autoscaling_policy_custom_metric_utilizations.rb index 0d222e199..a9b176c5d 100644 --- a/libraries/google/compute/property/autoscaler_autoscaling_policy_custom_metric_utilizations.rb +++ b/libraries/google/compute/property/autoscaler_autoscaling_policy_custom_metric_utilizations.rb @@ -19,22 +19,16 @@ module Property class AutoscalerAutoscalingPolicyCustomMetricUtilizations attr_reader :metric - attr_reader :single_instance_assignment - attr_reader :utilization_target attr_reader :utilization_target_type - attr_reader :filter - def initialize(args = nil, parent_identifier = nil) return if args.nil? @parent_identifier = parent_identifier @metric = args['metric'] - @single_instance_assignment = args['singleInstanceAssignment'] @utilization_target = args['utilizationTarget'] @utilization_target_type = args['utilizationTargetType'] - @filter = args['filter'] end def to_s diff --git a/libraries/google/compute/property/regionbackendservice_backends.rb b/libraries/google/compute/property/regionbackendservice_backends.rb index 813305a27..13d14ef8f 100644 --- a/libraries/google/compute/property/regionbackendservice_backends.rb +++ b/libraries/google/compute/property/regionbackendservice_backends.rb @@ -23,8 +23,6 @@ class RegionBackendServiceBackends attr_reader :description - attr_reader :failover - attr_reader :group attr_reader :max_connections @@ -47,7 +45,6 @@ def initialize(args = nil, parent_identifier = nil) @balancing_mode = args['balancingMode'] @capacity_scaler = args['capacityScaler'] @description = args['description'] - @failover = args['failover'] @group = args['group'] @max_connections = args['maxConnections'] @max_connections_per_instance = args['maxConnectionsPerInstance'] diff --git a/libraries/google_cloudbuild_trigger.rb b/libraries/google_cloudbuild_trigger.rb index bfaaa0bdb..6c58499d4 100644 --- a/libraries/google_cloudbuild_trigger.rb +++ b/libraries/google_cloudbuild_trigger.rb @@ -16,9 +16,6 @@ require 'gcp_backend' require 'google/cloudbuild/property/trigger_build' require 'google/cloudbuild/property/trigger_build_steps' -require 'google/cloudbuild/property/trigger_github' -require 'google/cloudbuild/property/trigger_github_pull_request' -require 'google/cloudbuild/property/trigger_github_push' require 'google/cloudbuild/property/trigger_trigger_template' # A provider to manage Cloud Build resources. @@ -38,7 +35,6 @@ class CloudBuildTrigger < GcpResourceBase attr_reader :ignored_files attr_reader :included_files attr_reader :trigger_template - attr_reader :github attr_reader :build def initialize(params) @@ -59,7 +55,6 @@ def parse @ignored_files = @fetched['ignoredFiles'] @included_files = @fetched['includedFiles'] @trigger_template = GoogleInSpec::CloudBuild::Property::TriggerTriggerTemplate.new(@fetched['triggerTemplate'], to_s) - @github = GoogleInSpec::CloudBuild::Property::TriggerGithub.new(@fetched['github'], to_s) @build = GoogleInSpec::CloudBuild::Property::TriggerBuild.new(@fetched['build'], to_s) end diff --git a/libraries/google_cloudbuild_triggers.rb b/libraries/google_cloudbuild_triggers.rb index cf37649dd..5f3c5e91e 100644 --- a/libraries/google_cloudbuild_triggers.rb +++ b/libraries/google_cloudbuild_triggers.rb @@ -33,7 +33,6 @@ class CloudBuildTriggers < GcpResourceBase filter_table_config.add(:ignored_files, field: :ignored_files) filter_table_config.add(:included_files, field: :included_files) filter_table_config.add(:trigger_templates, field: :trigger_template) - filter_table_config.add(:githubs, field: :github) filter_table_config.add(:builds, field: :build) filter_table_config.connect(self, :table) @@ -84,7 +83,6 @@ def transformers 'ignoredFiles' => ->(obj) { return :ignored_files, obj['ignoredFiles'] }, 'includedFiles' => ->(obj) { return :included_files, obj['includedFiles'] }, 'triggerTemplate' => ->(obj) { return :trigger_template, GoogleInSpec::CloudBuild::Property::TriggerTriggerTemplate.new(obj['triggerTemplate'], to_s) }, - 'github' => ->(obj) { return :github, GoogleInSpec::CloudBuild::Property::TriggerGithub.new(obj['github'], to_s) }, 'build' => ->(obj) { return :build, GoogleInSpec::CloudBuild::Property::TriggerBuild.new(obj['build'], to_s) }, } end diff --git a/libraries/google_compute_address.rb b/libraries/google_compute_address.rb index fe1562dd9..33fe0e1a7 100644 --- a/libraries/google_compute_address.rb +++ b/libraries/google_compute_address.rb @@ -32,8 +32,6 @@ class ComputeAddress < GcpResourceBase attr_reader :network_tier attr_reader :subnetwork attr_reader :users - attr_reader :labels - attr_reader :label_fingerprint attr_reader :status attr_reader :region @@ -55,8 +53,6 @@ def parse @network_tier = @fetched['networkTier'] @subnetwork = @fetched['subnetwork'] @users = @fetched['users'] - @labels = @fetched['labels'] - @label_fingerprint = @fetched['labelFingerprint'] @status = @fetched['status'] @region = @fetched['region'] end @@ -91,12 +87,8 @@ def user_resource_name private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_addresses.rb b/libraries/google_compute_addresses.rb index 311d5fb3f..7e49764be 100644 --- a/libraries/google_compute_addresses.rb +++ b/libraries/google_compute_addresses.rb @@ -33,8 +33,6 @@ class ComputeAddresss < GcpResourceBase filter_table_config.add(:network_tiers, field: :network_tier) filter_table_config.add(:subnetworks, field: :subnetwork) filter_table_config.add(:users, field: :users) - filter_table_config.add(:labels, field: :labels) - filter_table_config.add(:label_fingerprints, field: :label_fingerprint) filter_table_config.add(:statuses, field: :status) filter_table_config.add(:regions, field: :region) @@ -86,8 +84,6 @@ def transformers 'networkTier' => ->(obj) { return :network_tier, obj['networkTier'] }, 'subnetwork' => ->(obj) { return :subnetwork, obj['subnetwork'] }, 'users' => ->(obj) { return :users, obj['users'] }, - 'labels' => ->(obj) { return :labels, obj['labels'] }, - 'labelFingerprint' => ->(obj) { return :label_fingerprint, obj['labelFingerprint'] }, 'status' => ->(obj) { return :status, obj['status'] }, 'region' => ->(obj) { return :region, obj['region'] }, } @@ -100,12 +96,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_autoscaler.rb b/libraries/google_compute_autoscaler.rb index 93c75b59c..47ded5fd0 100644 --- a/libraries/google_compute_autoscaler.rb +++ b/libraries/google_compute_autoscaler.rb @@ -66,12 +66,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_autoscalers.rb b/libraries/google_compute_autoscalers.rb index 5e6095d11..fb4fcd01a 100644 --- a/libraries/google_compute_autoscalers.rb +++ b/libraries/google_compute_autoscalers.rb @@ -86,12 +86,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_backend_bucket.rb b/libraries/google_compute_backend_bucket.rb index e61fb5100..bf319757b 100644 --- a/libraries/google_compute_backend_bucket.rb +++ b/libraries/google_compute_backend_bucket.rb @@ -63,12 +63,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_backend_buckets.rb b/libraries/google_compute_backend_buckets.rb index 6e6ef8d00..41b5d3262 100644 --- a/libraries/google_compute_backend_buckets.rb +++ b/libraries/google_compute_backend_buckets.rb @@ -86,12 +86,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_backend_service.rb b/libraries/google_compute_backend_service.rb index e6eaea9bf..e4058b829 100644 --- a/libraries/google_compute_backend_service.rb +++ b/libraries/google_compute_backend_service.rb @@ -17,17 +17,8 @@ require 'google/compute/property/backendservice_backends' require 'google/compute/property/backendservice_cdn_policy' require 'google/compute/property/backendservice_cdn_policy_cache_key_policy' -require 'google/compute/property/backendservice_circuit_breakers' -require 'google/compute/property/backendservice_circuit_breakers_connect_timeout' require 'google/compute/property/backendservice_connection_draining' -require 'google/compute/property/backendservice_consistent_hash' -require 'google/compute/property/backendservice_consistent_hash_http_cookie' -require 'google/compute/property/backendservice_consistent_hash_http_cookie_ttl' require 'google/compute/property/backendservice_iap' -require 'google/compute/property/backendservice_log_config' -require 'google/compute/property/backendservice_outlier_detection' -require 'google/compute/property/backendservice_outlier_detection_base_ejection_time' -require 'google/compute/property/backendservice_outlier_detection_interval' # A provider to manage Compute Engine resources. class ComputeBackendService < GcpResourceBase @@ -38,12 +29,9 @@ class ComputeBackendService < GcpResourceBase attr_reader :params attr_reader :affinity_cookie_ttl_sec attr_reader :backends - attr_reader :circuit_breakers - attr_reader :consistent_hash attr_reader :cdn_policy attr_reader :connection_draining attr_reader :creation_timestamp - attr_reader :custom_request_headers attr_reader :fingerprint attr_reader :description attr_reader :enable_cdn @@ -51,15 +39,12 @@ class ComputeBackendService < GcpResourceBase attr_reader :id attr_reader :iap attr_reader :load_balancing_scheme - attr_reader :locality_lb_policy attr_reader :name - attr_reader :outlier_detection attr_reader :port_name attr_reader :protocol attr_reader :security_policy attr_reader :session_affinity attr_reader :timeout_sec - attr_reader :log_config def initialize(params) super(params.merge({ use_http_transport: true })) @@ -71,12 +56,9 @@ def initialize(params) def parse @affinity_cookie_ttl_sec = @fetched['affinityCookieTtlSec'] @backends = GoogleInSpec::Compute::Property::BackendServiceBackendsArray.parse(@fetched['backends'], to_s) - @circuit_breakers = GoogleInSpec::Compute::Property::BackendServiceCircuitBreakers.new(@fetched['circuitBreakers'], to_s) - @consistent_hash = GoogleInSpec::Compute::Property::BackendServiceConsistentHash.new(@fetched['consistentHash'], to_s) @cdn_policy = GoogleInSpec::Compute::Property::BackendServiceCdnPolicy.new(@fetched['cdnPolicy'], to_s) @connection_draining = GoogleInSpec::Compute::Property::BackendServiceConnectionDraining.new(@fetched['connectionDraining'], to_s) @creation_timestamp = parse_time_string(@fetched['creationTimestamp']) - @custom_request_headers = @fetched['customRequestHeaders'] @fingerprint = @fetched['fingerprint'] @description = @fetched['description'] @enable_cdn = @fetched['enableCDN'] @@ -84,15 +66,12 @@ def parse @id = @fetched['id'] @iap = GoogleInSpec::Compute::Property::BackendServiceIap.new(@fetched['iap'], to_s) @load_balancing_scheme = @fetched['loadBalancingScheme'] - @locality_lb_policy = @fetched['localityLbPolicy'] @name = @fetched['name'] - @outlier_detection = GoogleInSpec::Compute::Property::BackendServiceOutlierDetection.new(@fetched['outlierDetection'], to_s) @port_name = @fetched['portName'] @protocol = @fetched['protocol'] @security_policy = @fetched['securityPolicy'] @session_affinity = @fetched['sessionAffinity'] @timeout_sec = @fetched['timeoutSec'] - @log_config = GoogleInSpec::Compute::Property::BackendServiceLogConfig.new(@fetched['logConfig'], to_s) end # Handles parsing RFC3339 time string @@ -110,12 +89,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_backend_services.rb b/libraries/google_compute_backend_services.rb index 552c0cf91..2e0407859 100644 --- a/libraries/google_compute_backend_services.rb +++ b/libraries/google_compute_backend_services.rb @@ -25,12 +25,9 @@ class ComputeBackendServices < GcpResourceBase filter_table_config.add(:affinity_cookie_ttl_secs, field: :affinity_cookie_ttl_sec) filter_table_config.add(:backends, field: :backends) - filter_table_config.add(:circuit_breakers, field: :circuit_breakers) - filter_table_config.add(:consistent_hashes, field: :consistent_hash) filter_table_config.add(:cdn_policies, field: :cdn_policy) filter_table_config.add(:connection_drainings, field: :connection_draining) filter_table_config.add(:creation_timestamps, field: :creation_timestamp) - filter_table_config.add(:custom_request_headers, field: :custom_request_headers) filter_table_config.add(:fingerprints, field: :fingerprint) filter_table_config.add(:descriptions, field: :description) filter_table_config.add(:enable_cdns, field: :enable_cdn) @@ -38,15 +35,12 @@ class ComputeBackendServices < GcpResourceBase filter_table_config.add(:ids, field: :id) filter_table_config.add(:iaps, field: :iap) filter_table_config.add(:load_balancing_schemes, field: :load_balancing_scheme) - filter_table_config.add(:locality_lb_policies, field: :locality_lb_policy) filter_table_config.add(:names, field: :name) - filter_table_config.add(:outlier_detections, field: :outlier_detection) filter_table_config.add(:port_names, field: :port_name) filter_table_config.add(:protocols, field: :protocol) filter_table_config.add(:security_policies, field: :security_policy) filter_table_config.add(:session_affinities, field: :session_affinity) filter_table_config.add(:timeout_secs, field: :timeout_sec) - filter_table_config.add(:log_configs, field: :log_config) filter_table_config.connect(self, :table) @@ -88,12 +82,9 @@ def transformers { 'affinityCookieTtlSec' => ->(obj) { return :affinity_cookie_ttl_sec, obj['affinityCookieTtlSec'] }, 'backends' => ->(obj) { return :backends, GoogleInSpec::Compute::Property::BackendServiceBackendsArray.parse(obj['backends'], to_s) }, - 'circuitBreakers' => ->(obj) { return :circuit_breakers, GoogleInSpec::Compute::Property::BackendServiceCircuitBreakers.new(obj['circuitBreakers'], to_s) }, - 'consistentHash' => ->(obj) { return :consistent_hash, GoogleInSpec::Compute::Property::BackendServiceConsistentHash.new(obj['consistentHash'], to_s) }, 'cdnPolicy' => ->(obj) { return :cdn_policy, GoogleInSpec::Compute::Property::BackendServiceCdnPolicy.new(obj['cdnPolicy'], to_s) }, 'connectionDraining' => ->(obj) { return :connection_draining, GoogleInSpec::Compute::Property::BackendServiceConnectionDraining.new(obj['connectionDraining'], to_s) }, 'creationTimestamp' => ->(obj) { return :creation_timestamp, parse_time_string(obj['creationTimestamp']) }, - 'customRequestHeaders' => ->(obj) { return :custom_request_headers, obj['customRequestHeaders'] }, 'fingerprint' => ->(obj) { return :fingerprint, obj['fingerprint'] }, 'description' => ->(obj) { return :description, obj['description'] }, 'enableCDN' => ->(obj) { return :enable_cdn, obj['enableCDN'] }, @@ -101,15 +92,12 @@ def transformers 'id' => ->(obj) { return :id, obj['id'] }, 'iap' => ->(obj) { return :iap, GoogleInSpec::Compute::Property::BackendServiceIap.new(obj['iap'], to_s) }, 'loadBalancingScheme' => ->(obj) { return :load_balancing_scheme, obj['loadBalancingScheme'] }, - 'localityLbPolicy' => ->(obj) { return :locality_lb_policy, obj['localityLbPolicy'] }, 'name' => ->(obj) { return :name, obj['name'] }, - 'outlierDetection' => ->(obj) { return :outlier_detection, GoogleInSpec::Compute::Property::BackendServiceOutlierDetection.new(obj['outlierDetection'], to_s) }, 'portName' => ->(obj) { return :port_name, obj['portName'] }, 'protocol' => ->(obj) { return :protocol, obj['protocol'] }, 'securityPolicy' => ->(obj) { return :security_policy, obj['securityPolicy'] }, 'sessionAffinity' => ->(obj) { return :session_affinity, obj['sessionAffinity'] }, 'timeoutSec' => ->(obj) { return :timeout_sec, obj['timeoutSec'] }, - 'logConfig' => ->(obj) { return :log_config, GoogleInSpec::Compute::Property::BackendServiceLogConfig.new(obj['logConfig'], to_s) }, } end @@ -120,12 +108,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_disk.rb b/libraries/google_compute_disk.rb index ae3adea53..ced54c5cd 100644 --- a/libraries/google_compute_disk.rb +++ b/libraries/google_compute_disk.rb @@ -39,7 +39,6 @@ class ComputeDisk < GcpResourceBase attr_reader :physical_block_size_bytes attr_reader :type attr_reader :source_image - attr_reader :resource_policies attr_reader :zone attr_reader :source_image_encryption_key attr_reader :source_image_id @@ -70,7 +69,6 @@ def parse @physical_block_size_bytes = @fetched['physicalBlockSizeBytes'] @type = @fetched['type'] @source_image = @fetched['sourceImage'] - @resource_policies = @fetched['resourcePolicies'] @zone = @fetched['zone'] @source_image_encryption_key = GoogleInSpec::Compute::Property::DiskSourceImageEncryptionKey.new(@fetched['sourceImageEncryptionKey'], to_s) @source_image_id = @fetched['sourceImageId'] @@ -95,12 +93,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_disks.rb b/libraries/google_compute_disks.rb index 2bc9ec29d..11e18a9f4 100644 --- a/libraries/google_compute_disks.rb +++ b/libraries/google_compute_disks.rb @@ -37,7 +37,6 @@ class ComputeDisks < GcpResourceBase filter_table_config.add(:physical_block_size_bytes, field: :physical_block_size_bytes) filter_table_config.add(:types, field: :type) filter_table_config.add(:source_images, field: :source_image) - filter_table_config.add(:resource_policies, field: :resource_policies) filter_table_config.add(:zones, field: :zone) filter_table_config.add(:source_image_encryption_keys, field: :source_image_encryption_key) filter_table_config.add(:source_image_ids, field: :source_image_id) @@ -98,7 +97,6 @@ def transformers 'physicalBlockSizeBytes' => ->(obj) { return :physical_block_size_bytes, obj['physicalBlockSizeBytes'] }, 'type' => ->(obj) { return :type, obj['type'] }, 'sourceImage' => ->(obj) { return :source_image, obj['sourceImage'] }, - 'resourcePolicies' => ->(obj) { return :resource_policies, obj['resourcePolicies'] }, 'zone' => ->(obj) { return :zone, obj['zone'] }, 'sourceImageEncryptionKey' => ->(obj) { return :source_image_encryption_key, GoogleInSpec::Compute::Property::DiskSourceImageEncryptionKey.new(obj['sourceImageEncryptionKey'], to_s) }, 'sourceImageId' => ->(obj) { return :source_image_id, obj['sourceImageId'] }, @@ -116,12 +114,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_firewall.rb b/libraries/google_compute_firewall.rb index ef6df952a..1588670c9 100644 --- a/libraries/google_compute_firewall.rb +++ b/libraries/google_compute_firewall.rb @@ -255,12 +255,8 @@ def log_config_enabled? private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_firewalls.rb b/libraries/google_compute_firewalls.rb index 5d09207bf..a51abb3f9 100644 --- a/libraries/google_compute_firewalls.rb +++ b/libraries/google_compute_firewalls.rb @@ -106,12 +106,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_forwarding_rule.rb b/libraries/google_compute_forwarding_rule.rb index e1a2f8cf5..b4dbc1568 100644 --- a/libraries/google_compute_forwarding_rule.rb +++ b/libraries/google_compute_forwarding_rule.rb @@ -35,9 +35,6 @@ class ComputeForwardingRule < GcpResourceBase attr_reader :ports attr_reader :subnetwork attr_reader :target - attr_reader :allow_global_access - attr_reader :labels - attr_reader :label_fingerprint attr_reader :all_ports attr_reader :network_tier attr_reader :service_label @@ -65,9 +62,6 @@ def parse @ports = @fetched['ports'] @subnetwork = @fetched['subnetwork'] @target = @fetched['target'] - @allow_global_access = @fetched['allowGlobalAccess'] - @labels = @fetched['labels'] - @label_fingerprint = @fetched['labelFingerprint'] @all_ports = @fetched['allPorts'] @network_tier = @fetched['networkTier'] @service_label = @fetched['serviceLabel'] @@ -90,12 +84,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_forwarding_rules.rb b/libraries/google_compute_forwarding_rules.rb index 664631ec8..e0ff02600 100644 --- a/libraries/google_compute_forwarding_rules.rb +++ b/libraries/google_compute_forwarding_rules.rb @@ -36,9 +36,6 @@ class ComputeForwardingRules < GcpResourceBase filter_table_config.add(:ports, field: :ports) filter_table_config.add(:subnetworks, field: :subnetwork) filter_table_config.add(:targets, field: :target) - filter_table_config.add(:allow_global_accesses, field: :allow_global_access) - filter_table_config.add(:labels, field: :labels) - filter_table_config.add(:label_fingerprints, field: :label_fingerprint) filter_table_config.add(:all_ports, field: :all_ports) filter_table_config.add(:network_tiers, field: :network_tier) filter_table_config.add(:service_labels, field: :service_label) @@ -96,9 +93,6 @@ def transformers 'ports' => ->(obj) { return :ports, obj['ports'] }, 'subnetwork' => ->(obj) { return :subnetwork, obj['subnetwork'] }, 'target' => ->(obj) { return :target, obj['target'] }, - 'allowGlobalAccess' => ->(obj) { return :allow_global_access, obj['allowGlobalAccess'] }, - 'labels' => ->(obj) { return :labels, obj['labels'] }, - 'labelFingerprint' => ->(obj) { return :label_fingerprint, obj['labelFingerprint'] }, 'allPorts' => ->(obj) { return :all_ports, obj['allPorts'] }, 'networkTier' => ->(obj) { return :network_tier, obj['networkTier'] }, 'serviceLabel' => ->(obj) { return :service_label, obj['serviceLabel'] }, @@ -114,12 +108,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_global_address.rb b/libraries/google_compute_global_address.rb index d3b385bf5..18b573680 100644 --- a/libraries/google_compute_global_address.rb +++ b/libraries/google_compute_global_address.rb @@ -27,8 +27,6 @@ class ComputeGlobalAddress < GcpResourceBase attr_reader :description attr_reader :id attr_reader :name - attr_reader :labels - attr_reader :label_fingerprint attr_reader :ip_version attr_reader :region attr_reader :prefix_length @@ -49,8 +47,6 @@ def parse @description = @fetched['description'] @id = @fetched['id'] @name = @fetched['name'] - @labels = @fetched['labels'] - @label_fingerprint = @fetched['labelFingerprint'] @ip_version = @fetched['ipVersion'] @region = @fetched['region'] @prefix_length = @fetched['prefixLength'] @@ -74,12 +70,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_global_addresses.rb b/libraries/google_compute_global_addresses.rb index 3ebc0d9a8..a5e5381b3 100644 --- a/libraries/google_compute_global_addresses.rb +++ b/libraries/google_compute_global_addresses.rb @@ -28,8 +28,6 @@ class ComputeGlobalAddresss < GcpResourceBase filter_table_config.add(:descriptions, field: :description) filter_table_config.add(:ids, field: :id) filter_table_config.add(:names, field: :name) - filter_table_config.add(:labels, field: :labels) - filter_table_config.add(:label_fingerprints, field: :label_fingerprint) filter_table_config.add(:ip_versions, field: :ip_version) filter_table_config.add(:regions, field: :region) filter_table_config.add(:prefix_lengths, field: :prefix_length) @@ -80,8 +78,6 @@ def transformers 'description' => ->(obj) { return :description, obj['description'] }, 'id' => ->(obj) { return :id, obj['id'] }, 'name' => ->(obj) { return :name, obj['name'] }, - 'labels' => ->(obj) { return :labels, obj['labels'] }, - 'labelFingerprint' => ->(obj) { return :label_fingerprint, obj['labelFingerprint'] }, 'ipVersion' => ->(obj) { return :ip_version, obj['ipVersion'] }, 'region' => ->(obj) { return :region, obj['region'] }, 'prefixLength' => ->(obj) { return :prefix_length, obj['prefixLength'] }, @@ -98,12 +94,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_global_forwarding_rule.rb b/libraries/google_compute_global_forwarding_rule.rb index 5468e22bc..0b940b9a0 100644 --- a/libraries/google_compute_global_forwarding_rule.rb +++ b/libraries/google_compute_global_forwarding_rule.rb @@ -29,8 +29,6 @@ class ComputeGlobalForwardingRule < GcpResourceBase attr_reader :ip_address attr_reader :ip_protocol attr_reader :ip_version - attr_reader :labels - attr_reader :label_fingerprint attr_reader :load_balancing_scheme attr_reader :metadata_filters attr_reader :name @@ -52,8 +50,6 @@ def parse @ip_address = @fetched['IPAddress'] @ip_protocol = @fetched['IPProtocol'] @ip_version = @fetched['ipVersion'] - @labels = @fetched['labels'] - @label_fingerprint = @fetched['labelFingerprint'] @load_balancing_scheme = @fetched['loadBalancingScheme'] @metadata_filters = GoogleInSpec::Compute::Property::GlobalForwardingRuleMetadataFiltersArray.parse(@fetched['metadataFilters'], to_s) @name = @fetched['name'] @@ -77,12 +73,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_global_forwarding_rules.rb b/libraries/google_compute_global_forwarding_rules.rb index 29f293a46..dd07761d7 100644 --- a/libraries/google_compute_global_forwarding_rules.rb +++ b/libraries/google_compute_global_forwarding_rules.rb @@ -29,8 +29,6 @@ class ComputeGlobalForwardingRules < GcpResourceBase filter_table_config.add(:ip_addresses, field: :ip_address) filter_table_config.add(:ip_protocols, field: :ip_protocol) filter_table_config.add(:ip_versions, field: :ip_version) - filter_table_config.add(:labels, field: :labels) - filter_table_config.add(:label_fingerprints, field: :label_fingerprint) filter_table_config.add(:load_balancing_schemes, field: :load_balancing_scheme) filter_table_config.add(:metadata_filters, field: :metadata_filters) filter_table_config.add(:names, field: :name) @@ -82,8 +80,6 @@ def transformers 'IPAddress' => ->(obj) { return :ip_address, obj['IPAddress'] }, 'IPProtocol' => ->(obj) { return :ip_protocol, obj['IPProtocol'] }, 'ipVersion' => ->(obj) { return :ip_version, obj['ipVersion'] }, - 'labels' => ->(obj) { return :labels, obj['labels'] }, - 'labelFingerprint' => ->(obj) { return :label_fingerprint, obj['labelFingerprint'] }, 'loadBalancingScheme' => ->(obj) { return :load_balancing_scheme, obj['loadBalancingScheme'] }, 'metadataFilters' => ->(obj) { return :metadata_filters, GoogleInSpec::Compute::Property::GlobalForwardingRuleMetadataFiltersArray.parse(obj['metadataFilters'], to_s) }, 'name' => ->(obj) { return :name, obj['name'] }, @@ -100,12 +96,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_health_check.rb b/libraries/google_compute_health_check.rb index 90943cc3f..8d901e2ba 100644 --- a/libraries/google_compute_health_check.rb +++ b/libraries/google_compute_health_check.rb @@ -81,12 +81,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_health_checks.rb b/libraries/google_compute_health_checks.rb index f98609a17..b98564c2b 100644 --- a/libraries/google_compute_health_checks.rb +++ b/libraries/google_compute_health_checks.rb @@ -100,12 +100,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_http_health_check.rb b/libraries/google_compute_http_health_check.rb index b38386ce6..487e87b96 100644 --- a/libraries/google_compute_http_health_check.rb +++ b/libraries/google_compute_http_health_check.rb @@ -70,12 +70,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_http_health_checks.rb b/libraries/google_compute_http_health_checks.rb index a92141eb8..ddc30fcbc 100644 --- a/libraries/google_compute_http_health_checks.rb +++ b/libraries/google_compute_http_health_checks.rb @@ -94,12 +94,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_https_health_check.rb b/libraries/google_compute_https_health_check.rb index f9a9e44d1..a5b62498a 100644 --- a/libraries/google_compute_https_health_check.rb +++ b/libraries/google_compute_https_health_check.rb @@ -70,12 +70,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_https_health_checks.rb b/libraries/google_compute_https_health_checks.rb index f9d33e5cf..bd0be742f 100644 --- a/libraries/google_compute_https_health_checks.rb +++ b/libraries/google_compute_https_health_checks.rb @@ -94,12 +94,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance.rb b/libraries/google_compute_instance.rb index 9132484f7..31645a943 100644 --- a/libraries/google_compute_instance.rb +++ b/libraries/google_compute_instance.rb @@ -231,12 +231,8 @@ def has_disks_encrypted_with_csek? private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance_group.rb b/libraries/google_compute_instance_group.rb index 1559996dc..c980b1041 100644 --- a/libraries/google_compute_instance_group.rb +++ b/libraries/google_compute_instance_group.rb @@ -86,12 +86,8 @@ def find_named_ports(key = :name) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance_group_manager.rb b/libraries/google_compute_instance_group_manager.rb index 5624341ad..756c4badc 100644 --- a/libraries/google_compute_instance_group_manager.rb +++ b/libraries/google_compute_instance_group_manager.rb @@ -76,12 +76,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance_group_managers.rb b/libraries/google_compute_instance_group_managers.rb index 9f629754e..3c124edcd 100644 --- a/libraries/google_compute_instance_group_managers.rb +++ b/libraries/google_compute_instance_group_managers.rb @@ -98,12 +98,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance_groups.rb b/libraries/google_compute_instance_groups.rb index 49a5583a3..a69008a11 100644 --- a/libraries/google_compute_instance_groups.rb +++ b/libraries/google_compute_instance_groups.rb @@ -90,12 +90,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance_template.rb b/libraries/google_compute_instance_template.rb index a4524ab20..a6da24c14 100644 --- a/libraries/google_compute_instance_template.rb +++ b/libraries/google_compute_instance_template.rb @@ -65,12 +65,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instance_templates.rb b/libraries/google_compute_instance_templates.rb index b7f54f037..7357d9e24 100644 --- a/libraries/google_compute_instance_templates.rb +++ b/libraries/google_compute_instance_templates.rb @@ -82,12 +82,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_instances.rb b/libraries/google_compute_instances.rb index f09959734..1f25c57ab 100644 --- a/libraries/google_compute_instances.rb +++ b/libraries/google_compute_instances.rb @@ -111,12 +111,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_network.rb b/libraries/google_compute_network.rb index 5f10b9229..e5699649a 100644 --- a/libraries/google_compute_network.rb +++ b/libraries/google_compute_network.rb @@ -78,12 +78,8 @@ def creation_timestamp_date private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_network_endpoint_group.rb b/libraries/google_compute_network_endpoint_group.rb index d2bb29e13..bc08e582c 100644 --- a/libraries/google_compute_network_endpoint_group.rb +++ b/libraries/google_compute_network_endpoint_group.rb @@ -61,12 +61,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_network_endpoint_groups.rb b/libraries/google_compute_network_endpoint_groups.rb index 6b253f46b..aae5c6d39 100644 --- a/libraries/google_compute_network_endpoint_groups.rb +++ b/libraries/google_compute_network_endpoint_groups.rb @@ -85,12 +85,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_networks.rb b/libraries/google_compute_networks.rb index 6deddb727..768db87d6 100644 --- a/libraries/google_compute_networks.rb +++ b/libraries/google_compute_networks.rb @@ -88,12 +88,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_node_group.rb b/libraries/google_compute_node_group.rb index 4b320a8a0..4f6fedd4e 100644 --- a/libraries/google_compute_node_group.rb +++ b/libraries/google_compute_node_group.rb @@ -60,12 +60,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_node_groups.rb b/libraries/google_compute_node_groups.rb index d5ad3450b..b4a616ccc 100644 --- a/libraries/google_compute_node_groups.rb +++ b/libraries/google_compute_node_groups.rb @@ -84,12 +84,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_node_template.rb b/libraries/google_compute_node_template.rb index a4db32fd3..7784c75e6 100644 --- a/libraries/google_compute_node_template.rb +++ b/libraries/google_compute_node_template.rb @@ -15,7 +15,6 @@ # ---------------------------------------------------------------------------- require 'gcp_backend' require 'google/compute/property/nodetemplate_node_type_flexibility' -require 'google/compute/property/nodetemplate_server_binding' # A provider to manage Compute Engine resources. class ComputeNodeTemplate < GcpResourceBase @@ -30,7 +29,6 @@ class ComputeNodeTemplate < GcpResourceBase attr_reader :node_affinity_labels attr_reader :node_type attr_reader :node_type_flexibility - attr_reader :server_binding attr_reader :region def initialize(params) @@ -47,7 +45,6 @@ def parse @node_affinity_labels = @fetched['nodeAffinityLabels'] @node_type = @fetched['nodeType'] @node_type_flexibility = GoogleInSpec::Compute::Property::NodeTemplateNodeTypeFlexibility.new(@fetched['nodeTypeFlexibility'], to_s) - @server_binding = GoogleInSpec::Compute::Property::NodeTemplateServerBinding.new(@fetched['serverBinding'], to_s) @region = @fetched['region'] end @@ -66,12 +63,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_node_templates.rb b/libraries/google_compute_node_templates.rb index 867dbaaa2..c0679f662 100644 --- a/libraries/google_compute_node_templates.rb +++ b/libraries/google_compute_node_templates.rb @@ -29,7 +29,6 @@ class ComputeNodeTemplates < GcpResourceBase filter_table_config.add(:node_affinity_labels, field: :node_affinity_labels) filter_table_config.add(:node_types, field: :node_type) filter_table_config.add(:node_type_flexibilities, field: :node_type_flexibility) - filter_table_config.add(:server_bindings, field: :server_binding) filter_table_config.add(:regions, field: :region) filter_table_config.connect(self, :table) @@ -76,7 +75,6 @@ def transformers 'nodeAffinityLabels' => ->(obj) { return :node_affinity_labels, obj['nodeAffinityLabels'] }, 'nodeType' => ->(obj) { return :node_type, obj['nodeType'] }, 'nodeTypeFlexibility' => ->(obj) { return :node_type_flexibility, GoogleInSpec::Compute::Property::NodeTemplateNodeTypeFlexibility.new(obj['nodeTypeFlexibility'], to_s) }, - 'serverBinding' => ->(obj) { return :server_binding, GoogleInSpec::Compute::Property::NodeTemplateServerBinding.new(obj['serverBinding'], to_s) }, 'region' => ->(obj) { return :region, obj['region'] }, } end @@ -88,12 +86,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_region.rb b/libraries/google_compute_region.rb index 5828ea44c..a575e021a 100644 --- a/libraries/google_compute_region.rb +++ b/libraries/google_compute_region.rb @@ -78,12 +78,8 @@ def up? private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_region_backend_service.rb b/libraries/google_compute_region_backend_service.rb index 5bcdd1b68..909214487 100644 --- a/libraries/google_compute_region_backend_service.rb +++ b/libraries/google_compute_region_backend_service.rb @@ -15,17 +15,7 @@ # ---------------------------------------------------------------------------- require 'gcp_backend' require 'google/compute/property/regionbackendservice_backends' -require 'google/compute/property/regionbackendservice_circuit_breakers' -require 'google/compute/property/regionbackendservice_circuit_breakers_connect_timeout' require 'google/compute/property/regionbackendservice_connection_draining' -require 'google/compute/property/regionbackendservice_consistent_hash' -require 'google/compute/property/regionbackendservice_consistent_hash_http_cookie' -require 'google/compute/property/regionbackendservice_consistent_hash_http_cookie_ttl' -require 'google/compute/property/regionbackendservice_failover_policy' -require 'google/compute/property/regionbackendservice_log_config' -require 'google/compute/property/regionbackendservice_outlier_detection' -require 'google/compute/property/regionbackendservice_outlier_detection_base_ejection_time' -require 'google/compute/property/regionbackendservice_outlier_detection_interval' # A provider to manage Compute Engine resources. class ComputeRegionBackendService < GcpResourceBase @@ -34,26 +24,18 @@ class ComputeRegionBackendService < GcpResourceBase supports platform: 'gcp' attr_reader :params - attr_reader :affinity_cookie_ttl_sec attr_reader :backends - attr_reader :circuit_breakers - attr_reader :consistent_hash attr_reader :connection_draining attr_reader :creation_timestamp attr_reader :description - attr_reader :failover_policy attr_reader :fingerprint attr_reader :health_checks attr_reader :id attr_reader :load_balancing_scheme - attr_reader :locality_lb_policy attr_reader :name - attr_reader :outlier_detection attr_reader :protocol attr_reader :session_affinity attr_reader :timeout_sec - attr_reader :log_config - attr_reader :network attr_reader :region def initialize(params) @@ -64,26 +46,18 @@ def initialize(params) end def parse - @affinity_cookie_ttl_sec = @fetched['affinityCookieTtlSec'] @backends = GoogleInSpec::Compute::Property::RegionBackendServiceBackendsArray.parse(@fetched['backends'], to_s) - @circuit_breakers = GoogleInSpec::Compute::Property::RegionBackendServiceCircuitBreakers.new(@fetched['circuitBreakers'], to_s) - @consistent_hash = GoogleInSpec::Compute::Property::RegionBackendServiceConsistentHash.new(@fetched['consistentHash'], to_s) @connection_draining = GoogleInSpec::Compute::Property::RegionBackendServiceConnectionDraining.new(@fetched['connectionDraining'], to_s) @creation_timestamp = parse_time_string(@fetched['creationTimestamp']) @description = @fetched['description'] - @failover_policy = GoogleInSpec::Compute::Property::RegionBackendServiceFailoverPolicy.new(@fetched['failoverPolicy'], to_s) @fingerprint = @fetched['fingerprint'] @health_checks = @fetched['healthChecks'] @id = @fetched['id'] @load_balancing_scheme = @fetched['loadBalancingScheme'] - @locality_lb_policy = @fetched['localityLbPolicy'] @name = @fetched['name'] - @outlier_detection = GoogleInSpec::Compute::Property::RegionBackendServiceOutlierDetection.new(@fetched['outlierDetection'], to_s) @protocol = @fetched['protocol'] @session_affinity = @fetched['sessionAffinity'] @timeout_sec = @fetched['timeoutSec'] - @log_config = GoogleInSpec::Compute::Property::RegionBackendServiceLogConfig.new(@fetched['logConfig'], to_s) - @network = @fetched['network'] @region = @fetched['region'] end @@ -102,12 +76,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_region_backend_services.rb b/libraries/google_compute_region_backend_services.rb index ce67fac95..c3cad901a 100644 --- a/libraries/google_compute_region_backend_services.rb +++ b/libraries/google_compute_region_backend_services.rb @@ -23,26 +23,18 @@ class ComputeRegionBackendServices < GcpResourceBase filter_table_config = FilterTable.create - filter_table_config.add(:affinity_cookie_ttl_secs, field: :affinity_cookie_ttl_sec) filter_table_config.add(:backends, field: :backends) - filter_table_config.add(:circuit_breakers, field: :circuit_breakers) - filter_table_config.add(:consistent_hashes, field: :consistent_hash) filter_table_config.add(:connection_drainings, field: :connection_draining) filter_table_config.add(:creation_timestamps, field: :creation_timestamp) filter_table_config.add(:descriptions, field: :description) - filter_table_config.add(:failover_policies, field: :failover_policy) filter_table_config.add(:fingerprints, field: :fingerprint) filter_table_config.add(:health_checks, field: :health_checks) filter_table_config.add(:ids, field: :id) filter_table_config.add(:load_balancing_schemes, field: :load_balancing_scheme) - filter_table_config.add(:locality_lb_policies, field: :locality_lb_policy) filter_table_config.add(:names, field: :name) - filter_table_config.add(:outlier_detections, field: :outlier_detection) filter_table_config.add(:protocols, field: :protocol) filter_table_config.add(:session_affinities, field: :session_affinity) filter_table_config.add(:timeout_secs, field: :timeout_sec) - filter_table_config.add(:log_configs, field: :log_config) - filter_table_config.add(:networks, field: :network) filter_table_config.add(:regions, field: :region) filter_table_config.connect(self, :table) @@ -83,26 +75,18 @@ def transform(key, value) def transformers { - 'affinityCookieTtlSec' => ->(obj) { return :affinity_cookie_ttl_sec, obj['affinityCookieTtlSec'] }, 'backends' => ->(obj) { return :backends, GoogleInSpec::Compute::Property::RegionBackendServiceBackendsArray.parse(obj['backends'], to_s) }, - 'circuitBreakers' => ->(obj) { return :circuit_breakers, GoogleInSpec::Compute::Property::RegionBackendServiceCircuitBreakers.new(obj['circuitBreakers'], to_s) }, - 'consistentHash' => ->(obj) { return :consistent_hash, GoogleInSpec::Compute::Property::RegionBackendServiceConsistentHash.new(obj['consistentHash'], to_s) }, 'connectionDraining' => ->(obj) { return :connection_draining, GoogleInSpec::Compute::Property::RegionBackendServiceConnectionDraining.new(obj['connectionDraining'], to_s) }, 'creationTimestamp' => ->(obj) { return :creation_timestamp, parse_time_string(obj['creationTimestamp']) }, 'description' => ->(obj) { return :description, obj['description'] }, - 'failoverPolicy' => ->(obj) { return :failover_policy, GoogleInSpec::Compute::Property::RegionBackendServiceFailoverPolicy.new(obj['failoverPolicy'], to_s) }, 'fingerprint' => ->(obj) { return :fingerprint, obj['fingerprint'] }, 'healthChecks' => ->(obj) { return :health_checks, obj['healthChecks'] }, 'id' => ->(obj) { return :id, obj['id'] }, 'loadBalancingScheme' => ->(obj) { return :load_balancing_scheme, obj['loadBalancingScheme'] }, - 'localityLbPolicy' => ->(obj) { return :locality_lb_policy, obj['localityLbPolicy'] }, 'name' => ->(obj) { return :name, obj['name'] }, - 'outlierDetection' => ->(obj) { return :outlier_detection, GoogleInSpec::Compute::Property::RegionBackendServiceOutlierDetection.new(obj['outlierDetection'], to_s) }, 'protocol' => ->(obj) { return :protocol, obj['protocol'] }, 'sessionAffinity' => ->(obj) { return :session_affinity, obj['sessionAffinity'] }, 'timeoutSec' => ->(obj) { return :timeout_sec, obj['timeoutSec'] }, - 'logConfig' => ->(obj) { return :log_config, GoogleInSpec::Compute::Property::RegionBackendServiceLogConfig.new(obj['logConfig'], to_s) }, - 'network' => ->(obj) { return :network, obj['network'] }, 'region' => ->(obj) { return :region, obj['region'] }, } end @@ -114,12 +98,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_region_instance_group_manager.rb b/libraries/google_compute_region_instance_group_manager.rb index acda280d7..f0d649026 100644 --- a/libraries/google_compute_region_instance_group_manager.rb +++ b/libraries/google_compute_region_instance_group_manager.rb @@ -97,12 +97,8 @@ def find_named_ports(key = :name) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_region_instance_group_managers.rb b/libraries/google_compute_region_instance_group_managers.rb index 13b3ba38b..da0798c3e 100644 --- a/libraries/google_compute_region_instance_group_managers.rb +++ b/libraries/google_compute_region_instance_group_managers.rb @@ -98,12 +98,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_regions.rb b/libraries/google_compute_regions.rb index ef3d5b986..68d1703d8 100644 --- a/libraries/google_compute_regions.rb +++ b/libraries/google_compute_regions.rb @@ -88,12 +88,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_route.rb b/libraries/google_compute_route.rb index 4432b64cb..67662f14a 100644 --- a/libraries/google_compute_route.rb +++ b/libraries/google_compute_route.rb @@ -67,12 +67,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_router.rb b/libraries/google_compute_router.rb index 1736b6de0..8c9bfefa2 100644 --- a/libraries/google_compute_router.rb +++ b/libraries/google_compute_router.rb @@ -64,12 +64,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_router_nat.rb b/libraries/google_compute_router_nat.rb index 1a53fd180..e242518af 100644 --- a/libraries/google_compute_router_nat.rb +++ b/libraries/google_compute_router_nat.rb @@ -27,7 +27,6 @@ class ComputeRouterNat < GcpResourceBase attr_reader :name attr_reader :nat_ip_allocate_option attr_reader :nat_ips - attr_reader :drain_nat_ips attr_reader :source_subnetwork_ip_ranges_to_nat attr_reader :subnetwork attr_reader :min_ports_per_vm @@ -63,7 +62,6 @@ def parse @name = @fetched['name'] @nat_ip_allocate_option = @fetched['natIpAllocateOption'] @nat_ips = @fetched['natIps'] - @drain_nat_ips = @fetched['drainNatIps'] @source_subnetwork_ip_ranges_to_nat = @fetched['sourceSubnetworkIpRangesToNat'] @subnetwork = GoogleInSpec::Compute::Property::RouterNatSubnetworkArray.parse(@fetched['subnetworks'], to_s) @min_ports_per_vm = @fetched['minPortsPerVm'] @@ -86,12 +84,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_router_nats.rb b/libraries/google_compute_router_nats.rb index 9be17b109..a061aede1 100644 --- a/libraries/google_compute_router_nats.rb +++ b/libraries/google_compute_router_nats.rb @@ -26,7 +26,6 @@ class ComputeRouterNats < GcpResourceBase filter_table_config.add(:names, field: :name) filter_table_config.add(:nat_ip_allocate_options, field: :nat_ip_allocate_option) filter_table_config.add(:nat_ips, field: :nat_ips) - filter_table_config.add(:drain_nat_ips, field: :drain_nat_ips) filter_table_config.add(:source_subnetwork_ip_ranges_to_nats, field: :source_subnetwork_ip_ranges_to_nat) filter_table_config.add(:subnetworks, field: :subnetwork) filter_table_config.add(:min_ports_per_vms, field: :min_ports_per_vm) @@ -79,7 +78,6 @@ def transformers 'name' => ->(obj) { return :name, obj['name'] }, 'natIpAllocateOption' => ->(obj) { return :nat_ip_allocate_option, obj['natIpAllocateOption'] }, 'natIps' => ->(obj) { return :nat_ips, obj['natIps'] }, - 'drainNatIps' => ->(obj) { return :drain_nat_ips, obj['drainNatIps'] }, 'sourceSubnetworkIpRangesToNat' => ->(obj) { return :source_subnetwork_ip_ranges_to_nat, obj['sourceSubnetworkIpRangesToNat'] }, 'subnetworks' => ->(obj) { return :subnetwork, GoogleInSpec::Compute::Property::RouterNatSubnetworkArray.parse(obj['subnetworks'], to_s) }, 'minPortsPerVm' => ->(obj) { return :min_ports_per_vm, obj['minPortsPerVm'] }, @@ -95,12 +93,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_routers.rb b/libraries/google_compute_routers.rb index c2acaf8c0..fbab7e458 100644 --- a/libraries/google_compute_routers.rb +++ b/libraries/google_compute_routers.rb @@ -86,12 +86,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_routes.rb b/libraries/google_compute_routes.rb index 8faa53d22..bc2a91bd5 100644 --- a/libraries/google_compute_routes.rb +++ b/libraries/google_compute_routes.rb @@ -91,12 +91,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_snapshot.rb b/libraries/google_compute_snapshot.rb index 9f53bd829..1d22def7d 100644 --- a/libraries/google_compute_snapshot.rb +++ b/libraries/google_compute_snapshot.rb @@ -76,12 +76,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_snapshots.rb b/libraries/google_compute_snapshots.rb index 009524a8f..dde106e3d 100644 --- a/libraries/google_compute_snapshots.rb +++ b/libraries/google_compute_snapshots.rb @@ -98,12 +98,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_ssl_certificate.rb b/libraries/google_compute_ssl_certificate.rb index ef9835d06..26bf0892c 100644 --- a/libraries/google_compute_ssl_certificate.rb +++ b/libraries/google_compute_ssl_certificate.rb @@ -60,12 +60,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_ssl_certificates.rb b/libraries/google_compute_ssl_certificates.rb index 3d4483b46..0e3a647b6 100644 --- a/libraries/google_compute_ssl_certificates.rb +++ b/libraries/google_compute_ssl_certificates.rb @@ -84,12 +84,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_ssl_policies.rb b/libraries/google_compute_ssl_policies.rb index a4f317c10..1cd0a5562 100644 --- a/libraries/google_compute_ssl_policies.rb +++ b/libraries/google_compute_ssl_policies.rb @@ -92,12 +92,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_ssl_policy.rb b/libraries/google_compute_ssl_policy.rb index 0b9f7529e..b90da1fec 100644 --- a/libraries/google_compute_ssl_policy.rb +++ b/libraries/google_compute_ssl_policy.rb @@ -69,12 +69,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_subnetwork.rb b/libraries/google_compute_subnetwork.rb index 68166f5b3..9698a53eb 100644 --- a/libraries/google_compute_subnetwork.rb +++ b/libraries/google_compute_subnetwork.rb @@ -31,8 +31,6 @@ class ComputeSubnetwork < GcpResourceBase attr_reader :ip_cidr_range attr_reader :name attr_reader :network - attr_reader :purpose - attr_reader :role attr_reader :secondary_ip_ranges attr_reader :private_ip_google_access attr_reader :region @@ -53,8 +51,6 @@ def parse @ip_cidr_range = @fetched['ipCidrRange'] @name = @fetched['name'] @network = @fetched['network'] - @purpose = @fetched['purpose'] - @role = @fetched['role'] @secondary_ip_ranges = GoogleInSpec::Compute::Property::SubnetworkSecondaryIpRangesArray.parse(@fetched['secondaryIpRanges'], to_s) @private_ip_google_access = @fetched['privateIpGoogleAccess'] @region = @fetched['region'] @@ -80,12 +76,8 @@ def creation_timestamp_date private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_subnetwork_iam_binding.rb b/libraries/google_compute_subnetwork_iam_binding.rb index ef624faaf..542099847 100644 --- a/libraries/google_compute_subnetwork_iam_binding.rb +++ b/libraries/google_compute_subnetwork_iam_binding.rb @@ -56,7 +56,7 @@ def to_s private def product_url - 'https://www.googleapis.com/compute/beta/' + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_subnetwork_iam_policy.rb b/libraries/google_compute_subnetwork_iam_policy.rb index 0cc5215dd..c3f86562c 100644 --- a/libraries/google_compute_subnetwork_iam_policy.rb +++ b/libraries/google_compute_subnetwork_iam_policy.rb @@ -58,7 +58,7 @@ def count private def product_url - 'https://www.googleapis.com/compute/beta/' + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_subnetworks.rb b/libraries/google_compute_subnetworks.rb index 96145dbbf..f85554b58 100644 --- a/libraries/google_compute_subnetworks.rb +++ b/libraries/google_compute_subnetworks.rb @@ -30,8 +30,6 @@ class ComputeSubnetworks < GcpResourceBase filter_table_config.add(:ip_cidr_ranges, field: :ip_cidr_range) filter_table_config.add(:subnetwork_names, field: :subnetwork_name) filter_table_config.add(:networks, field: :network) - filter_table_config.add(:purposes, field: :purpose) - filter_table_config.add(:roles, field: :role) filter_table_config.add(:secondary_ip_ranges, field: :secondary_ip_ranges) filter_table_config.add(:private_ip_google_accesses, field: :private_ip_google_access) filter_table_config.add(:regions, field: :region) @@ -82,8 +80,6 @@ def transformers 'ipCidrRange' => ->(obj) { return :ip_cidr_range, obj['ipCidrRange'] }, 'name' => ->(obj) { return :subnetwork_name, obj['name'] }, 'network' => ->(obj) { return :network, obj['network'] }, - 'purpose' => ->(obj) { return :purpose, obj['purpose'] }, - 'role' => ->(obj) { return :role, obj['role'] }, 'secondaryIpRanges' => ->(obj) { return :secondary_ip_ranges, GoogleInSpec::Compute::Property::SubnetworkSecondaryIpRangesArray.parse(obj['secondaryIpRanges'], to_s) }, 'privateIpGoogleAccess' => ->(obj) { return :private_ip_google_access, obj['privateIpGoogleAccess'] }, 'region' => ->(obj) { return :region, obj['region'] }, @@ -98,12 +94,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_http_proxies.rb b/libraries/google_compute_target_http_proxies.rb index dfb09ffe4..d202e78ae 100644 --- a/libraries/google_compute_target_http_proxies.rb +++ b/libraries/google_compute_target_http_proxies.rb @@ -82,12 +82,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_http_proxy.rb b/libraries/google_compute_target_http_proxy.rb index d7c19c653..64f30375c 100644 --- a/libraries/google_compute_target_http_proxy.rb +++ b/libraries/google_compute_target_http_proxy.rb @@ -58,12 +58,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_https_proxies.rb b/libraries/google_compute_target_https_proxies.rb index 1afd3b1eb..507250930 100644 --- a/libraries/google_compute_target_https_proxies.rb +++ b/libraries/google_compute_target_https_proxies.rb @@ -88,12 +88,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_https_proxy.rb b/libraries/google_compute_target_https_proxy.rb index 4cee9c7f5..fa536e256 100644 --- a/libraries/google_compute_target_https_proxy.rb +++ b/libraries/google_compute_target_https_proxy.rb @@ -64,12 +64,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_pool.rb b/libraries/google_compute_target_pool.rb index fb8e6e55b..f5214a720 100644 --- a/libraries/google_compute_target_pool.rb +++ b/libraries/google_compute_target_pool.rb @@ -74,12 +74,8 @@ def has_target_instance?(name, zone) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_pools.rb b/libraries/google_compute_target_pools.rb index 04e5815f5..060e9f0f0 100644 --- a/libraries/google_compute_target_pools.rb +++ b/libraries/google_compute_target_pools.rb @@ -92,12 +92,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_tcp_proxies.rb b/libraries/google_compute_target_tcp_proxies.rb index 04131284a..456bf9ad6 100644 --- a/libraries/google_compute_target_tcp_proxies.rb +++ b/libraries/google_compute_target_tcp_proxies.rb @@ -84,12 +84,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_target_tcp_proxy.rb b/libraries/google_compute_target_tcp_proxy.rb index 5ba337185..6bd404c1a 100644 --- a/libraries/google_compute_target_tcp_proxy.rb +++ b/libraries/google_compute_target_tcp_proxy.rb @@ -60,12 +60,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_url_map.rb b/libraries/google_compute_url_map.rb index a1bf628b0..682327895 100644 --- a/libraries/google_compute_url_map.rb +++ b/libraries/google_compute_url_map.rb @@ -74,12 +74,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_url_maps.rb b/libraries/google_compute_url_maps.rb index 8a6505201..cac93428f 100644 --- a/libraries/google_compute_url_maps.rb +++ b/libraries/google_compute_url_maps.rb @@ -92,12 +92,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_vpn_tunnel.rb b/libraries/google_compute_vpn_tunnel.rb index 0716bb6c2..cab0ce84a 100644 --- a/libraries/google_compute_vpn_tunnel.rb +++ b/libraries/google_compute_vpn_tunnel.rb @@ -27,11 +27,6 @@ class ComputeVpnTunnel < GcpResourceBase attr_reader :name attr_reader :description attr_reader :target_vpn_gateway - attr_reader :vpn_gateway - attr_reader :vpn_gateway_interface - attr_reader :peer_external_gateway - attr_reader :peer_external_gateway_interface - attr_reader :peer_gcp_gateway attr_reader :router attr_reader :peer_ip attr_reader :shared_secret @@ -39,8 +34,6 @@ class ComputeVpnTunnel < GcpResourceBase attr_reader :ike_version attr_reader :local_traffic_selector attr_reader :remote_traffic_selector - attr_reader :labels - attr_reader :label_fingerprint attr_reader :region def initialize(params) @@ -56,11 +49,6 @@ def parse @name = @fetched['name'] @description = @fetched['description'] @target_vpn_gateway = @fetched['targetVpnGateway'] - @vpn_gateway = @fetched['vpnGateway'] - @vpn_gateway_interface = @fetched['vpnGatewayInterface'] - @peer_external_gateway = @fetched['peerExternalGateway'] - @peer_external_gateway_interface = @fetched['peerExternalGatewayInterface'] - @peer_gcp_gateway = @fetched['peerGcpGateway'] @router = @fetched['router'] @peer_ip = @fetched['peerIp'] @shared_secret = @fetched['sharedSecret'] @@ -68,8 +56,6 @@ def parse @ike_version = @fetched['ikeVersion'] @local_traffic_selector = @fetched['localTrafficSelector'] @remote_traffic_selector = @fetched['remoteTrafficSelector'] - @labels = @fetched['labels'] - @label_fingerprint = @fetched['labelFingerprint'] @region = @fetched['region'] end @@ -88,12 +74,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_vpn_tunnels.rb b/libraries/google_compute_vpn_tunnels.rb index 7ab2c50cc..1940ab4c4 100644 --- a/libraries/google_compute_vpn_tunnels.rb +++ b/libraries/google_compute_vpn_tunnels.rb @@ -28,11 +28,6 @@ class ComputeVpnTunnels < GcpResourceBase filter_table_config.add(:vpn_tunnel_names, field: :vpn_tunnel_name) filter_table_config.add(:descriptions, field: :description) filter_table_config.add(:target_vpn_gateways, field: :target_vpn_gateway) - filter_table_config.add(:vpn_gateways, field: :vpn_gateway) - filter_table_config.add(:vpn_gateway_interfaces, field: :vpn_gateway_interface) - filter_table_config.add(:peer_external_gateways, field: :peer_external_gateway) - filter_table_config.add(:peer_external_gateway_interfaces, field: :peer_external_gateway_interface) - filter_table_config.add(:peer_gcp_gateways, field: :peer_gcp_gateway) filter_table_config.add(:routers, field: :router) filter_table_config.add(:peer_ips, field: :peer_ip) filter_table_config.add(:shared_secrets, field: :shared_secret) @@ -40,8 +35,6 @@ class ComputeVpnTunnels < GcpResourceBase filter_table_config.add(:ike_versions, field: :ike_version) filter_table_config.add(:local_traffic_selectors, field: :local_traffic_selector) filter_table_config.add(:remote_traffic_selectors, field: :remote_traffic_selector) - filter_table_config.add(:labels, field: :labels) - filter_table_config.add(:label_fingerprints, field: :label_fingerprint) filter_table_config.add(:regions, field: :region) filter_table_config.connect(self, :table) @@ -87,11 +80,6 @@ def transformers 'name' => ->(obj) { return :vpn_tunnel_name, obj['name'] }, 'description' => ->(obj) { return :description, obj['description'] }, 'targetVpnGateway' => ->(obj) { return :target_vpn_gateway, obj['targetVpnGateway'] }, - 'vpnGateway' => ->(obj) { return :vpn_gateway, obj['vpnGateway'] }, - 'vpnGatewayInterface' => ->(obj) { return :vpn_gateway_interface, obj['vpnGatewayInterface'] }, - 'peerExternalGateway' => ->(obj) { return :peer_external_gateway, obj['peerExternalGateway'] }, - 'peerExternalGatewayInterface' => ->(obj) { return :peer_external_gateway_interface, obj['peerExternalGatewayInterface'] }, - 'peerGcpGateway' => ->(obj) { return :peer_gcp_gateway, obj['peerGcpGateway'] }, 'router' => ->(obj) { return :router, obj['router'] }, 'peerIp' => ->(obj) { return :peer_ip, obj['peerIp'] }, 'sharedSecret' => ->(obj) { return :shared_secret, obj['sharedSecret'] }, @@ -99,8 +87,6 @@ def transformers 'ikeVersion' => ->(obj) { return :ike_version, obj['ikeVersion'] }, 'localTrafficSelector' => ->(obj) { return :local_traffic_selector, obj['localTrafficSelector'] }, 'remoteTrafficSelector' => ->(obj) { return :remote_traffic_selector, obj['remoteTrafficSelector'] }, - 'labels' => ->(obj) { return :labels, obj['labels'] }, - 'labelFingerprint' => ->(obj) { return :label_fingerprint, obj['labelFingerprint'] }, 'region' => ->(obj) { return :region, obj['region'] }, } end @@ -112,12 +98,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_zone.rb b/libraries/google_compute_zone.rb index eb2d0ab03..0e83df59b 100644 --- a/libraries/google_compute_zone.rb +++ b/libraries/google_compute_zone.rb @@ -74,12 +74,8 @@ def up? private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_compute_zones.rb b/libraries/google_compute_zones.rb index d91e9642f..d48c27bf4 100644 --- a/libraries/google_compute_zones.rb +++ b/libraries/google_compute_zones.rb @@ -88,12 +88,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/compute/beta/' - else - 'https://www.googleapis.com/compute/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/compute/v1/' end def resource_base_url diff --git a/libraries/google_container_cluster.rb b/libraries/google_container_cluster.rb index 1b311610b..59f5bb36b 100644 --- a/libraries/google_container_cluster.rb +++ b/libraries/google_container_cluster.rb @@ -216,12 +216,8 @@ def private_cluster? private - def product_url(beta = false) - if beta - 'https://container.googleapis.com/v1beta1/' - else - 'https://container.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://container.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_container_clusters.rb b/libraries/google_container_clusters.rb index da066fbe2..905854753 100644 --- a/libraries/google_container_clusters.rb +++ b/libraries/google_container_clusters.rb @@ -144,12 +144,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://container.googleapis.com/v1beta1/' - else - 'https://container.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://container.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_container_node_pool.rb b/libraries/google_container_node_pool.rb index 79fd2c0ee..1bda6c04c 100644 --- a/libraries/google_container_node_pool.rb +++ b/libraries/google_container_node_pool.rb @@ -77,12 +77,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://container.googleapis.com/v1beta1/' - else - 'https://container.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://container.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_container_node_pools.rb b/libraries/google_container_node_pools.rb index 5b8a3cf96..df2103548 100644 --- a/libraries/google_container_node_pools.rb +++ b/libraries/google_container_node_pools.rb @@ -93,12 +93,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://container.googleapis.com/v1beta1/' - else - 'https://container.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://container.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_dataproc_cluster.rb b/libraries/google_dataproc_cluster.rb index 2e1ab6dd4..d8914cfaf 100644 --- a/libraries/google_dataproc_cluster.rb +++ b/libraries/google_dataproc_cluster.rb @@ -67,12 +67,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://dataproc.googleapis.com/v1beta2/' - else - 'https://dataproc.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_dataproc_clusters.rb b/libraries/google_dataproc_clusters.rb index 338959419..7c3b4468b 100644 --- a/libraries/google_dataproc_clusters.rb +++ b/libraries/google_dataproc_clusters.rb @@ -75,12 +75,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://dataproc.googleapis.com/v1beta2/' - else - 'https://dataproc.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://dataproc.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_dns_managed_zone.rb b/libraries/google_dns_managed_zone.rb index 283aec648..0c8341846 100644 --- a/libraries/google_dns_managed_zone.rb +++ b/libraries/google_dns_managed_zone.rb @@ -16,10 +16,6 @@ require 'gcp_backend' require 'google/dns/property/managedzone_dnssec_config' require 'google/dns/property/managedzone_dnssec_config_default_key_specs' -require 'google/dns/property/managedzone_forwarding_config' -require 'google/dns/property/managedzone_forwarding_config_target_name_servers' -require 'google/dns/property/managedzone_peering_config' -require 'google/dns/property/managedzone_peering_config_target_network' require 'google/dns/property/managedzone_private_visibility_config' require 'google/dns/property/managedzone_private_visibility_config_networks' @@ -41,8 +37,6 @@ class DNSManagedZone < GcpResourceBase attr_reader :labels attr_reader :visibility attr_reader :private_visibility_config - attr_reader :forwarding_config - attr_reader :peering_config def initialize(params) super(params.merge({ use_http_transport: true })) @@ -63,8 +57,6 @@ def parse @labels = @fetched['labels'] @visibility = @fetched['visibility'] @private_visibility_config = GoogleInSpec::DNS::Property::ManagedZonePrivateVisibilityConfig.new(@fetched['privateVisibilityConfig'], to_s) - @forwarding_config = GoogleInSpec::DNS::Property::ManagedZoneForwardingConfig.new(@fetched['forwardingConfig'], to_s) - @peering_config = GoogleInSpec::DNS::Property::ManagedZonePeeringConfig.new(@fetched['peeringConfig'], to_s) end # Handles parsing RFC3339 time string @@ -96,12 +88,8 @@ def zone_signing_key_algorithm private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/dns/v1beta2/' - else - 'https://www.googleapis.com/dns/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/dns/v1/' end def resource_base_url diff --git a/libraries/google_dns_managed_zones.rb b/libraries/google_dns_managed_zones.rb index 7a5f3047f..2c47b9dd6 100644 --- a/libraries/google_dns_managed_zones.rb +++ b/libraries/google_dns_managed_zones.rb @@ -34,8 +34,6 @@ class DNSManagedZones < GcpResourceBase filter_table_config.add(:labels, field: :labels) filter_table_config.add(:visibilities, field: :visibility) filter_table_config.add(:private_visibility_configs, field: :private_visibility_config) - filter_table_config.add(:forwarding_configs, field: :forwarding_config) - filter_table_config.add(:peering_configs, field: :peering_config) filter_table_config.add(:dnssec_config_states, field: :dnssec_config_state) filter_table_config.connect(self, :table) @@ -88,8 +86,6 @@ def transformers 'labels' => ->(obj) { return :labels, obj['labels'] }, 'visibility' => ->(obj) { return :visibility, obj['visibility'] }, 'privateVisibilityConfig' => ->(obj) { return :private_visibility_config, GoogleInSpec::DNS::Property::ManagedZonePrivateVisibilityConfig.new(obj['privateVisibilityConfig'], to_s) }, - 'forwardingConfig' => ->(obj) { return :forwarding_config, GoogleInSpec::DNS::Property::ManagedZoneForwardingConfig.new(obj['forwardingConfig'], to_s) }, - 'peeringConfig' => ->(obj) { return :peering_config, GoogleInSpec::DNS::Property::ManagedZonePeeringConfig.new(obj['peeringConfig'], to_s) }, } end @@ -100,12 +96,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/dns/v1beta2/' - else - 'https://www.googleapis.com/dns/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/dns/v1/' end def resource_base_url diff --git a/libraries/google_dns_resource_record_set.rb b/libraries/google_dns_resource_record_set.rb index 2a3a29a28..bbd3a3115 100644 --- a/libraries/google_dns_resource_record_set.rb +++ b/libraries/google_dns_resource_record_set.rb @@ -66,12 +66,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/dns/v1beta2/' - else - 'https://www.googleapis.com/dns/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/dns/v1/' end def resource_base_url diff --git a/libraries/google_dns_resource_record_sets.rb b/libraries/google_dns_resource_record_sets.rb index 4f8b68d01..232d59336 100644 --- a/libraries/google_dns_resource_record_sets.rb +++ b/libraries/google_dns_resource_record_sets.rb @@ -77,12 +77,8 @@ def transformers private - def product_url(beta = false) - if beta - 'https://www.googleapis.com/dns/v1beta2/' - else - 'https://www.googleapis.com/dns/v1/' - end + def product_url(_ = nil) + 'https://www.googleapis.com/dns/v1/' end def resource_base_url diff --git a/libraries/google_redis_instance.rb b/libraries/google_redis_instance.rb index 284238868..35d50f33a 100644 --- a/libraries/google_redis_instance.rb +++ b/libraries/google_redis_instance.rb @@ -80,12 +80,8 @@ def to_s private - def product_url(beta = false) - if beta - 'https://redis.googleapis.com/v1beta1/' - else - 'https://redis.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://redis.googleapis.com/v1/' end def resource_base_url diff --git a/libraries/google_redis_instances.rb b/libraries/google_redis_instances.rb index f614a8115..d75786dec 100644 --- a/libraries/google_redis_instances.rb +++ b/libraries/google_redis_instances.rb @@ -104,12 +104,8 @@ def parse_time_string(time_string) private - def product_url(beta = false) - if beta - 'https://redis.googleapis.com/v1beta1/' - else - 'https://redis.googleapis.com/v1/' - end + def product_url(_ = nil) + 'https://redis.googleapis.com/v1/' end def resource_base_url