Class: Google::Apis::CloudprofilerV2::Deployment
- Inherits:
-
Object
- Object
- Google::Apis::CloudprofilerV2::Deployment
- 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
-
#labels ⇒ Hash<String,String>
Labels identify the deployment within the user universe and same target.
-
#project_id ⇒ String
Project ID is the ID of a cloud project.
-
#target ⇒ String
Target is the service name used to group related deployments: * Service name for GAE Flex / Standard.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Deployment
constructor
A new instance of Deployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#labels ⇒ Hash<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
69 70 71 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 69 def labels @labels end |
#project_id ⇒ String
Project ID is the ID of a cloud project. Validation regex: ^a-z
4,61[a-z0-9]$
.
Corresponds to the JSON property projectId
75 76 77 |
# File 'generated/google/apis/cloudprofiler_v2/classes.rb', line 75 def project_id @project_id end |
#target ⇒ String
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
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 |