Skip to content

Commit

Permalink
Automated DCL import.
Browse files Browse the repository at this point in the history
  - 61216b3 Automatic import from cloud_mmv2_dcl_20220111_1831_RC00 by DCL Team <no-reply@google.com>

GitOrigin-RevId: 61216b3
  • Loading branch information
DCL Team authored and Modular Magician Diff Process committed Jan 12, 2022
1 parent bb0f557 commit f92a0d2
Show file tree
Hide file tree
Showing 17 changed files with 108 additions and 60 deletions.
1 change: 1 addition & 0 deletions python/proto/compute/alpha/forwarding_rule.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ enum ComputeAlphaForwardingRuleLoadBalancingSchemeEnum {
ComputeAlphaForwardingRuleLoadBalancingSchemeEnumINTERNAL_MANAGED = 3;
ComputeAlphaForwardingRuleLoadBalancingSchemeEnumINTERNAL_SELF_MANAGED = 4;
ComputeAlphaForwardingRuleLoadBalancingSchemeEnumEXTERNAL = 5;
ComputeAlphaForwardingRuleLoadBalancingSchemeEnumEXTERNAL_MANAGED = 6;
}

enum ComputeAlphaForwardingRuleMetadataFilterFilterMatchCriteriaEnum {
Expand Down
1 change: 1 addition & 0 deletions python/proto/compute/beta/forwarding_rule.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ enum ComputeBetaForwardingRuleLoadBalancingSchemeEnum {
ComputeBetaForwardingRuleLoadBalancingSchemeEnumINTERNAL_MANAGED = 3;
ComputeBetaForwardingRuleLoadBalancingSchemeEnumINTERNAL_SELF_MANAGED = 4;
ComputeBetaForwardingRuleLoadBalancingSchemeEnumEXTERNAL = 5;
ComputeBetaForwardingRuleLoadBalancingSchemeEnumEXTERNAL_MANAGED = 6;
}

enum ComputeBetaForwardingRuleMetadataFilterFilterMatchCriteriaEnum {
Expand Down
1 change: 1 addition & 0 deletions python/proto/compute/forwarding_rule.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ enum ComputeForwardingRuleLoadBalancingSchemeEnum {
ComputeForwardingRuleLoadBalancingSchemeEnumINTERNAL_MANAGED = 3;
ComputeForwardingRuleLoadBalancingSchemeEnumINTERNAL_SELF_MANAGED = 4;
ComputeForwardingRuleLoadBalancingSchemeEnumEXTERNAL = 5;
ComputeForwardingRuleLoadBalancingSchemeEnumEXTERNAL_MANAGED = 6;
}

enum ComputeForwardingRuleMetadataFilterFilterMatchCriteriaEnum {
Expand Down
1 change: 1 addition & 0 deletions services/google/compute/alpha/backend_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ components:
HTTP(S), SSL Proxy, TCP Proxy and Network Load Balancing. Choose ` INTERNAL`
for Internal TCP/UDP Load Balancing. Choose ` INTERNAL_MANAGED` for Internal
HTTP(S) Load Balancing. ` INTERNAL_SELF_MANAGED` for Traffic Director.
Choose `EXTERNAL_MANAGED` for Global external HTTP(S) load balancers.
A backend service created for one type of load balancer cannot be used
with another. For more information, refer to (/load-balancing/docs/choosing-load-balancer/).
Possible values: INVALID_LOAD_BALANCING_SCHEME, INTERNAL, INTERNAL_MANAGED,
Expand Down
2 changes: 1 addition & 1 deletion services/google/compute/alpha/forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (v ForwardingRuleLoadBalancingSchemeEnum) Validate() error {
// Empty enum is okay.
return nil
}
for _, s := range []string{"INVALID", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", "EXTERNAL"} {
for _, s := range []string{"INVALID", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", "EXTERNAL", "EXTERNAL_MANAGED"} {
if string(v) == s {
return nil
}
Expand Down
29 changes: 13 additions & 16 deletions services/google/compute/alpha/forwarding_rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,29 +189,26 @@ components:
type: string
x-dcl-go-name: LoadBalancingScheme
x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum
description: |-
Specifies the forwarding rule type.
* `EXTERNAL` is used for:
* Classic Cloud VPN gateways
* Protocol forwarding to VMs from an external IP address
* The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP
* `INTERNAL` is used for:
* Protocol forwarding to VMs from an internal IP address
* Internal TCP/UDP load balancers
* `INTERNAL_MANAGED` is used for:
* Internal HTTP(S) load balancers
* `INTERNAL_SELF_MANAGED` is used for:
* Traffic Director
For more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL
description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used
for:\n * Classic Cloud VPN gateways\n * Protocol forwarding
to VMs from an external IP address\n * The following load balancers:
HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is
used for:\n * Protocol forwarding to VMs from an internal IP address\n
\ * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used
for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED`
is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used
for:\n * Global external HTTP(S) load balancers \n\nFor more information
about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).
Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,
EXTERNAL, EXTERNAL_MANAGED"
x-kubernetes-immutable: true
enum:
- INVALID
- INTERNAL
- INTERNAL_MANAGED
- INTERNAL_SELF_MANAGED
- EXTERNAL
- EXTERNAL_MANAGED
location:
type: string
x-dcl-go-name: Location
Expand Down

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions services/google/compute/backend_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ components:
HTTP(S), SSL Proxy, TCP Proxy and Network Load Balancing. Choose ` INTERNAL`
for Internal TCP/UDP Load Balancing. Choose ` INTERNAL_MANAGED` for Internal
HTTP(S) Load Balancing. ` INTERNAL_SELF_MANAGED` for Traffic Director.
Choose `EXTERNAL_MANAGED` for Global external HTTP(S) load balancers.
A backend service created for one type of load balancer cannot be used
with another. For more information, refer to (/load-balancing/docs/choosing-load-balancer/).
Possible values: INVALID_LOAD_BALANCING_SCHEME, INTERNAL, INTERNAL_MANAGED,
Expand Down
1 change: 1 addition & 0 deletions services/google/compute/beta/backend_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ components:
HTTP(S), SSL Proxy, TCP Proxy and Network Load Balancing. Choose ` INTERNAL`
for Internal TCP/UDP Load Balancing. Choose ` INTERNAL_MANAGED` for Internal
HTTP(S) Load Balancing. ` INTERNAL_SELF_MANAGED` for Traffic Director.
Choose `EXTERNAL_MANAGED` for Global external HTTP(S) load balancers.
A backend service created for one type of load balancer cannot be used
with another. For more information, refer to (/load-balancing/docs/choosing-load-balancer/).
Possible values: INVALID_LOAD_BALANCING_SCHEME, INTERNAL, INTERNAL_MANAGED,
Expand Down
2 changes: 1 addition & 1 deletion services/google/compute/beta/forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (v ForwardingRuleLoadBalancingSchemeEnum) Validate() error {
// Empty enum is okay.
return nil
}
for _, s := range []string{"INVALID", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", "EXTERNAL"} {
for _, s := range []string{"INVALID", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", "EXTERNAL", "EXTERNAL_MANAGED"} {
if string(v) == s {
return nil
}
Expand Down
29 changes: 13 additions & 16 deletions services/google/compute/beta/forwarding_rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,29 +189,26 @@ components:
type: string
x-dcl-go-name: LoadBalancingScheme
x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum
description: |-
Specifies the forwarding rule type.
* `EXTERNAL` is used for:
* Classic Cloud VPN gateways
* Protocol forwarding to VMs from an external IP address
* The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP
* `INTERNAL` is used for:
* Protocol forwarding to VMs from an internal IP address
* Internal TCP/UDP load balancers
* `INTERNAL_MANAGED` is used for:
* Internal HTTP(S) load balancers
* `INTERNAL_SELF_MANAGED` is used for:
* Traffic Director
For more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL
description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used
for:\n * Classic Cloud VPN gateways\n * Protocol forwarding
to VMs from an external IP address\n * The following load balancers:
HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is
used for:\n * Protocol forwarding to VMs from an internal IP address\n
\ * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used
for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED`
is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used
for:\n * Global external HTTP(S) load balancers \n\nFor more information
about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).
Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,
EXTERNAL, EXTERNAL_MANAGED"
x-kubernetes-immutable: true
enum:
- INVALID
- INTERNAL
- INTERNAL_MANAGED
- INTERNAL_SELF_MANAGED
- EXTERNAL
- EXTERNAL_MANAGED
location:
type: string
x-dcl-go-name: Location
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion services/google/compute/forwarding_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (v ForwardingRuleLoadBalancingSchemeEnum) Validate() error {
// Empty enum is okay.
return nil
}
for _, s := range []string{"INVALID", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", "EXTERNAL"} {
for _, s := range []string{"INVALID", "INTERNAL", "INTERNAL_MANAGED", "INTERNAL_SELF_MANAGED", "EXTERNAL", "EXTERNAL_MANAGED"} {
if string(v) == s {
return nil
}
Expand Down
29 changes: 13 additions & 16 deletions services/google/compute/forwarding_rule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,29 +189,26 @@ components:
type: string
x-dcl-go-name: LoadBalancingScheme
x-dcl-go-type: ForwardingRuleLoadBalancingSchemeEnum
description: |-
Specifies the forwarding rule type.
* `EXTERNAL` is used for:
* Classic Cloud VPN gateways
* Protocol forwarding to VMs from an external IP address
* The following load balancers: HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP
* `INTERNAL` is used for:
* Protocol forwarding to VMs from an internal IP address
* Internal TCP/UDP load balancers
* `INTERNAL_MANAGED` is used for:
* Internal HTTP(S) load balancers
* `INTERNAL_SELF_MANAGED` is used for:
* Traffic Director
For more information about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts). Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED, EXTERNAL
description: "Specifies the forwarding rule type.\n\n* `EXTERNAL` is used
for:\n * Classic Cloud VPN gateways\n * Protocol forwarding
to VMs from an external IP address\n * The following load balancers:
HTTP(S), SSL Proxy, TCP Proxy, and Network TCP/UDP\n* `INTERNAL` is
used for:\n * Protocol forwarding to VMs from an internal IP address\n
\ * Internal TCP/UDP load balancers\n* `INTERNAL_MANAGED` is used
for:\n * Internal HTTP(S) load balancers\n* `INTERNAL_SELF_MANAGED`
is used for:\n * Traffic Director\n* `EXTERNAL_MANAGED` is used
for:\n * Global external HTTP(S) load balancers \n\nFor more information
about forwarding rules, refer to [Forwarding rule concepts](/load-balancing/docs/forwarding-rule-concepts).
Possible values: INVALID, INTERNAL, INTERNAL_MANAGED, INTERNAL_SELF_MANAGED,
EXTERNAL, EXTERNAL_MANAGED"
x-kubernetes-immutable: true
enum:
- INVALID
- INTERNAL
- INTERNAL_MANAGED
- INTERNAL_SELF_MANAGED
- EXTERNAL
- EXTERNAL_MANAGED
location:
type: string
x-dcl-go-name: Location
Expand Down
6 changes: 3 additions & 3 deletions services/google/compute/forwarding_rule_yaml_embed.go

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions services/google/compute/samples/global.forwarding_rule.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "{{rule}}",
"project": "{{project}}",
"location": "global",
"networkTier": "PREMIUM",
"ipProtocol": "TCP",
"description": "A test global forwarding rule with load balancing scheme EXTERNAL_MANAGED",
"target": "{{ref:global.target_http_proxy.json:selfLink}}",
"loadBalancingScheme": "EXTERNAL_MANAGED",
"portRange": "80-80"
}
40 changes: 40 additions & 0 deletions services/google/compute/samples/global_forwarding_rule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2022 Google LLC. All Rights Reserved.
#
# 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.
name: global_forwarding_rule
description: An example of a global compute forwarding rule with EXTERNAL_MANAGED
type: forwarding_rule
versions:
- beta
resource: samples/global.forwarding_rule.json
dependencies:
- samples/global.target_http_proxy.json
- samples/first_global.url_map.json
- samples/second_global.url_map.json
- samples/basic.backend_bucket.json
- samples/basic.storage.bucket.json
variables:
- name: backend
type: resource_name
- name: bucket
type: resource_name
- name: map1
type: resource_name
- name: map2
type: resource_name
- name: project
type: project
- name: proxy
type: resource_name
- name: rule
type: resource_name

0 comments on commit f92a0d2

Please sign in to comment.