blob: c817c50def2cb715b9ce5f79d11ab1ca4a0b46da [file] [log] [blame]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="servicedirectory_v1beta1.html">Service Directory API</a> . <a href="servicedirectory_v1beta1.projects.html">projects</a> . <a href="servicedirectory_v1beta1.projects.locations.html">locations</a> . <a href="servicedirectory_v1beta1.projects.locations.namespaces.html">namespaces</a> . <a href="servicedirectory_v1beta1.projects.locations.namespaces.services.html">services</a> . <a href="servicedirectory_v1beta1.projects.locations.namespaces.services.endpoints.html">endpoints</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, endpointId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a endpoint, and returns the new Endpoint.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a endpoint.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets a endpoint.</p>
<p class="toc_element">
<code><a href="#list">list(parent, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all endpoints.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates a endpoint.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="create">create(parent, body=None, endpointId=None, x__xgafv=None)</code>
<pre>Creates a endpoint, and returns the new Endpoint.
Args:
parent: string, Required. The resource name of the service that this endpoint provides. (required)
body: object, The request body.
The object takes the form of:
{ # An individual endpoint that provides a
# service. The service must
# already exist to create an endpoint.
&quot;address&quot;: &quot;A String&quot;, # Optional. An IPv4 or IPv6 address. Service Directory will reject bad
# addresses like:
# &quot;8.8.8&quot;
# &quot;8.8.8.8:53&quot;
# &quot;test:bad:address&quot;
# &quot;[::1]&quot;
# &quot;[::1]:8080&quot;
# Limited to 45 characters.
&quot;metadata&quot;: { # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these
# limits will be rejected.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name for the endpoint in the format
# &#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;.
&quot;port&quot;: 42, # Optional. Service Directory will reject values outside of [0, 65535].
}
endpointId: string, Required. The Resource ID must be 1-63 characters long, and comply with
&lt;a href=&quot;https://www.ietf.org/rfc/rfc1035.txt&quot; target=&quot;_blank&quot;&gt;RFC1035&lt;/a&gt;.
Specifically, the name must be 1-63 characters long and match the regular
expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An individual endpoint that provides a
# service. The service must
# already exist to create an endpoint.
&quot;address&quot;: &quot;A String&quot;, # Optional. An IPv4 or IPv6 address. Service Directory will reject bad
# addresses like:
# &quot;8.8.8&quot;
# &quot;8.8.8.8:53&quot;
# &quot;test:bad:address&quot;
# &quot;[::1]&quot;
# &quot;[::1]:8080&quot;
# Limited to 45 characters.
&quot;metadata&quot;: { # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these
# limits will be rejected.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name for the endpoint in the format
# &#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;.
&quot;port&quot;: 42, # Optional. Service Directory will reject values outside of [0, 65535].
}</pre>
</div>
<div class="method">
<code class="details" id="delete">delete(name, x__xgafv=None)</code>
<pre>Deletes a endpoint.
Args:
name: string, Required. The name of the endpoint to delete. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # A generic empty message that you can re-use to avoid defining duplicated
# empty messages in your APIs. A typical example is to use it as the request
# or the response type of an API method. For instance:
#
# service Foo {
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
# }
#
# The JSON representation for `Empty` is empty JSON object `{}`.
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets a endpoint.
Args:
name: string, Required. The name of the endpoint to get. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An individual endpoint that provides a
# service. The service must
# already exist to create an endpoint.
&quot;address&quot;: &quot;A String&quot;, # Optional. An IPv4 or IPv6 address. Service Directory will reject bad
# addresses like:
# &quot;8.8.8&quot;
# &quot;8.8.8.8:53&quot;
# &quot;test:bad:address&quot;
# &quot;[::1]&quot;
# &quot;[::1]:8080&quot;
# Limited to 45 characters.
&quot;metadata&quot;: { # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these
# limits will be rejected.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name for the endpoint in the format
# &#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;.
&quot;port&quot;: 42, # Optional. Service Directory will reject values outside of [0, 65535].
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)</code>
<pre>Lists all endpoints.
Args:
parent: string, Required. The resource name of the service whose endpoints we&#x27;d like to
list. (required)
pageToken: string, Optional. The next_page_token value returned from a previous List request,
if any.
orderBy: string, Optional. The order to list result by.
pageSize: integer, Optional. The maximum number of items to return.
filter: string, Optional. The filter to list result by.
General filter string syntax:
&lt;field&gt; &lt;operator&gt; &lt;value&gt; (&lt;logical connector&gt;)
&lt;field&gt; can be &quot;name&quot;, &quot;address&quot;, &quot;port&quot; or &quot;metadata.&lt;key&gt;&quot; for map field.
&lt;operator&gt; can be &quot;&lt;, &gt;, &lt;=, &gt;=, !=, =, :&quot;. Of which &quot;:&quot; means HAS, and
is roughly the same as &quot;=&quot;.
&lt;value&gt; must be the same data type as field.
&lt;logical connector&gt; can be &quot;AND, OR, NOT&quot;.
Examples of valid filters:
* &quot;metadata.owner&quot; returns Endpoints that have a label with the key &quot;owner&quot;
this is the same as &quot;metadata:owner&quot;.
* &quot;metadata.protocol=gRPC&quot; returns Endpoints that have key/value
&quot;protocol=gRPC&quot;.
* &quot;address=192.108.1.105&quot; returns Endpoints that have this address.
* &quot;port&gt;8080&quot; returns Endpoints that have port number larger than 8080.
* &quot;name&gt;projects/my-project/locations/us-east/namespaces/my-namespace/services/my-service/endpoints/endpoint-c&quot;
returns Endpoints that have name that is alphabetically later than the
string, so &quot;endpoint-e&quot; will be returned but &quot;endpoint-a&quot; will not be.
* &quot;metadata.owner!=sd AND metadata.foo=bar&quot; returns Endpoints that have
&quot;owner&quot; in label key but value is not &quot;sd&quot; AND have key/value foo=bar.
* &quot;doesnotexist.foo=bar&quot; returns an empty list. Note that Endpoint doesn&#x27;t
have a field called &quot;doesnotexist&quot;. Since the filter does not match any
Endpoints, it returns no results.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # The response message for RegistrationService.ListEndpoints.
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no
# more results in the list.
&quot;endpoints&quot;: [ # The list of endpoints.
{ # An individual endpoint that provides a
# service. The service must
# already exist to create an endpoint.
&quot;address&quot;: &quot;A String&quot;, # Optional. An IPv4 or IPv6 address. Service Directory will reject bad
# addresses like:
# &quot;8.8.8&quot;
# &quot;8.8.8.8:53&quot;
# &quot;test:bad:address&quot;
# &quot;[::1]&quot;
# &quot;[::1]:8080&quot;
# Limited to 45 characters.
&quot;metadata&quot;: { # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these
# limits will be rejected.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name for the endpoint in the format
# &#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;.
&quot;port&quot;: 42, # Optional. Service Directory will reject values outside of [0, 65535].
},
],
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>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 &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
<div class="method">
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
<pre>Updates a endpoint.
Args:
name: string, Immutable. The resource name for the endpoint in the format
&#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;. (required)
body: object, The request body.
The object takes the form of:
{ # An individual endpoint that provides a
# service. The service must
# already exist to create an endpoint.
&quot;address&quot;: &quot;A String&quot;, # Optional. An IPv4 or IPv6 address. Service Directory will reject bad
# addresses like:
# &quot;8.8.8&quot;
# &quot;8.8.8.8:53&quot;
# &quot;test:bad:address&quot;
# &quot;[::1]&quot;
# &quot;[::1]:8080&quot;
# Limited to 45 characters.
&quot;metadata&quot;: { # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these
# limits will be rejected.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name for the endpoint in the format
# &#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;.
&quot;port&quot;: 42, # Optional. Service Directory will reject values outside of [0, 65535].
}
updateMask: string, Required. List of fields to be updated in this request.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An individual endpoint that provides a
# service. The service must
# already exist to create an endpoint.
&quot;address&quot;: &quot;A String&quot;, # Optional. An IPv4 or IPv6 address. Service Directory will reject bad
# addresses like:
# &quot;8.8.8&quot;
# &quot;8.8.8.8:53&quot;
# &quot;test:bad:address&quot;
# &quot;[::1]&quot;
# &quot;[::1]:8080&quot;
# Limited to 45 characters.
&quot;metadata&quot;: { # Optional. Metadata for the endpoint. This data can be consumed by service
# clients. The entire metadata dictionary may contain up to 512 characters,
# spread accoss all key-value pairs. Metadata that goes beyond any these
# limits will be rejected.
&quot;a_key&quot;: &quot;A String&quot;,
},
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name for the endpoint in the format
# &#x27;projects/*/locations/*/namespaces/*/services/*/endpoints/*&#x27;.
&quot;port&quot;: 42, # Optional. Service Directory will reject values outside of [0, 65535].
}</pre>
</div>
</body></html>