Close httplib2 connections.
Gets a single Deployment Event.
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists Deployment Events in a given insights config.
Retrieves the next page of results.
close()
Close httplib2 connections.
get(name, x__xgafv=None)
Gets a single Deployment Event.
Args:
name: string, Required. The name of the deployment event to retrieve. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid} (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # The DeploymentEvent resource represents the deployment of the artifact within the InsightsConfig resource.
"artifactDeployments": [ # Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.
{ # The ArtifactDeployment resource represents the deployment of the artifact within the InsightsConfig resource.
"artifactAlias": "A String", # Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
"artifactReference": "A String", # Output only. The artifact that is deployed.
"containerStatusSummary": "A String", # Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
"deployTime": "A String", # Output only. The time at which the deployment was deployed.
"id": "A String", # Output only. Unique identifier of `ArtifactDeployment`.
"sourceCommitUris": [ # Output only. The source commits at which this artifact was built. Extracted from provenance.
"A String",
],
"undeployTime": "A String", # Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
},
],
"createTime": "A String", # Output only. The create time of the DeploymentEvent.
"deployTime": "A String", # Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.
"name": "A String", # Identifier. The name of the DeploymentEvent. This name is provided by DCI. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid}
"runtimeConfig": { # RuntimeConfig represents the runtimes where the application is deployed. # Output only. The runtime configurations where the DeploymentEvent happened.
"appHubService": { # AppHubService represents the App Hub Service. # Output only. App Hub Service.
"apphubService": "A String", # Required. Output only. Immutable. The name of the App Hub Service. Format: `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
"criticality": "A String", # Output only. The criticality of the App Hub Service.
"environment": "A String", # Output only. The environment of the App Hub Service.
},
"appHubWorkload": { # AppHubWorkload represents the App Hub Workload. # Output only. App Hub Workload.
"criticality": "A String", # Output only. The criticality of the App Hub Workload.
"environment": "A String", # Output only. The environment of the App Hub Workload.
"workload": "A String", # Required. Output only. Immutable. The name of the App Hub Workload. Format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
},
"gkeWorkload": { # GKEWorkload represents the Google Kubernetes Engine runtime. # Output only. Google Kubernetes Engine runtime.
"cluster": "A String", # Required. Immutable. The name of the GKE cluster. Format: `projects/{project}/locations/{location}/clusters/{cluster}`.
"deployment": "A String", # Output only. The name of the GKE deployment. Format: `projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}`.
},
"googleCloudRun": { # GoogleCloudRun represents the Cloud Run runtime. # Output only. Cloud Run runtime.
"serviceUri": "A String", # Required. Immutable. The name of the Cloud Run service. Format: `projects/{project}/locations/{location}/services/{service}`.
},
"state": "A String", # Output only. The state of the Runtime.
"uri": "A String", # Required. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
},
"runtimeDeploymentUri": "A String", # Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name.
"state": "A String", # Output only. The state of the DeploymentEvent.
"undeployTime": "A String", # Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty.
"updateTime": "A String", # Output only. The update time of the DeploymentEvent.
}
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists Deployment Events in a given insights config.
Args:
parent: string, Required. The parent insights config that owns this collection of deployment events. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config} (required)
filter: string, Optional. Filter expression that matches a subset of the DeploymentEvents. https://google.aip.dev/160.
pageSize: integer, Optional. The maximum number of deployment events to return. The service may return fewer than this value. If unspecified, at most 50 deployment events will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
pageToken: string, Optional. A page token, received from a previous `ListDeploymentEvents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDeploymentEvents` must match the call that provided the page token.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response to listing DeploymentEvents.
"deploymentEvents": [ # The list of DeploymentEvents.
{ # The DeploymentEvent resource represents the deployment of the artifact within the InsightsConfig resource.
"artifactDeployments": [ # Output only. The artifact deployments of the DeploymentEvent. Each artifact deployment contains the artifact uri and the runtime configuration uri. For GKE, this would be all the containers images that are deployed in the pod.
{ # The ArtifactDeployment resource represents the deployment of the artifact within the InsightsConfig resource.
"artifactAlias": "A String", # Output only. The artifact alias in the deployment spec, with Tag/SHA. e.g. us-docker.pkg.dev/my-project/my-repo/image:1.0.0
"artifactReference": "A String", # Output only. The artifact that is deployed.
"containerStatusSummary": "A String", # Output only. The summary of container status of the artifact deployment. Format as `ContainerStatusState-Reason : restartCount` e.g. "Waiting-ImagePullBackOff : 3"
"deployTime": "A String", # Output only. The time at which the deployment was deployed.
"id": "A String", # Output only. Unique identifier of `ArtifactDeployment`.
"sourceCommitUris": [ # Output only. The source commits at which this artifact was built. Extracted from provenance.
"A String",
],
"undeployTime": "A String", # Output only. The time at which the deployment was undeployed, all artifacts are considered undeployed once this time is set.
},
],
"createTime": "A String", # Output only. The create time of the DeploymentEvent.
"deployTime": "A String", # Output only. The time at which the DeploymentEvent was deployed. This would be the min of all ArtifactDeployment deploy_times.
"name": "A String", # Identifier. The name of the DeploymentEvent. This name is provided by DCI. Format: projects/{project}/locations/{location}/insightsConfigs/{insights_config}/deploymentEvents/{uuid}
"runtimeConfig": { # RuntimeConfig represents the runtimes where the application is deployed. # Output only. The runtime configurations where the DeploymentEvent happened.
"appHubService": { # AppHubService represents the App Hub Service. # Output only. App Hub Service.
"apphubService": "A String", # Required. Output only. Immutable. The name of the App Hub Service. Format: `projects/{project}/locations/{location}/applications/{application}/services/{service}`.
"criticality": "A String", # Output only. The criticality of the App Hub Service.
"environment": "A String", # Output only. The environment of the App Hub Service.
},
"appHubWorkload": { # AppHubWorkload represents the App Hub Workload. # Output only. App Hub Workload.
"criticality": "A String", # Output only. The criticality of the App Hub Workload.
"environment": "A String", # Output only. The environment of the App Hub Workload.
"workload": "A String", # Required. Output only. Immutable. The name of the App Hub Workload. Format: `projects/{project}/locations/{location}/applications/{application}/workloads/{workload}`.
},
"gkeWorkload": { # GKEWorkload represents the Google Kubernetes Engine runtime. # Output only. Google Kubernetes Engine runtime.
"cluster": "A String", # Required. Immutable. The name of the GKE cluster. Format: `projects/{project}/locations/{location}/clusters/{cluster}`.
"deployment": "A String", # Output only. The name of the GKE deployment. Format: `projects/{project}/locations/{location}/clusters/{cluster}/namespaces/{namespace}/deployments/{deployment}`.
},
"googleCloudRun": { # GoogleCloudRun represents the Cloud Run runtime. # Output only. Cloud Run runtime.
"serviceUri": "A String", # Required. Immutable. The name of the Cloud Run service. Format: `projects/{project}/locations/{location}/services/{service}`.
},
"state": "A String", # Output only. The state of the Runtime.
"uri": "A String", # Required. Immutable. The URI of the runtime configuration. For GKE, this is the cluster name. For Cloud Run, this is the service name.
},
"runtimeDeploymentUri": "A String", # Output only. The runtime assigned URI of the DeploymentEvent. For GKE, this is the fully qualified replica set uri. e.g. container.googleapis.com/projects/{project}/locations/{location}/clusters/{cluster}/k8s/namespaces/{namespace}/apps/replicasets/{replica-set-id} For Cloud Run, this is the revision name.
"state": "A String", # Output only. The state of the DeploymentEvent.
"undeployTime": "A String", # Output only. The time at which the DeploymentEvent was undeployed, all artifacts are considered undeployed once this time is set. This would be the max of all ArtifactDeployment undeploy_times. If any ArtifactDeployment is still active (i.e. does not have an undeploy_time), this field will be empty.
"updateTime": "A String", # Output only. The update time of the DeploymentEvent.
},
],
"nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
}
list_next()
Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call 'execute()' on to request the next
page. Returns None if there are no more items in the collection.