Class: Google::Apis::ComputeAlpha::NetworkPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NetworkPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Overview
Represents a Network Policy resource.
Instance Attribute Summary collapse
-
#associations ⇒ Array<Google::Apis::ComputeAlpha::NetworkPolicyAssociation>
[Output Only] A list of associations that belong to this network policy.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional description of this resource.
-
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource.
-
#kind ⇒ String
[Output only] Type of the resource.
-
#name ⇒ String
Name of the resource.
-
#region ⇒ String
[Output Only] URL of the region where the regional network policy resides.
-
#rule_tuple_count ⇒ Fixnum
[Output Only] Total count of all network policy rule tuples.
-
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
-
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
-
#traffic_classification_rules ⇒ Array<Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule>
[Output Only] A list of traffic classification rules that belong to this policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkPolicy
constructor
A new instance of NetworkPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkPolicy
Returns a new instance of NetworkPolicy.
38973 38974 38975 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38973 def initialize(**args) update!(**args) end |
Instance Attribute Details
#associations ⇒ Array<Google::Apis::ComputeAlpha::NetworkPolicyAssociation>
[Output Only] A list of associations that belong to this network policy.
Corresponds to the JSON property associations
38914 38915 38916 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38914 def associations @associations end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
38919 38920 38921 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38919 def @creation_timestamp end |
#description ⇒ String
An optional description of this resource. Provide this property when you
create the resource.
Corresponds to the JSON property description
38925 38926 38927 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38925 def description @description end |
#id ⇒ Fixnum
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
Corresponds to the JSON property id
38931 38932 38933 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38931 def id @id end |
#kind ⇒ String
[Output only] Type of the resource. Always compute#networkPolicy for network
policies
Corresponds to the JSON property kind
38937 38938 38939 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38937 def kind @kind end |
#name ⇒ String
Name of the resource.
Corresponds to the JSON property name
38942 38943 38944 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38942 def name @name end |
#region ⇒ String
[Output Only] URL of the region where the regional network policy resides. You
must specify this field as part of the HTTP request URL. It is not settable as
a field in the request body.
Corresponds to the JSON property region
38949 38950 38951 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38949 def region @region end |
#rule_tuple_count ⇒ Fixnum
[Output Only] Total count of all network policy rule tuples. A network policy
can not exceed a set number of tuples.
Corresponds to the JSON property ruleTupleCount
38955 38956 38957 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38955 def rule_tuple_count @rule_tuple_count end |
#self_link ⇒ String
[Output Only] Server-defined URL for the resource.
Corresponds to the JSON property selfLink
38960 38961 38962 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38960 def self_link @self_link end |
#self_link_with_id ⇒ String
[Output Only] Server-defined URL for this resource with the resource id.
Corresponds to the JSON property selfLinkWithId
38965 38966 38967 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38965 def self_link_with_id @self_link_with_id end |
#traffic_classification_rules ⇒ Array<Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule>
[Output Only] A list of traffic classification rules that belong to this
policy.
Corresponds to the JSON property trafficClassificationRules
38971 38972 38973 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38971 def traffic_classification_rules @traffic_classification_rules end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
38978 38979 38980 38981 38982 38983 38984 38985 38986 38987 38988 38989 38990 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 38978 def update!(**args) @associations = args[:associations] if args.key?(:associations) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @region = args[:region] if args.key?(:region) @rule_tuple_count = args[:rule_tuple_count] if args.key?(:rule_tuple_count) @self_link = args[:self_link] if args.key?(:self_link) @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @traffic_classification_rules = args[:traffic_classification_rules] if args.key?(:traffic_classification_rules) end |