Class: Google::Compute::Data::BackServCachKeyPoliApi

Inherits:
BackServCachKeyPoli show all
Defined in:
lib/google/compute/property/backendservice_cache_key_policy.rb

Overview

Manages a BackServCachKeyPoli nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from BackServCachKeyPoli

#include_host, #include_protocol, #include_query_string, #query_string_blacklist, #query_string_whitelist

Instance Method Summary collapse

Methods inherited from BackServCachKeyPoli

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ BackServCachKeyPoliApi

rubocop:disable Metrics/MethodLength



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# File 'lib/google/compute/property/backendservice_cache_key_policy.rb', line 105

def initialize(args)
  @include_host =
    Google::Compute::Property::Boolean.api_munge(args['includeHost'])
  @include_protocol = Google::Compute::Property::Boolean.api_munge(
    args['includeProtocol']
  )
  @include_query_string = Google::Compute::Property::Boolean.api_munge(
    args['includeQueryString']
  )
  @query_string_blacklist =
    Google::Compute::Property::StringArray.api_munge(
      args['queryStringBlacklist']
    )
  @query_string_whitelist =
    Google::Compute::Property::StringArray.api_munge(
      args['queryStringWhitelist']
    )
end