Class: Google::Apis::NetworksecurityV1::AddressGroup

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

AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddressGroup

Returns a new instance of AddressGroup.



110
111
112
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 110

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

Instance Attribute Details

#capacityFixnum

Required. Capacity of the Address Group Corresponds to the JSON property capacity

Returns:

  • (Fixnum)


67
68
69
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 67

def capacity
  @capacity
end

#create_timeString

Output only. The timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 72

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 77

def description
  @description
end

#itemsArray<String>

Optional. List of items. Corresponds to the JSON property items

Returns:

  • (Array<String>)


82
83
84
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 82

def items
  @items
end

#labelsHash<String,String>

Optional. Set of label tags associated with the AddressGroup resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


87
88
89
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 87

def labels
  @labels
end

#nameString

Required. Name of the AddressGroup resource. It matches pattern projects/*/ locations/location/addressGroups/. Corresponds to the JSON property name

Returns:

  • (String)


93
94
95
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 93

def name
  @name
end

Output only. Server-defined fully-qualified URL for this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 98

def self_link
  @self_link
end

#typeString

Required. The type of the Address Group. Possible values are "IPv4" or "IPV6". Corresponds to the JSON property type

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 103

def type
  @type
end

#update_timeString

Output only. The timestamp when the resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


108
109
110
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 108

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



115
116
117
118
119
120
121
122
123
124
125
# File 'lib/google/apis/networksecurity_v1/classes.rb', line 115

def update!(**args)
  @capacity = args[:capacity] if args.key?(:capacity)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @items = args[:items] if args.key?(:items)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @self_link = args[:self_link] if args.key?(:self_link)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end