diff --git a/docs/dyn/apphub_v1.projects.locations.discoveredServices.html b/docs/dyn/apphub_v1.projects.locations.discoveredServices.html index 9d7ba526da1..37310d9070e 100644 --- a/docs/dyn/apphub_v1.projects.locations.discoveredServices.html +++ b/docs/dyn/apphub_v1.projects.locations.discoveredServices.html @@ -86,6 +86,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ lookup(parent, uri=None, x__xgafv=None)

+

Looks up a discovered service in a host project and location and with a given resource URI.

Method Details

close() @@ -172,4 +175,34 @@

Method Details

+
+ lookup(parent, uri=None, x__xgafv=None) +
Looks up a discovered service in a host project and location and with a given resource URI.
+
+Args:
+  parent: string, Required. Value for parent. (required)
+  uri: string, Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response for LookupDiscoveredService.
+  "discoveredService": { # DiscoveredService is a network/api interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service. # Discovered service if exists, empty otherwise.
+    "name": "A String", # Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""
+    "serviceProperties": { # Properties of an underlying cloud resource that can comprise a Service. # Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.
+      "gcpProject": "A String", # Output only. The service project identifier that the underlying cloud resource resides in.
+      "location": "A String", # Output only. The location that the underlying resource resides in, for example, us-west1.
+      "zone": "A String", # Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).
+    },
+    "serviceReference": { # Reference to an underlying networking resource that can comprise a Service. # Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.
+      "uri": "A String", # Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).
+    },
+  },
+}
+
+ \ No newline at end of file diff --git a/docs/dyn/apphub_v1.projects.locations.discoveredWorkloads.html b/docs/dyn/apphub_v1.projects.locations.discoveredWorkloads.html index 0a2f6b0d8aa..4a84e2ad891 100644 --- a/docs/dyn/apphub_v1.projects.locations.discoveredWorkloads.html +++ b/docs/dyn/apphub_v1.projects.locations.discoveredWorkloads.html @@ -86,6 +86,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ lookup(parent, uri=None, x__xgafv=None)

+

Looks up a discovered Workload in a host project and location and with a given resource URI.

Method Details

close() @@ -172,4 +175,34 @@

Method Details

+
+ lookup(parent, uri=None, x__xgafv=None) +
Looks up a discovered Workload in a host project and location and with a given resource URI.
+
+Args:
+  parent: string, Required. Value for parent. (required)
+  uri: string, Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response for LookupDiscoveredWorkload.
+  "discoveredWorkload": { # DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload. # Discovered workload if exists, empty otherwise.
+    "name": "A String", # Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"
+    "workloadProperties": { # Properties of an underlying compute resource represented by the Workload. # Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
+      "gcpProject": "A String", # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources.
+      "location": "A String", # Output only. The location that the underlying compute resource resides in (e.g us-west1).
+      "zone": "A String", # Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a).
+    },
+    "workloadReference": { # Reference of an underlying compute resource represented by the Workload. # Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
+      "uri": "A String", # Output only. The underlying compute resource uri.
+    },
+  },
+}
+
+ \ No newline at end of file diff --git a/docs/dyn/apphub_v1alpha.projects.locations.discoveredServices.html b/docs/dyn/apphub_v1alpha.projects.locations.discoveredServices.html index d0648eca47d..708ed116796 100644 --- a/docs/dyn/apphub_v1alpha.projects.locations.discoveredServices.html +++ b/docs/dyn/apphub_v1alpha.projects.locations.discoveredServices.html @@ -92,6 +92,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ lookup(parent, uri=None, x__xgafv=None)

+

Looks up a discovered service in a host project and location and with a given resource URI.

Method Details

close() @@ -234,4 +237,35 @@

Method Details

+
+ lookup(parent, uri=None, x__xgafv=None) +
Looks up a discovered service in a host project and location and with a given resource URI.
+
+Args:
+  parent: string, Required. Value for parent. (required)
+  uri: string, Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response for LookupDiscoveredService.
+  "discoveredService": { # DiscoveredService is a network/api interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service. # Discovered service if exists, empty otherwise.
+    "name": "A String", # Identifier. The resource name of the discovered service. Format: "projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}""
+    "serviceProperties": { # Properties of an underlying cloud resource that can comprise a Service. # Output only. Properties of an underlying compute resource that can comprise a Service. These are immutable.
+      "gcpProject": "A String", # Output only. The service project identifier that the underlying cloud resource resides in.
+      "location": "A String", # Output only. The location that the underlying resource resides in, for example, us-west1.
+      "zone": "A String", # Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).
+    },
+    "serviceReference": { # Reference to an underlying networking resource that can comprise a Service. # Output only. Reference to an underlying networking resource that can comprise a Service. These are immutable.
+      "path": "A String", # Output only. Additional path under the resource URI (demultiplexing one resource URI into multiple entries). Smallest unit a policy can be attached to. Examples: URL Map path entry.
+      "uri": "A String", # Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).
+    },
+  },
+}
+
+ \ No newline at end of file diff --git a/docs/dyn/apphub_v1alpha.projects.locations.discoveredWorkloads.html b/docs/dyn/apphub_v1alpha.projects.locations.discoveredWorkloads.html index b9b36e7b92e..febf8ccd0a3 100644 --- a/docs/dyn/apphub_v1alpha.projects.locations.discoveredWorkloads.html +++ b/docs/dyn/apphub_v1alpha.projects.locations.discoveredWorkloads.html @@ -92,6 +92,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ lookup(parent, uri=None, x__xgafv=None)

+

Looks up a discovered Workload in a host project and location and with a given resource URI.

Method Details

close() @@ -231,4 +234,34 @@

Method Details

+
+ lookup(parent, uri=None, x__xgafv=None) +
Looks up a discovered Workload in a host project and location and with a given resource URI.
+
+Args:
+  parent: string, Required. Value for parent. (required)
+  uri: string, Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # Response for LookupDiscoveredWorkload.
+  "discoveredWorkload": { # DiscoveredWorkload is a binary deployment (such as managed instance groups (MIGs) and GKE deployments) that performs the smallest logical subset of business functionality. A discovered workload can be registered to an App Hub Workload. # Discovered workload if exists, empty otherwise.
+    "name": "A String", # Identifier. The resource name of the discovered workload. Format: "projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}"
+    "workloadProperties": { # Properties of an underlying compute resource represented by the Workload. # Output only. Properties of an underlying compute resource represented by the Workload. These are immutable.
+      "gcpProject": "A String", # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources.
+      "location": "A String", # Output only. The location that the underlying compute resource resides in (e.g us-west1).
+      "zone": "A String", # Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a).
+    },
+    "workloadReference": { # Reference of an underlying compute resource represented by the Workload. # Output only. Reference of an underlying compute resource represented by the Workload. These are immutable.
+      "uri": "A String", # Output only. The underlying compute resource uri.
+    },
+  },
+}
+
+ \ No newline at end of file diff --git a/googleapiclient/discovery_cache/documents/apphub.v1.json b/googleapiclient/discovery_cache/documents/apphub.v1.json index ac31809b220..ae85d61e3db 100644 --- a/googleapiclient/discovery_cache/documents/apphub.v1.json +++ b/googleapiclient/discovery_cache/documents/apphub.v1.json @@ -937,6 +937,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] +}, +"lookup": { +"description": "Looks up a discovered service in a host project and location and with a given resource URI.", +"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookup", +"httpMethod": "GET", +"id": "apphub.projects.locations.discoveredServices.lookup", +"parameterOrder": [ +"parent" +], +"parameters": { +"parent": { +"description": "Required. Value for parent.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +}, +"uri": { +"description": "Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.", +"location": "query", +"type": "string" +} +}, +"path": "v1/{+parent}/discoveredServices:lookup", +"response": { +"$ref": "LookupDiscoveredServiceResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] } } }, @@ -1012,6 +1042,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] +}, +"lookup": { +"description": "Looks up a discovered Workload in a host project and location and with a given resource URI.", +"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookup", +"httpMethod": "GET", +"id": "apphub.projects.locations.discoveredWorkloads.lookup", +"parameterOrder": [ +"parent" +], +"parameters": { +"parent": { +"description": "Required. Value for parent.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +}, +"uri": { +"description": "Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.", +"location": "query", +"type": "string" +} +}, +"path": "v1/{+parent}/discoveredWorkloads:lookup", +"response": { +"$ref": "LookupDiscoveredWorkloadResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] } } }, @@ -1286,7 +1346,7 @@ } } }, -"revision": "20240217", +"revision": "20240301", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { @@ -1830,6 +1890,28 @@ }, "type": "object" }, +"LookupDiscoveredServiceResponse": { +"description": "Response for LookupDiscoveredService.", +"id": "LookupDiscoveredServiceResponse", +"properties": { +"discoveredService": { +"$ref": "DiscoveredService", +"description": "Discovered service if exists, empty otherwise." +} +}, +"type": "object" +}, +"LookupDiscoveredWorkloadResponse": { +"description": "Response for LookupDiscoveredWorkload.", +"id": "LookupDiscoveredWorkloadResponse", +"properties": { +"discoveredWorkload": { +"$ref": "DiscoveredWorkload", +"description": "Discovered workload if exists, empty otherwise." +} +}, +"type": "object" +}, "LookupServiceProjectAttachmentResponse": { "description": "Response for LookupServiceProjectAttachment.", "id": "LookupServiceProjectAttachmentResponse", diff --git a/googleapiclient/discovery_cache/documents/apphub.v1alpha.json b/googleapiclient/discovery_cache/documents/apphub.v1alpha.json index 5a20caefaee..f7885ffb472 100644 --- a/googleapiclient/discovery_cache/documents/apphub.v1alpha.json +++ b/googleapiclient/discovery_cache/documents/apphub.v1alpha.json @@ -983,6 +983,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] +}, +"lookup": { +"description": "Looks up a discovered service in a host project and location and with a given resource URI.", +"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredServices:lookup", +"httpMethod": "GET", +"id": "apphub.projects.locations.discoveredServices.lookup", +"parameterOrder": [ +"parent" +], +"parameters": { +"parent": { +"description": "Required. Value for parent.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +}, +"uri": { +"description": "Required. Resource URI to find service for. Accepts both project number and project id and does translation when needed.", +"location": "query", +"type": "string" +} +}, +"path": "v1alpha/{+parent}/discoveredServices:lookup", +"response": { +"$ref": "LookupDiscoveredServiceResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] } } }, @@ -1104,6 +1134,36 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] +}, +"lookup": { +"description": "Looks up a discovered Workload in a host project and location and with a given resource URI.", +"flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredWorkloads:lookup", +"httpMethod": "GET", +"id": "apphub.projects.locations.discoveredWorkloads.lookup", +"parameterOrder": [ +"parent" +], +"parameters": { +"parent": { +"description": "Required. Value for parent.", +"location": "path", +"pattern": "^projects/[^/]+/locations/[^/]+$", +"required": true, +"type": "string" +}, +"uri": { +"description": "Required. Resource URI to find workload for. Accepts both project number and project id and does translation when needed.", +"location": "query", +"type": "string" +} +}, +"path": "v1alpha/{+parent}/discoveredWorkloads:lookup", +"response": { +"$ref": "LookupDiscoveredWorkloadResponse" +}, +"scopes": [ +"https://www.googleapis.com/auth/cloud-platform" +] } } }, @@ -1378,7 +1438,7 @@ } } }, -"revision": "20240217", +"revision": "20240301", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { @@ -1999,6 +2059,28 @@ }, "type": "object" }, +"LookupDiscoveredServiceResponse": { +"description": "Response for LookupDiscoveredService.", +"id": "LookupDiscoveredServiceResponse", +"properties": { +"discoveredService": { +"$ref": "DiscoveredService", +"description": "Discovered service if exists, empty otherwise." +} +}, +"type": "object" +}, +"LookupDiscoveredWorkloadResponse": { +"description": "Response for LookupDiscoveredWorkload.", +"id": "LookupDiscoveredWorkloadResponse", +"properties": { +"discoveredWorkload": { +"$ref": "DiscoveredWorkload", +"description": "Discovered workload if exists, empty otherwise." +} +}, +"type": "object" +}, "LookupServiceProjectAttachmentResponse": { "description": "Response for LookupServiceProjectAttachment.", "id": "LookupServiceProjectAttachmentResponse",