Skip to content

Commit

Permalink
feat(apphub): update the api
Browse files Browse the repository at this point in the history
#### apphub:v1

The following keys were added:
- resources.projects.resources.locations.resources.discoveredServices.methods.lookup (Total Keys: 13)
- resources.projects.resources.locations.resources.discoveredWorkloads.methods.lookup (Total Keys: 13)
- schemas.LookupDiscoveredServiceResponse (Total Keys: 3)
- schemas.LookupDiscoveredWorkloadResponse (Total Keys: 3)

#### apphub:v1alpha

The following keys were added:
- resources.projects.resources.locations.resources.discoveredServices.methods.lookup (Total Keys: 13)
- resources.projects.resources.locations.resources.discoveredWorkloads.methods.lookup (Total Keys: 13)
- schemas.LookupDiscoveredServiceResponse (Total Keys: 3)
- schemas.LookupDiscoveredWorkloadResponse (Total Keys: 3)
  • Loading branch information
yoshi-automation committed Mar 5, 2024
1 parent f5e0735 commit 42a9bf9
Show file tree
Hide file tree
Showing 6 changed files with 299 additions and 2 deletions.
33 changes: 33 additions & 0 deletions docs/dyn/apphub_v1.projects.locations.discoveredServices.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#lookup">lookup(parent, uri=None, x__xgafv=None)</a></code></p>
<p class="firstline">Looks up a discovered service in a host project and location and with a given resource URI.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -172,4 +175,34 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="lookup">lookup(parent, uri=None, x__xgafv=None)</code>
<pre>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.
&quot;discoveredService&quot;: { # 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.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the discovered service. Format: &quot;projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}&quot;&quot;
&quot;serviceProperties&quot;: { # 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.
&quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in.
&quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying resource resides in, for example, us-west1.
&quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).
},
&quot;serviceReference&quot;: { # 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.
&quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).
},
},
}</pre>
</div>

</body></html>
33 changes: 33 additions & 0 deletions docs/dyn/apphub_v1.projects.locations.discoveredWorkloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#lookup">lookup(parent, uri=None, x__xgafv=None)</a></code></p>
<p class="firstline">Looks up a discovered Workload in a host project and location and with a given resource URI.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -172,4 +175,34 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="lookup">lookup(parent, uri=None, x__xgafv=None)</code>
<pre>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.
&quot;discoveredWorkload&quot;: { # 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.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the discovered workload. Format: &quot;projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}&quot;
&quot;workloadProperties&quot;: { # 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.
&quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources.
&quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (e.g us-west1).
&quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a).
},
&quot;workloadReference&quot;: { # 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.
&quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
},
},
}</pre>
</div>

</body></html>
34 changes: 34 additions & 0 deletions docs/dyn/apphub_v1alpha.projects.locations.discoveredServices.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#lookup">lookup(parent, uri=None, x__xgafv=None)</a></code></p>
<p class="firstline">Looks up a discovered service in a host project and location and with a given resource URI.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -234,4 +237,35 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="lookup">lookup(parent, uri=None, x__xgafv=None)</code>
<pre>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.
&quot;discoveredService&quot;: { # 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.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the discovered service. Format: &quot;projects/{host-project-id}/locations/{location}/discoveredServices/{uuid}&quot;&quot;
&quot;serviceProperties&quot;: { # 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.
&quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in.
&quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying resource resides in, for example, us-west1.
&quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying resource resides in if it is zonal, for example, us-west1-a).
},
&quot;serviceReference&quot;: { # 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.
&quot;path&quot;: &quot;A String&quot;, # 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.
&quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying resource URI (For example, URI of Forwarding Rule, URL Map, and Backend Service).
},
},
}</pre>
</div>

</body></html>
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ <h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#lookup">lookup(parent, uri=None, x__xgafv=None)</a></code></p>
<p class="firstline">Looks up a discovered Workload in a host project and location and with a given resource URI.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
Expand Down Expand Up @@ -231,4 +234,34 @@ <h3>Method Details</h3>
</pre>
</div>

<div class="method">
<code class="details" id="lookup">lookup(parent, uri=None, x__xgafv=None)</code>
<pre>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.
&quot;discoveredWorkload&quot;: { # 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.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the discovered workload. Format: &quot;projects/{host-project-id}/locations/{location}/discoveredWorkloads/{uuid}&quot;
&quot;workloadProperties&quot;: { # 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.
&quot;gcpProject&quot;: &quot;A String&quot;, # Output only. The service project identifier that the underlying cloud resource resides in. Empty for non cloud resources.
&quot;location&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in (e.g us-west1).
&quot;zone&quot;: &quot;A String&quot;, # Output only. The location that the underlying compute resource resides in if it is zonal (e.g us-west1-a).
},
&quot;workloadReference&quot;: { # 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.
&quot;uri&quot;: &quot;A String&quot;, # Output only. The underlying compute resource uri.
},
},
}</pre>
</div>

</body></html>
84 changes: 83 additions & 1 deletion googleapiclient/discovery_cache/documents/apphub.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
}
},
Expand Down Expand Up @@ -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"
]
}
}
},
Expand Down Expand Up @@ -1286,7 +1346,7 @@
}
}
},
"revision": "20240217",
"revision": "20240301",
"rootUrl": "https://apphub.googleapis.com/",
"schemas": {
"Application": {
Expand Down Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 42a9bf9

Please sign in to comment.