Class: Google::Apis::NetworksecurityV1beta1::UrlList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networksecurity_v1beta1/classes.rb,
lib/google/apis/networksecurity_v1beta1/representations.rb,
lib/google/apis/networksecurity_v1beta1/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.



3927
3928
3929
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3927

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)


3903
3904
3905
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3903

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


3908
3909
3910
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3908

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)


3915
3916
3917
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3915

def name
  @name
end

#update_timeString

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

Returns:

  • (String)


3920
3921
3922
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3920

def update_time
  @update_time
end

#valuesArray<String>

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

Returns:

  • (Array<String>)


3925
3926
3927
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3925

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3932
3933
3934
3935
3936
3937
3938
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 3932

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