Class: Google::Apis::NetworksecurityV1beta1::AddressGroup

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

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.



115
116
117
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 115

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_v1beta1/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_v1beta1/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_v1beta1/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_v1beta1/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_v1beta1/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_v1beta1/classes.rb', line 93

def name
  @name
end

#purposeArray<String>

Optional. List of supported purposes of the Address Group. Corresponds to the JSON property purpose

Returns:

  • (Array<String>)


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

def purpose
  @purpose
end

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

Returns:

  • (String)


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

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)


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

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 113

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



120
121
122
123
124
125
126
127
128
129
130
131
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 120

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)
  @purpose = args[:purpose] if args.key?(:purpose)
  @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