Class: Google::Apis::NetworkconnectivityV1::ServiceClass
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::ServiceClass
- 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: 9
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A description of this resource.
-
#etag ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
User-defined labels.
-
#name ⇒ String
Immutable.
-
#service_class ⇒ String
Output only.
-
#service_connection_maps ⇒ Array<String>
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceClass
constructor
A new instance of ServiceClass.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceClass
Returns a new instance of ServiceClass.
1886 1887 1888 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1886 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time when the ServiceClass was created.
Corresponds to the JSON property createTime
1845 1846 1847 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1845 def create_time @create_time end |
#description ⇒ String
A description of this resource.
Corresponds to the JSON property description
1850 1851 1852 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1850 def description @description end |
#etag ⇒ String
Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before proceeding.
Corresponds to the JSON property etag
1856 1857 1858 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1856 def etag @etag end |
#labels ⇒ Hash<String,String>
User-defined labels.
Corresponds to the JSON property labels
1861 1862 1863 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1861 def labels @labels end |
#name ⇒ String
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
1868 1869 1870 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1868 def name @name end |
#service_class ⇒ String
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
1874 1875 1876 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1874 def service_class @service_class end |
#service_connection_maps ⇒ Array<String>
Output only. URIs of all Service Connection Maps using this service class.
Corresponds to the JSON property serviceConnectionMaps
1879 1880 1881 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1879 def service_connection_maps @service_connection_maps end |
#update_time ⇒ String
Output only. Time when the ServiceClass was updated.
Corresponds to the JSON property updateTime
1884 1885 1886 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1884 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 1891 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @etag = args[:etag] if args.key?(:etag) @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 |