Class: Google::Apis::CloudprofilerV2::CreateProfileRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudprofilerV2::CreateProfileRequest
- Defined in:
- generated/google/apis/cloudprofiler_v2/classes.rb,
generated/google/apis/cloudprofiler_v2/representations.rb,
generated/google/apis/cloudprofiler_v2/representations.rb
Overview
CreateProfileRequest describes a profile resource online creation request. The deployment field must be populated. The profile_type specifies the list of profile types supported by the agent. The creation call will hang until a profile of one of these types needs to be collected.
Instance Attribute Summary collapse
-
#deployment ⇒ Google::Apis::CloudprofilerV2::Deployment
Deployment contains the deployment identification information.
-
#profile_type ⇒ Array<String>
One or more profile types that the agent is capable of providing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CreateProfileRequest
constructor
A new instance of CreateProfileRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CreateProfileRequest
Returns a new instance of CreateProfileRequest
42 43 44 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 42 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deployment ⇒ Google::Apis::CloudprofilerV2::Deployment
Deployment contains the deployment identification information.
Corresponds to the JSON property deployment
35 36 37 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 35 def deployment @deployment end |
#profile_type ⇒ Array<String>
One or more profile types that the agent is capable of providing.
Corresponds to the JSON property profileType
40 41 42 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 40 def profile_type @profile_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
47 48 49 50 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 47 def update!(**args) @deployment = args[:deployment] if args.key?(:deployment) @profile_type = args[:profile_type] if args.key?(:profile_type) end |