Skip to content

Commit 3009ee3

Browse files
feat(cloudprofiler): update the api
#### cloudprofiler:v2 The following keys were added: - schemas.Profile.properties.name.readOnly (Total Keys: 1)
1 parent c8add7c commit 3009ee3

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

docs/dyn/cloudprofiler_v2.projects.profiles.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ <h3>Method Details</h3>
102102
The object takes the form of:
103103

104104
{ # 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.
105-
&quot;deployment&quot;: { # Deployment contains the deployment identification information. # Deployment details.
105+
&quot;deployment&quot;: { # Deployment contains the deployment identification information. # Required. Deployment details.
106106
&quot;labels&quot;: { # 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 &lt;= 512 bytes, the total size of all label names and values must be &lt;= 1024 bytes. Label named &quot;language&quot; can be used to record the programming language of the profiled deployment. The standard choices for the value include &quot;java&quot;, &quot;go&quot;, &quot;python&quot;, &quot;ruby&quot;, &quot;nodejs&quot;, &quot;php&quot;, &quot;dotnet&quot;. For deployments running on Google Cloud Platform, &quot;zone&quot; or &quot;region&quot; label should be present describing the deployment location. An example of a zone is &quot;us-central1-a&quot;, an example of a region is &quot;us-central1&quot; or &quot;us-central&quot;.
107107
&quot;a_key&quot;: &quot;A String&quot;,
108108
},
109109
&quot;projectId&quot;: &quot;A String&quot;, # Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`.
110-
&quot;target&quot;: &quot;A String&quot;, # 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])?$`.
110+
&quot;target&quot;: &quot;A String&quot;, # Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
111111
},
112-
&quot;profileType&quot;: [ # One or more profile types that the agent is capable of providing.
112+
&quot;profileType&quot;: [ # Required. One or more profile types that the agent is capable of providing.
113113
&quot;A String&quot;,
114114
],
115115
}
@@ -128,7 +128,7 @@ <h3>Method Details</h3>
128128
&quot;a_key&quot;: &quot;A String&quot;,
129129
},
130130
&quot;projectId&quot;: &quot;A String&quot;, # Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`.
131-
&quot;target&quot;: &quot;A String&quot;, # 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])?$`.
131+
&quot;target&quot;: &quot;A String&quot;, # Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
132132
},
133133
&quot;duration&quot;: &quot;A String&quot;, # Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can&#x27;t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
134134
&quot;labels&quot;: { # Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.
@@ -155,7 +155,7 @@ <h3>Method Details</h3>
155155
&quot;a_key&quot;: &quot;A String&quot;,
156156
},
157157
&quot;projectId&quot;: &quot;A String&quot;, # Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`.
158-
&quot;target&quot;: &quot;A String&quot;, # 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])?$`.
158+
&quot;target&quot;: &quot;A String&quot;, # Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
159159
},
160160
&quot;duration&quot;: &quot;A String&quot;, # Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can&#x27;t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
161161
&quot;labels&quot;: { # Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.
@@ -180,7 +180,7 @@ <h3>Method Details</h3>
180180
&quot;a_key&quot;: &quot;A String&quot;,
181181
},
182182
&quot;projectId&quot;: &quot;A String&quot;, # Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`.
183-
&quot;target&quot;: &quot;A String&quot;, # 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])?$`.
183+
&quot;target&quot;: &quot;A String&quot;, # Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
184184
},
185185
&quot;duration&quot;: &quot;A String&quot;, # Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can&#x27;t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
186186
&quot;labels&quot;: { # Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.
@@ -207,7 +207,7 @@ <h3>Method Details</h3>
207207
&quot;a_key&quot;: &quot;A String&quot;,
208208
},
209209
&quot;projectId&quot;: &quot;A String&quot;, # Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`.
210-
&quot;target&quot;: &quot;A String&quot;, # 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])?$`.
210+
&quot;target&quot;: &quot;A String&quot;, # Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
211211
},
212212
&quot;duration&quot;: &quot;A String&quot;, # Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can&#x27;t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
213213
&quot;labels&quot;: { # Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.
@@ -233,7 +233,7 @@ <h3>Method Details</h3>
233233
&quot;a_key&quot;: &quot;A String&quot;,
234234
},
235235
&quot;projectId&quot;: &quot;A String&quot;, # Project ID is the ID of a cloud project. Validation regex: `^a-z{4,61}[a-z0-9]$`.
236-
&quot;target&quot;: &quot;A String&quot;, # 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])?$`.
236+
&quot;target&quot;: &quot;A String&quot;, # Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
237237
},
238238
&quot;duration&quot;: &quot;A String&quot;, # Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can&#x27;t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).
239239
&quot;labels&quot;: { # Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.

googleapiclient/discovery_cache/documents/cloudprofiler.v2.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
}
217217
}
218218
},
219-
"revision": "20210827",
219+
"revision": "20210903",
220220
"rootUrl": "https://cloudprofiler.googleapis.com/",
221221
"schemas": {
222222
"CreateProfileRequest": {
@@ -225,10 +225,10 @@
225225
"properties": {
226226
"deployment": {
227227
"$ref": "Deployment",
228-
"description": "Deployment details."
228+
"description": "Required. Deployment details."
229229
},
230230
"profileType": {
231-
"description": "One or more profile types that the agent is capable of providing.",
231+
"description": "Required. One or more profile types that the agent is capable of providing.",
232232
"items": {
233233
"enum": [
234234
"PROFILE_TYPE_UNSPECIFIED",
@@ -273,7 +273,7 @@
273273
"type": "string"
274274
},
275275
"target": {
276-
"description": "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])?$`.",
276+
"description": "Target is the service name used to group related deployments: * Service name for App Engine Flex / Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.",
277277
"type": "string"
278278
}
279279
},
@@ -301,6 +301,7 @@
301301
},
302302
"name": {
303303
"description": "Output only. Opaque, server-assigned, unique ID for this profile.",
304+
"readOnly": true,
304305
"type": "string"
305306
},
306307
"profileBytes": {

0 commit comments

Comments
 (0)