|
| 1 | +# frozen_string_literal: false |
| 2 | + |
| 3 | +# ---------------------------------------------------------------------------- |
| 4 | +# |
| 5 | +# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** |
| 6 | +# |
| 7 | +# ---------------------------------------------------------------------------- |
| 8 | +# |
| 9 | +# This file is automatically generated by Magic Modules and manual |
| 10 | +# changes will be clobbered when the file is regenerated. |
| 11 | +# |
| 12 | +# Please read more about how to change this file in README.md and |
| 13 | +# CONTRIBUTING.md located at the root of this package. |
| 14 | +# |
| 15 | +# ---------------------------------------------------------------------------- |
| 16 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_cors_policy' |
| 17 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_fault_injection_policy' |
| 18 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_fault_injection_policy_abort' |
| 19 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_fault_injection_policy_delay' |
| 20 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_fault_injection_policy_delay_fixed_delay' |
| 21 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_request_mirror_policy' |
| 22 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_retry_policy' |
| 23 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_retry_policy_per_try_timeout' |
| 24 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_timeout' |
| 25 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_url_rewrite' |
| 26 | +require 'google/compute/property/urlmap_path_matchers_path_rules_route_action_weighted_backend_services' |
| 27 | +module GoogleInSpec |
| 28 | + module Compute |
| 29 | + module Property |
| 30 | + class UrlMapPathMatchersPathRulesRouteAction |
| 31 | + attr_reader :cors_policy |
| 32 | + |
| 33 | + attr_reader :fault_injection_policy |
| 34 | + |
| 35 | + attr_reader :request_mirror_policy |
| 36 | + |
| 37 | + attr_reader :retry_policy |
| 38 | + |
| 39 | + attr_reader :timeout |
| 40 | + |
| 41 | + attr_reader :url_rewrite |
| 42 | + |
| 43 | + attr_reader :weighted_backend_services |
| 44 | + |
| 45 | + def initialize(args = nil, parent_identifier = nil) |
| 46 | + return if args.nil? |
| 47 | + @parent_identifier = parent_identifier |
| 48 | + @cors_policy = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionCorsPolicy.new(args['corsPolicy'], to_s) |
| 49 | + @fault_injection_policy = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionFaultInjectionPolicy.new(args['faultInjectionPolicy'], to_s) |
| 50 | + @request_mirror_policy = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionRequestMirrorPolicy.new(args['requestMirrorPolicy'], to_s) |
| 51 | + @retry_policy = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionRetryPolicy.new(args['retryPolicy'], to_s) |
| 52 | + @timeout = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionTimeout.new(args['timeout'], to_s) |
| 53 | + @url_rewrite = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionUrlRewrite.new(args['urlRewrite'], to_s) |
| 54 | + @weighted_backend_services = GoogleInSpec::Compute::Property::UrlMapPathMatchersPathRulesRouteActionWeightedBackendServicesArray.parse(args['weightedBackendServices'], to_s) |
| 55 | + end |
| 56 | + |
| 57 | + def to_s |
| 58 | + "#{@parent_identifier} UrlMapPathMatchersPathRulesRouteAction" |
| 59 | + end |
| 60 | + end |
| 61 | + end |
| 62 | + end |
| 63 | +end |
0 commit comments