Class: Google::Apis::CloudprofilerV2::Deployment

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

Deployment contains the deployment identification information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Deployment

Returns a new instance of Deployment.



85
86
87
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 85

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#labelsHash<String,String>

Labels identify the deployment within the user universe and same target. Validation regex for label names: ^[a-z0-9]([a-z0-9-]0,61[a-z0-9])?$. Value for an individual label must be <= 512 bytes, the total size of all label names and values must be <= 1024 bytes. Label named "language" can be used to record the programming language of the profiled deployment. The standard choices for the value include "java", "go", "python", "ruby", "nodejs" , "php", "dotnet". For deployments running on Google Cloud Platform, "zone" or "region" label should be present describing the deployment location. An example of a zone is "us-central1-a", an example of a region is "us-central1" or "us-central". Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


69
70
71
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 69

def labels
  @labels
end

#project_idString

Project ID is the ID of a cloud project. Validation regex: ^a-z4,61[a-z0-9]$ . Corresponds to the JSON property projectId

Returns:

  • (String)


75
76
77
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 75

def project_id
  @project_id
end

#targetString

Target is the service name used to group related deployments: * Service name for GAE Flex / Standard. * Cluster and container name for GKE. * User- specified string for direct GCE profiling (e.g. Java). * Job name for Dataflow. Validation regex: ^[a-z]([-a-z0-9_.]0,253[a-z0-9])?$. Corresponds to the JSON property target

Returns:

  • (String)


83
84
85
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 83

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



90
91
92
93
94
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 90

def update!(**args)
  @labels = args[:labels] if args.key?(:labels)
  @project_id = args[:project_id] if args.key?(:project_id)
  @target = args[:target] if args.key?(:target)
end