forked from inspec/inspec-gcp
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add route_rules to UrlMap for Traffic Director (#256)
Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
e3e78b9
commit 8e8b7c0
Showing
37 changed files
with
1,764 additions
and
19 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
require 'google/compute/property/urlmap_header_action_request_headers_to_add' | ||
require 'google/compute/property/urlmap_header_action_response_headers_to_add' | ||
module GoogleInSpec | ||
module Compute | ||
module Property | ||
class UrlMapHeaderAction | ||
attr_reader :request_headers_to_add | ||
|
||
attr_reader :request_headers_to_remove | ||
|
||
attr_reader :response_headers_to_add | ||
|
||
attr_reader :response_headers_to_remove | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@request_headers_to_add = GoogleInSpec::Compute::Property::UrlMapHeaderActionRequestHeadersToAddArray.parse(args['requestHeadersToAdd'], to_s) | ||
@request_headers_to_remove = args['requestHeadersToRemove'] | ||
@response_headers_to_add = GoogleInSpec::Compute::Property::UrlMapHeaderActionResponseHeadersToAddArray.parse(args['responseHeadersToAdd'], to_s) | ||
@response_headers_to_remove = args['responseHeadersToRemove'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} UrlMapHeaderAction" | ||
end | ||
end | ||
end | ||
end | ||
end |
48 changes: 48 additions & 0 deletions
48
libraries/google/compute/property/urlmap_header_action_request_headers_to_add.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
module GoogleInSpec | ||
module Compute | ||
module Property | ||
class UrlMapHeaderActionRequestHeadersToAdd | ||
attr_reader :header_name | ||
|
||
attr_reader :header_value | ||
|
||
attr_reader :replace | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@header_name = args['headerName'] | ||
@header_value = args['headerValue'] | ||
@replace = args['replace'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} UrlMapHeaderActionRequestHeadersToAdd" | ||
end | ||
end | ||
|
||
class UrlMapHeaderActionRequestHeadersToAddArray | ||
def self.parse(value, parent_identifier) | ||
return if value.nil? | ||
return UrlMapHeaderActionRequestHeadersToAdd.new(value, parent_identifier) unless value.is_a?(::Array) | ||
value.map { |v| UrlMapHeaderActionRequestHeadersToAdd.new(v, parent_identifier) } | ||
end | ||
end | ||
end | ||
end | ||
end |
48 changes: 48 additions & 0 deletions
48
libraries/google/compute/property/urlmap_header_action_response_headers_to_add.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
module GoogleInSpec | ||
module Compute | ||
module Property | ||
class UrlMapHeaderActionResponseHeadersToAdd | ||
attr_reader :header_name | ||
|
||
attr_reader :header_value | ||
|
||
attr_reader :replace | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@header_name = args['headerName'] | ||
@header_value = args['headerValue'] | ||
@replace = args['replace'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} UrlMapHeaderActionResponseHeadersToAdd" | ||
end | ||
end | ||
|
||
class UrlMapHeaderActionResponseHeadersToAddArray | ||
def self.parse(value, parent_identifier) | ||
return if value.nil? | ||
return UrlMapHeaderActionResponseHeadersToAdd.new(value, parent_identifier) unless value.is_a?(::Array) | ||
value.map { |v| UrlMapHeaderActionResponseHeadersToAdd.new(v, parent_identifier) } | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
libraries/google/compute/property/urlmap_path_matchers_header_action.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
require 'google/compute/property/urlmap_path_matchers_header_action_request_headers_to_add' | ||
require 'google/compute/property/urlmap_path_matchers_header_action_response_headers_to_add' | ||
module GoogleInSpec | ||
module Compute | ||
module Property | ||
class UrlMapPathMatchersHeaderAction | ||
attr_reader :request_headers_to_add | ||
|
||
attr_reader :request_headers_to_remove | ||
|
||
attr_reader :response_headers_to_add | ||
|
||
attr_reader :response_headers_to_remove | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@request_headers_to_add = GoogleInSpec::Compute::Property::UrlMapPathMatchersHeaderActionRequestHeadersToAddArray.parse(args['requestHeadersToAdd'], to_s) | ||
@request_headers_to_remove = args['requestHeadersToRemove'] | ||
@response_headers_to_add = GoogleInSpec::Compute::Property::UrlMapPathMatchersHeaderActionResponseHeadersToAddArray.parse(args['responseHeadersToAdd'], to_s) | ||
@response_headers_to_remove = args['responseHeadersToRemove'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} UrlMapPathMatchersHeaderAction" | ||
end | ||
end | ||
end | ||
end | ||
end |
48 changes: 48 additions & 0 deletions
48
...ries/google/compute/property/urlmap_path_matchers_header_action_request_headers_to_add.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
module GoogleInSpec | ||
module Compute | ||
module Property | ||
class UrlMapPathMatchersHeaderActionRequestHeadersToAdd | ||
attr_reader :header_name | ||
|
||
attr_reader :header_value | ||
|
||
attr_reader :replace | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@header_name = args['headerName'] | ||
@header_value = args['headerValue'] | ||
@replace = args['replace'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} UrlMapPathMatchersHeaderActionRequestHeadersToAdd" | ||
end | ||
end | ||
|
||
class UrlMapPathMatchersHeaderActionRequestHeadersToAddArray | ||
def self.parse(value, parent_identifier) | ||
return if value.nil? | ||
return UrlMapPathMatchersHeaderActionRequestHeadersToAdd.new(value, parent_identifier) unless value.is_a?(::Array) | ||
value.map { |v| UrlMapPathMatchersHeaderActionRequestHeadersToAdd.new(v, parent_identifier) } | ||
end | ||
end | ||
end | ||
end | ||
end |
48 changes: 48 additions & 0 deletions
48
...ies/google/compute/property/urlmap_path_matchers_header_action_response_headers_to_add.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# frozen_string_literal: false | ||
|
||
# ---------------------------------------------------------------------------- | ||
# | ||
# *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** | ||
# | ||
# ---------------------------------------------------------------------------- | ||
# | ||
# This file is automatically generated by Magic Modules and manual | ||
# changes will be clobbered when the file is regenerated. | ||
# | ||
# Please read more about how to change this file in README.md and | ||
# CONTRIBUTING.md located at the root of this package. | ||
# | ||
# ---------------------------------------------------------------------------- | ||
module GoogleInSpec | ||
module Compute | ||
module Property | ||
class UrlMapPathMatchersHeaderActionResponseHeadersToAdd | ||
attr_reader :header_name | ||
|
||
attr_reader :header_value | ||
|
||
attr_reader :replace | ||
|
||
def initialize(args = nil, parent_identifier = nil) | ||
return if args.nil? | ||
@parent_identifier = parent_identifier | ||
@header_name = args['headerName'] | ||
@header_value = args['headerValue'] | ||
@replace = args['replace'] | ||
end | ||
|
||
def to_s | ||
"#{@parent_identifier} UrlMapPathMatchersHeaderActionResponseHeadersToAdd" | ||
end | ||
end | ||
|
||
class UrlMapPathMatchersHeaderActionResponseHeadersToAddArray | ||
def self.parse(value, parent_identifier) | ||
return if value.nil? | ||
return UrlMapPathMatchersHeaderActionResponseHeadersToAdd.new(value, parent_identifier) unless value.is_a?(::Array) | ||
value.map { |v| UrlMapPathMatchersHeaderActionResponseHeadersToAdd.new(v, parent_identifier) } | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.