Class: Google::Apis::NetworkconnectivityV1::ServiceClass

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb

Overview

The ServiceClass resource. Next id: 8

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ServiceClass

Returns a new instance of ServiceClass.



1489
1490
1491
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1489

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

Instance Attribute Details

#create_timeString

Output only. Time when the ServiceClass was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1454
1455
1456
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1454

def create_time
  @create_time
end

#descriptionString

A description of this resource. Corresponds to the JSON property description

Returns:

  • (String)


1459
1460
1461
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1459

def description
  @description
end

#labelsHash<String,String>

User-defined labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1464
1465
1466
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1464

def labels
  @labels
end

#nameString

Immutable. The name of a ServiceClass resource. Format: projects/project/ locations/location/serviceClasses/service_class See: https://google.aip. dev/122#fields-representing-resource-names Corresponds to the JSON property name

Returns:

  • (String)


1471
1472
1473
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1471

def name
  @name
end

#service_classString

Output only. The generated service class name. Use this name to refer to the Service class in Service Connection Maps and Service Connection Policies. Corresponds to the JSON property serviceClass

Returns:

  • (String)


1477
1478
1479
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1477

def service_class
  @service_class
end

#service_connection_mapsArray<String>

Output only. URIs of all Service Connection Maps using this service class. Corresponds to the JSON property serviceConnectionMaps

Returns:

  • (Array<String>)


1482
1483
1484
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1482

def service_connection_maps
  @service_connection_maps
end

#update_timeString

Output only. Time when the ServiceClass was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1487
1488
1489
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1487

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1494
1495
1496
1497
1498
1499
1500
1501
1502
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1494

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @service_class = args[:service_class] if args.key?(:service_class)
  @service_connection_maps = args[:service_connection_maps] if args.key?(:service_connection_maps)
  @update_time = args[:update_time] if args.key?(:update_time)
end