Class: Google::Apis::ClouddeployV1::ServiceNetworking
- Inherits:
-
Object
- Object
- Google::Apis::ClouddeployV1::ServiceNetworking
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/clouddeploy_v1/classes.rb,
lib/google/apis/clouddeploy_v1/representations.rb,
lib/google/apis/clouddeploy_v1/representations.rb
Overview
Information about the Kubernetes Service networking configuration.
Instance Attribute Summary collapse
-
#deployment ⇒ String
Required.
-
#service ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceNetworking
constructor
A new instance of ServiceNetworking.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceNetworking
Returns a new instance of ServiceNetworking.
2783 2784 2785 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2783 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deployment ⇒ String
Required. Name of the Kubernetes Deployment whose traffic is managed by the
specified Service.
Corresponds to the JSON property deployment
2776 2777 2778 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2776 def deployment @deployment end |
#service ⇒ String
Required. Name of the Kubernetes Service.
Corresponds to the JSON property service
2781 2782 2783 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2781 def service @service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2788 2789 2790 2791 |
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2788 def update!(**args) @deployment = args[:deployment] if args.key?(:deployment) @service = args[:service] if args.key?(:service) end |