Class: Google::Apis::BaremetalsolutionV2::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NetworkConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
Configuration parameters for a new network.
Instance Attribute Summary collapse
-
#bandwidth ⇒ String
Interconnect bandwidth.
-
#cidr ⇒ String
CIDR range of the network.
-
#gcp_service ⇒ String
The GCP service of the network.
-
#id ⇒ String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
-
#name ⇒ String
Output only.
-
#service_cidr ⇒ String
Service CIDR, if any.
-
#type ⇒ String
The type of this network, either Client or Private.
-
#user_note ⇒ String
User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617).
-
#vlan_attachments ⇒ Array<Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment>
List of VLAN attachments.
-
#vlan_same_project ⇒ Boolean
(also: #vlan_same_project?)
Whether the VLAN attachment pair is located in the same project.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
980 981 982 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 980 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bandwidth ⇒ String
Interconnect bandwidth. Set only when type is CLIENT.
Corresponds to the JSON property bandwidth
928 929 930 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 928 def bandwidth @bandwidth end |
#cidr ⇒ String
CIDR range of the network.
Corresponds to the JSON property cidr
933 934 935 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 933 def cidr @cidr end |
#gcp_service ⇒ String
The GCP service of the network. Available gcp_service are in https://cloud.
google.com/bare-metal/docs/bms-planning.
Corresponds to the JSON property gcpService
939 940 941 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 939 def gcp_service @gcp_service end |
#id ⇒ String
A transient unique identifier to identify a volume within an
ProvisioningConfig request.
Corresponds to the JSON property id
945 946 947 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 945 def id @id end |
#name ⇒ String
Output only. The name of the network config.
Corresponds to the JSON property name
950 951 952 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 950 def name @name end |
#service_cidr ⇒ String
Service CIDR, if any.
Corresponds to the JSON property serviceCidr
955 956 957 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 955 def service_cidr @service_cidr end |
#type ⇒ String
The type of this network, either Client or Private.
Corresponds to the JSON property type
960 961 962 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 960 def type @type end |
#user_note ⇒ String
User note field, it can be used by customers to add additional information for
the BMS Ops team (b/194021617).
Corresponds to the JSON property userNote
966 967 968 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 966 def user_note @user_note end |
#vlan_attachments ⇒ Array<Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment>
List of VLAN attachments. As of now there are always 2 attachments, but it is
going to change in the future (multi vlan).
Corresponds to the JSON property vlanAttachments
972 973 974 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 972 def @vlan_attachments end |
#vlan_same_project ⇒ Boolean Also known as: vlan_same_project?
Whether the VLAN attachment pair is located in the same project.
Corresponds to the JSON property vlanSameProject
977 978 979 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 977 def vlan_same_project @vlan_same_project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
985 986 987 988 989 990 991 992 993 994 995 996 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 985 def update!(**args) @bandwidth = args[:bandwidth] if args.key?(:bandwidth) @cidr = args[:cidr] if args.key?(:cidr) @gcp_service = args[:gcp_service] if args.key?(:gcp_service) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @service_cidr = args[:service_cidr] if args.key?(:service_cidr) @type = args[:type] if args.key?(:type) @user_note = args[:user_note] if args.key?(:user_note) @vlan_attachments = args[:vlan_attachments] if args.key?(:vlan_attachments) @vlan_same_project = args[:vlan_same_project] if args.key?(:vlan_same_project) end |