Conditions represent the latest available observation of the resource's current state.
conditions[]
object
conditions[].lastTransitionTime
string
Last time the condition transitioned from one status to another.
conditions[].message
string
Human-readable message indicating details about last transition.
conditions[].reason
string
Unique, one-word, CamelCase reason for the condition's last transition.
conditions[].status
string
Status is the status of the condition. Can be True, False, Unknown.
conditions[].type
string
Type is the type of the condition.
observedGeneration
integer
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.
Sample YAML(s)
Typical Use Case
# Copyright 2020 Google LLC## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.apiVersion:serviceusage.cnrm.cloud.google.com/v1beta1kind:Servicemetadata:annotations:# use the deletion policy of abandon to ensure that the pubsub service remains enabled when this resource is deleted.cnrm.cloud.google.com/deletion-policy:"abandon"# this is unnecessary with the deletion-policy of 'abandon', but useful if the abandon policy is removed.cnrm.cloud.google.com/disable-dependent-services:"false"name:service-samplespec:resourceID:pubsub.googleapis.com
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe resource must be queried using \u003ccode\u003egcpservice\u003c/code\u003e instead of \u003ccode\u003eservice\u003c/code\u003e to avoid conflicts with the Kubernetes Service resource.\u003c/p\u003e\n"],["\u003cp\u003eThe Google Cloud service name for this resource is Service Usage, and it's associated with the \u003ccode\u003eserviceusage.googleapis.com\u003c/code\u003e service name for Config Connector.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eprojectRef\u003c/code\u003e is an optional field in the Spec schema used to define the Google Cloud project the resource belongs to, and it has three sub-fields, external, name and namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe Status schema includes \u003ccode\u003econditions\u003c/code\u003e, which describes the resource's state, and \u003ccode\u003eobservedGeneration\u003c/code\u003e, which indicates the generation of the resource observed by the Config Connector controller.\u003c/p\u003e\n"],["\u003cp\u003eA sample YAML configuration for this resource uses \u003ccode\u003eserviceusage.cnrm.cloud.google.com/v1beta1\u003c/code\u003e as the API version and includes annotations for managing service deletion.\u003c/p\u003e\n"]]],[],null,["# Service\n=======\n\n*** ** * ** ***\n\n| **Note:** You must use `gcpservice` when querying for this resource since `service` is reserved for the [Kubernetes Service](https://kubernetes.io/docs/concepts/services-networking/service/) resource. For example, if you want to list your Service resources, you must do so using `kubectl get gcpservice`.\n\nCustom Resource Definition Properties\n-------------------------------------\n\n### Annotations\n\n### Spec\n\n#### Schema\n\n projectRef:\n external: string\n name: string\n namespace: string\n resourceID: string\n\n### Status\n\n#### Schema\n\n conditions:\n - lastTransitionTime: string\n message: string\n reason: string\n status: string\n type: string\n observedGeneration: integer\n\nSample YAML(s)\n--------------\n\n### Typical Use Case\n\n # Copyright 2020 Google LLC\n #\n # Licensed under the Apache License, Version 2.0 (the \"License\");\n # you may not use this file except in compliance with the License.\n # You may obtain a copy of the License at\n #\n # http://www.apache.org/licenses/LICENSE-2.0\n #\n # Unless required by applicable law or agreed to in writing, software\n # distributed under the License is distributed on an \"AS IS\" BASIS,\n # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n # See the License for the specific language governing permissions and\n # limitations under the License.\n\n apiVersion: serviceusage.cnrm.cloud.google.com/v1beta1\n kind: Service\n metadata:\n annotations:\n # use the deletion policy of abandon to ensure that the pubsub service remains enabled when this resource is deleted.\n cnrm.cloud.google.com/deletion-policy: \"abandon\"\n # this is unnecessary with the deletion-policy of 'abandon', but useful if the abandon policy is removed.\n cnrm.cloud.google.com/disable-dependent-services: \"false\"\n name: service-sample\n spec:\n resourceID: pubsub.googleapis.com\n\n| **Note:** If you have any trouble with instantiating the resource, refer to [Troubleshoot Config Connector](/config-connector/docs/troubleshooting)."]]