Class: Google::Apis::CloudprofilerV2::CreateProfileRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

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

#deploymentGoogle::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_typeArray<String>

One or more profile types that the agent is capable of providing. Corresponds to the JSON property profileType

Returns:

  • (Array<String>)


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