From ba7eac29902198d03c5c7cc19d6897fa716f2e55 Mon Sep 17 00:00:00 2001 From: Alex Stephen Date: Tue, 3 Mar 2020 13:49:37 -0800 Subject: [PATCH] will this work on the first try? --- products/compute/ansible.yaml | 4 - products/compute/ansible_version_added.yaml | 396 +++++++++++++++++- .../ansible/region_ssl_certificate.yaml | 45 ++ 3 files changed, 422 insertions(+), 23 deletions(-) create mode 100644 products/compute/examples/ansible/region_ssl_certificate.yaml diff --git a/products/compute/ansible.yaml b/products/compute/ansible.yaml index c943f125922b..2a2110a007d8 100644 --- a/products/compute/ansible.yaml +++ b/products/compute/ansible.yaml @@ -43,8 +43,6 @@ datasources: !ruby/object:Overrides::ResourceOverrides exclude: true RegionInstanceGroupManager: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true - RegionSslCertificate: !ruby/object:Overrides::Ansible::ResourceOverride - exclude: true RegionTargetHttpProxy: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true RegionTargetHttpsProxy: !ruby/object:Overrides::Ansible::ResourceOverride @@ -333,8 +331,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides exclude: true RegionInstanceGroupManager: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true - RegionSslCertificate: !ruby/object:Overrides::Ansible::ResourceOverride - exclude: true RegionTargetHttpProxy: !ruby/object:Overrides::Ansible::ResourceOverride exclude: true RegionTargetHttpsProxy: !ruby/object:Overrides::Ansible::ResourceOverride diff --git a/products/compute/ansible_version_added.yaml b/products/compute/ansible_version_added.yaml index b16a6b35811c..4f4c9fc354fb 100644 --- a/products/compute/ansible_version_added.yaml +++ b/products/compute/ansible_version_added.yaml @@ -229,33 +229,51 @@ :version_added: '2.6' :RegionBackendService: :version_added: '2.10' - :name: - :version_added: '2.10' - :healthChecks: - :version_added: '2.10' :backends: :version_added: '2.10' + :balancingMode: + :version_added: '2.10' + :capacityScaler: + :version_added: '2.10' :description: :version_added: '2.10' + :failover: + :version_added: '2.10' :group: :version_added: '2.10' - :failover: + :maxConnections: + :version_added: '2.10' + :maxConnectionsPerInstance: + :version_added: '2.10' + :maxConnectionsPerEndpoint: + :version_added: '2.10' + :maxRate: + :version_added: '2.10' + :maxRatePerInstance: + :version_added: '2.10' + :maxRatePerEndpoint: + :version_added: '2.10' + :maxUtilization: + :version_added: '2.10' + :connectionDraining: + :version_added: '2.10' + :drainingTimeoutSec: :version_added: '2.10' :description: :version_added: '2.10' + :healthChecks: + :version_added: '2.10' + :loadBalancingScheme: + :version_added: '2.10' + :name: + :version_added: '2.10' :protocol: :version_added: '2.10' :sessionAffinity: :version_added: '2.10' - :region: - :version_added: '2.10' :timeoutSec: :version_added: '2.10' - :connectionDraining: - :version_added: '2.10' - :drainingTimeoutSec: - :version_added: '2.10' - :loadBalancingScheme: + :region: :version_added: '2.10' :Disk: :version_added: '2.6' @@ -319,6 +337,10 @@ :version_added: '2.8' :disabled: :version_added: '2.8' + :logConfig: + :version_added: '2.10' + :enableLogging: + :version_added: '2.10' :name: :version_added: '2.6' :network: @@ -345,8 +367,6 @@ :version_added: '2.6' :backendService: :version_added: '2.6' - :ipVersion: - :version_added: '2.6' :loadBalancingScheme: :version_added: '2.6' :name: @@ -899,8 +919,6 @@ :version_added: '2.6' :description: :version_added: '2.6' - :ipv4_range: - :version_added: '2.6' :name: :version_added: '2.6' :autoCreateSubnetworks: @@ -1011,6 +1029,8 @@ :version_added: '2.6' :nextHopVpnTunnel: :version_added: '2.6' + :nextHopIlb: + :version_added: '2.10' :Router: :version_added: '2.7' :name: @@ -1123,8 +1143,6 @@ :version_added: '2.6' :network: :version_added: '2.6' - :enableFlowLogs: - :version_added: '2.8' :secondaryIpRanges: :version_added: '2.8' :rangeName: @@ -1227,6 +1245,28 @@ :version_added: '2.6' :description: :version_added: '2.6' + :headerAction: + :version_added: '2.10' + :requestHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :requestHeadersToRemove: + :version_added: '2.10' + :responseHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :responseHeadersToRemove: + :version_added: '2.10' :hostRules: :version_added: '2.6' :description: @@ -1243,14 +1283,332 @@ :version_added: '2.6' :description: :version_added: '2.6' + :headerAction: + :version_added: '2.10' + :requestHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :requestHeadersToRemove: + :version_added: '2.10' + :responseHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :responseHeadersToRemove: + :version_added: '2.10' :name: :version_added: '2.6' :pathRules: :version_added: '2.6' + :service: + :version_added: '2.6' :paths: :version_added: '2.6' + :routeAction: + :version_added: '2.10' + :corsPolicy: + :version_added: '2.10' + :allowCredentials: + :version_added: '2.10' + :allowHeaders: + :version_added: '2.10' + :allowMethods: + :version_added: '2.10' + :allowOriginRegexes: + :version_added: '2.10' + :allowOrigins: + :version_added: '2.10' + :disabled: + :version_added: '2.10' + :exposeHeaders: + :version_added: '2.10' + :maxAge: + :version_added: '2.10' + :faultInjectionPolicy: + :version_added: '2.10' + :abort: + :version_added: '2.10' + :httpStatus: + :version_added: '2.10' + :percentage: + :version_added: '2.10' + :delay: + :version_added: '2.10' + :fixedDelay: + :version_added: '2.10' + :nanos: + :version_added: '2.10' + :seconds: + :version_added: '2.10' + :percentage: + :version_added: '2.10' + :requestMirrorPolicy: + :version_added: '2.10' + :backendService: + :version_added: '2.10' + :retryPolicy: + :version_added: '2.10' + :numRetries: + :version_added: '2.10' + :perTryTimeout: + :version_added: '2.10' + :nanos: + :version_added: '2.10' + :seconds: + :version_added: '2.10' + :retryConditions: + :version_added: '2.10' + :timeout: + :version_added: '2.10' + :nanos: + :version_added: '2.10' + :seconds: + :version_added: '2.10' + :urlRewrite: + :version_added: '2.10' + :hostRewrite: + :version_added: '2.10' + :pathPrefixRewrite: + :version_added: '2.10' + :weightedBackendServices: + :version_added: '2.10' + :backendService: + :version_added: '2.10' + :headerAction: + :version_added: '2.10' + :requestHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :requestHeadersToRemove: + :version_added: '2.10' + :responseHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :responseHeadersToRemove: + :version_added: '2.10' + :weight: + :version_added: '2.10' + :urlRedirect: + :version_added: '2.10' + :hostRedirect: + :version_added: '2.10' + :httpsRedirect: + :version_added: '2.10' + :pathRedirect: + :version_added: '2.10' + :prefixRedirect: + :version_added: '2.10' + :redirectResponseCode: + :version_added: '2.10' + :stripQuery: + :version_added: '2.10' + :routeRules: + :version_added: '2.10' + :priority: + :version_added: '2.10' :service: - :version_added: '2.6' + :version_added: '2.10' + :headerAction: + :version_added: '2.10' + :requestHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :requestHeadersToRemove: + :version_added: '2.10' + :responseHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :responseHeadersToRemove: + :version_added: '2.10' + :matchRules: + :version_added: '2.10' + :fullPathMatch: + :version_added: '2.10' + :headerMatches: + :version_added: '2.10' + :exactMatch: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :invertMatch: + :version_added: '2.10' + :prefixMatch: + :version_added: '2.10' + :presentMatch: + :version_added: '2.10' + :rangeMatch: + :version_added: '2.10' + :rangeEnd: + :version_added: '2.10' + :rangeStart: + :version_added: '2.10' + :regexMatch: + :version_added: '2.10' + :suffixMatch: + :version_added: '2.10' + :ignoreCase: + :version_added: '2.10' + :metadataFilters: + :version_added: '2.10' + :filterLabels: + :version_added: '2.10' + :name: + :version_added: '2.10' + :value: + :version_added: '2.10' + :filterMatchCriteria: + :version_added: '2.10' + :prefixMatch: + :version_added: '2.10' + :queryParameterMatches: + :version_added: '2.10' + :exactMatch: + :version_added: '2.10' + :name: + :version_added: '2.10' + :presentMatch: + :version_added: '2.10' + :regexMatch: + :version_added: '2.10' + :regexMatch: + :version_added: '2.10' + :routeAction: + :version_added: '2.10' + :corsPolicy: + :version_added: '2.10' + :allowCredentials: + :version_added: '2.10' + :allowHeaders: + :version_added: '2.10' + :allowMethods: + :version_added: '2.10' + :allowOriginRegexes: + :version_added: '2.10' + :allowOrigins: + :version_added: '2.10' + :disabled: + :version_added: '2.10' + :exposeHeaders: + :version_added: '2.10' + :maxAge: + :version_added: '2.10' + :faultInjectionPolicy: + :version_added: '2.10' + :abort: + :version_added: '2.10' + :httpStatus: + :version_added: '2.10' + :percentage: + :version_added: '2.10' + :delay: + :version_added: '2.10' + :fixedDelay: + :version_added: '2.10' + :nanos: + :version_added: '2.10' + :seconds: + :version_added: '2.10' + :percentage: + :version_added: '2.10' + :requestMirrorPolicy: + :version_added: '2.10' + :backendService: + :version_added: '2.10' + :retryPolicy: + :version_added: '2.10' + :numRetries: + :version_added: '2.10' + :perTryTimeout: + :version_added: '2.10' + :nanos: + :version_added: '2.10' + :seconds: + :version_added: '2.10' + :retryConditions: + :version_added: '2.10' + :timeout: + :version_added: '2.10' + :nanos: + :version_added: '2.10' + :seconds: + :version_added: '2.10' + :urlRewrite: + :version_added: '2.10' + :hostRewrite: + :version_added: '2.10' + :pathPrefixRewrite: + :version_added: '2.10' + :weightedBackendServices: + :version_added: '2.10' + :backendService: + :version_added: '2.10' + :headerAction: + :version_added: '2.10' + :requestHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :requestHeadersToRemove: + :version_added: '2.10' + :responseHeadersToAdd: + :version_added: '2.10' + :headerName: + :version_added: '2.10' + :headerValue: + :version_added: '2.10' + :replace: + :version_added: '2.10' + :responseHeadersToRemove: + :version_added: '2.10' + :weight: + :version_added: '2.10' + :urlRedirect: + :version_added: '2.10' + :hostRedirect: + :version_added: '2.10' + :httpsRedirect: + :version_added: '2.10' + :pathRedirect: + :version_added: '2.10' + :prefixRedirect: + :version_added: '2.10' + :redirectResponseCode: + :version_added: '2.10' + :stripQuery: + :version_added: '2.10' :tests: :version_added: '2.6' :description: diff --git a/products/compute/examples/ansible/region_ssl_certificate.yaml b/products/compute/examples/ansible/region_ssl_certificate.yaml new file mode 100644 index 000000000000..b2c9fc4d9aa9 --- /dev/null +++ b/products/compute/examples/ansible/region_ssl_certificate.yaml @@ -0,0 +1,45 @@ +# Copyright 2020 Google Inc. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +--- !ruby/object:Provider::Ansible::Example +task: !ruby/object:Provider::Ansible::Task + name: gcp_compute_region_ssl_certificate + code: + name: <%= ctx[:name] %> + description: A certificate for testing. Do not use this certificate in production + certificate: | + -----BEGIN CERTIFICATE----- + MIICqjCCAk+gAwIBAgIJAIuJ+0352Kq4MAoGCCqGSM49BAMCMIGwMQswCQYDVQQG + EwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjERMA8GA1UEBwwIS2lya2xhbmQxFTAT + BgNVBAoMDEdvb2dsZSwgSW5jLjEeMBwGA1UECwwVR29vZ2xlIENsb3VkIFBsYXRm + b3JtMR8wHQYDVQQDDBZ3d3cubXktc2VjdXJlLXNpdGUuY29tMSEwHwYJKoZIhvcN + AQkBFhJuZWxzb25hQGdvb2dsZS5jb20wHhcNMTcwNjI4MDQ1NjI2WhcNMjcwNjI2 + MDQ1NjI2WjCBsDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xETAP + BgNVBAcMCEtpcmtsYW5kMRUwEwYDVQQKDAxHb29nbGUsIEluYy4xHjAcBgNVBAsM + FUdvb2dsZSBDbG91ZCBQbGF0Zm9ybTEfMB0GA1UEAwwWd3d3Lm15LXNlY3VyZS1z + aXRlLmNvbTEhMB8GCSqGSIb3DQEJARYSbmVsc29uYUBnb29nbGUuY29tMFkwEwYH + KoZIzj0CAQYIKoZIzj0DAQcDQgAEHGzpcRJ4XzfBJCCPMQeXQpTXwlblimODQCuQ + 4mzkzTv0dXyB750fOGN02HtkpBOZzzvUARTR10JQoSe2/5PIwaNQME4wHQYDVR0O + BBYEFKIQC3A2SDpxcdfn0YLKineDNq/BMB8GA1UdIwQYMBaAFKIQC3A2SDpxcdfn + 0YLKineDNq/BMAwGA1UdEwQFMAMBAf8wCgYIKoZIzj0EAwIDSQAwRgIhALs4vy+O + M3jcqgA4fSW/oKw6UJxp+M6a+nGMX+UJR3YgAiEAvvl39QRVAiv84hdoCuyON0lJ + zqGNhIPGq2ULqXKK8BY= + -----END CERTIFICATE----- + private_key: | + -----BEGIN EC PRIVATE KEY----- + MHcCAQEEIObtRo8tkUqoMjeHhsOh2ouPpXCgBcP+EDxZCB/tws15oAoGCCqGSM49 + AwEHoUQDQgAEHGzpcRJ4XzfBJCCPMQeXQpTXwlblimODQCuQ4mzkzTv0dXyB750f + OGN02HtkpBOZzzvUARTR10JQoSe2/5PIwQ== + -----END EC PRIVATE KEY----- + project: <%= ctx[:project] %> + auth_kind: <%= ctx[:auth_kind] %> + service_account_file: <%= ctx[:service_account_file] %>