Class: Google::Apis::ApphubV1alpha::Service
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::Service
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1alpha/classes.rb,
lib/google/apis/apphub_v1alpha/representations.rb,
lib/google/apis/apphub_v1alpha/representations.rb
Overview
Service is an App Hub data model that contains a discovered service, which represents a network/api interface that exposes some functionality to clients for consumption over the network.
Instance Attribute Summary collapse
-
#attributes ⇒ Google::Apis::ApphubV1alpha::Attributes
Consumer provided attributes.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
Optional.
-
#discovered_service ⇒ String
Required.
-
#display_name ⇒ String
Optional.
-
#name ⇒ String
Identifier.
-
#service_properties ⇒ Google::Apis::ApphubV1alpha::ServiceProperties
Properties of an underlying cloud resource that can comprise a Service.
-
#service_reference ⇒ Google::Apis::ApphubV1alpha::ServiceReference
Reference to an underlying networking resource that can comprise a Service.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Service
constructor
A new instance of Service.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Service
Returns a new instance of Service.
1312 1313 1314 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1312 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Google::Apis::ApphubV1alpha::Attributes
Consumer provided attributes.
Corresponds to the JSON property attributes
1258 1259 1260 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1258 def attributes @attributes end |
#create_time ⇒ String
Output only. Create time.
Corresponds to the JSON property createTime
1263 1264 1265 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1263 def create_time @create_time end |
#description ⇒ String
Optional. User-defined description of a Service.
Corresponds to the JSON property description
1268 1269 1270 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1268 def description @description end |
#discovered_service ⇒ String
Required. Immutable. The resource name of the original discovered service.
Corresponds to the JSON property discoveredService
1273 1274 1275 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1273 def discovered_service @discovered_service end |
#display_name ⇒ String
Optional. User-defined name for the Service.
Corresponds to the JSON property displayName
1278 1279 1280 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1278 def display_name @display_name end |
#name ⇒ String
Identifier. The resource name of a Service. Format: "projects/host-project-id
/locations/location/applications/application-id/services/service-id"
Corresponds to the JSON property name
1284 1285 1286 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1284 def name @name end |
#service_properties ⇒ Google::Apis::ApphubV1alpha::ServiceProperties
Properties of an underlying cloud resource that can comprise a Service.
Corresponds to the JSON property serviceProperties
1289 1290 1291 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1289 def service_properties @service_properties end |
#service_reference ⇒ Google::Apis::ApphubV1alpha::ServiceReference
Reference to an underlying networking resource that can comprise a Service.
Corresponds to the JSON property serviceReference
1294 1295 1296 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1294 def service_reference @service_reference end |
#state ⇒ String
Output only. Service state.
Corresponds to the JSON property state
1299 1300 1301 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1299 def state @state end |
#uid ⇒ String
Output only. A universally unique identifier (UUID) for the Service in the
UUID4 format.
Corresponds to the JSON property uid
1305 1306 1307 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1305 def uid @uid end |
#update_time ⇒ String
Output only. Update time.
Corresponds to the JSON property updateTime
1310 1311 1312 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1310 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1317 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @discovered_service = args[:discovered_service] if args.key?(:discovered_service) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @service_properties = args[:service_properties] if args.key?(:service_properties) @service_reference = args[:service_reference] if args.key?(:service_reference) @state = args[:state] if args.key?(:state) @uid = args[:uid] if args.key?(:uid) @update_time = args[:update_time] if args.key?(:update_time) end |