Class: Google::Apis::NetworksecurityV1beta1::AddressGroup
- Inherits:
-
Object
- Object
- Google::Apis::NetworksecurityV1beta1::AddressGroup
- 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
-
#capacity ⇒ Fixnum
Required.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#items ⇒ Array<String>
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Required.
-
#purpose ⇒ Array<String>
Optional.
-
#self_link ⇒ String
Output only.
-
#type ⇒ String
Required.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddressGroup
constructor
A new instance of AddressGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#capacity ⇒ Fixnum
Required. Capacity of the Address Group
Corresponds to the JSON property capacity
67 68 69 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 67 def capacity @capacity end |
#create_time ⇒ String
Output only. The timestamp when the resource was created.
Corresponds to the JSON property createTime
72 73 74 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 72 def create_time @create_time end |
#description ⇒ String
Optional. Free-text description of the resource.
Corresponds to the JSON property description
77 78 79 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 77 def description @description end |
#items ⇒ Array<String>
Optional. List of items.
Corresponds to the JSON property items
82 83 84 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 82 def items @items end |
#labels ⇒ Hash<String,String>
Optional. Set of label tags associated with the AddressGroup resource.
Corresponds to the JSON property labels
87 88 89 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 87 def labels @labels end |
#name ⇒ String
Required. Name of the AddressGroup resource. It matches pattern projects/*/
locations/
location/addressGroups/
.
Corresponds to the JSON property name
93 94 95 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 93 def name @name end |
#purpose ⇒ Array<String>
Optional. List of supported purposes of the Address Group.
Corresponds to the JSON property purpose
98 99 100 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 98 def purpose @purpose end |
#self_link ⇒ String
Output only. Server-defined fully-qualified URL for this resource.
Corresponds to the JSON property selfLink
103 104 105 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 103 def self_link @self_link end |
#type ⇒ String
Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
Corresponds to the JSON property type
108 109 110 |
# File 'lib/google/apis/networksecurity_v1beta1/classes.rb', line 108 def type @type end |
#update_time ⇒ String
Output only. The timestamp when the resource was updated.
Corresponds to the JSON property updateTime
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 |