Class: Google::Apis::NetworksecurityV1::UrlList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1/classes.rb,
lib/google/apis/networksecurity_v1/representations.rb,
lib/google/apis/networksecurity_v1/representations.rb

Overview

UrlList proto helps users to set reusable, independently manageable lists of hosts, host patterns, URLs, URL patterns.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UrlList

Returns a new instance of UrlList.



5104
5105
5106
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5104

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Time when the security policy was created. Corresponds to the JSON property createTime

Returns:

  • (String)


5080
5081
5082
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5080

def create_time
  @create_time
end

#descriptionString

Optional. Free-text description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


5085
5086
5087
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5085

def description
  @description
end

#nameString

Required. Name of the resource provided by the user. Name is of the form projects/project/locations/location/urlLists/url_list url_list should match the pattern:(^a-z?$). Corresponds to the JSON property name

Returns:

  • (String)


5092
5093
5094
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5092

def name
  @name
end

#update_timeString

Output only. Time when the security policy was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


5097
5098
5099
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5097

def update_time
  @update_time
end

#valuesArray<String>

Required. FQDNs and URLs. Corresponds to the JSON property values

Returns:

  • (Array<String>)


5102
5103
5104
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5102

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5109
5110
5111
5112
5113
5114
5115
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 5109

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @update_time = args[:update_time] if args.key?(:update_time)
  @values = args[:values] if args.key?(:values)
end