google-cloud-agent_registry_endpoint-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +151 -8
- data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/client.rb +935 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/credentials.rb +50 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/rest/client.rb +857 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/rest/service_stub.rb +386 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint/rest.rb +55 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/agent_registry_endpoint.rb +58 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/rest.rb +37 -0
- data/lib/google/cloud/agent_registry_endpoint/v1/version.rb +7 -2
- data/lib/google/cloud/agent_registry_endpoint/v1.rb +45 -0
- data/lib/google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service_pb.rb +35 -0
- data/lib/google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service_services_pb.rb +61 -0
- data/lib/google-cloud-agent_registry_endpoint-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/agentregistry/v1/agent.rb +168 -0
- data/proto_docs/google/cloud/agentregistry/v1/endpoint.rb +72 -0
- data/proto_docs/google/cloud/agentregistry/v1/mcp_server.rb +127 -0
- data/proto_docs/google/cloud/agentregistry/v1/properties.rb +53 -0
- data/proto_docs/google/cloud/agentregistryendpoint/v1/agentregistryendpoint_service.rb +164 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- metadata +83 -9
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AgentRegistry
|
|
23
|
+
module V1
|
|
24
|
+
# Represents an Endpoint.
|
|
25
|
+
# @!attribute [rw] name
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Identifier. The resource name of the Endpoint.
|
|
28
|
+
# Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
|
|
29
|
+
# @!attribute [r] endpoint_id
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# Output only. A stable, globally unique identifier for Endpoint.
|
|
32
|
+
# @!attribute [r] display_name
|
|
33
|
+
# @return [::String]
|
|
34
|
+
# Output only. Display name for the Endpoint.
|
|
35
|
+
# @!attribute [r] description
|
|
36
|
+
# @return [::String]
|
|
37
|
+
# Output only. Description of an Endpoint.
|
|
38
|
+
# @!attribute [rw] interfaces
|
|
39
|
+
# @return [::Array<::Google::Cloud::AgentRegistry::V1::Interface>]
|
|
40
|
+
# Required. The connection details for the Endpoint.
|
|
41
|
+
# @!attribute [r] create_time
|
|
42
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
43
|
+
# Output only. Create time.
|
|
44
|
+
# @!attribute [r] update_time
|
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
46
|
+
# Output only. Update time.
|
|
47
|
+
# @!attribute [r] attributes
|
|
48
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Struct}]
|
|
49
|
+
# Output only. Attributes of the Endpoint.
|
|
50
|
+
#
|
|
51
|
+
# Valid values:
|
|
52
|
+
#
|
|
53
|
+
# * `agentregistry.googleapis.com/system/RuntimeReference`:
|
|
54
|
+
# \\{"uri": "//..."} - the URI of the underlying resource hosting the
|
|
55
|
+
# Endpoint, for example, the GKE Deployment.
|
|
56
|
+
class Endpoint
|
|
57
|
+
include ::Google::Protobuf::MessageExts
|
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
59
|
+
|
|
60
|
+
# @!attribute [rw] key
|
|
61
|
+
# @return [::String]
|
|
62
|
+
# @!attribute [rw] value
|
|
63
|
+
# @return [::Google::Protobuf::Struct]
|
|
64
|
+
class AttributesEntry
|
|
65
|
+
include ::Google::Protobuf::MessageExts
|
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AgentRegistry
|
|
23
|
+
module V1
|
|
24
|
+
# Represents an MCP (Model Context Protocol) Server.
|
|
25
|
+
# @!attribute [rw] name
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Identifier. The resource name of the MCP Server.
|
|
28
|
+
# Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
|
|
29
|
+
# @!attribute [r] mcp_server_id
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# Output only. A stable, globally unique identifier for MCP Servers.
|
|
32
|
+
# @!attribute [r] display_name
|
|
33
|
+
# @return [::String]
|
|
34
|
+
# Output only. The display name of the MCP Server.
|
|
35
|
+
# @!attribute [r] description
|
|
36
|
+
# @return [::String]
|
|
37
|
+
# Output only. The description of the MCP Server.
|
|
38
|
+
# @!attribute [r] interfaces
|
|
39
|
+
# @return [::Array<::Google::Cloud::AgentRegistry::V1::Interface>]
|
|
40
|
+
# Output only. The connection details for the MCP Server.
|
|
41
|
+
# @!attribute [r] tools
|
|
42
|
+
# @return [::Array<::Google::Cloud::AgentRegistry::V1::McpServer::Tool>]
|
|
43
|
+
# Output only. Tools provided by the MCP Server.
|
|
44
|
+
# @!attribute [r] create_time
|
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
46
|
+
# Output only. Create time.
|
|
47
|
+
# @!attribute [r] update_time
|
|
48
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
49
|
+
# Output only. Update time.
|
|
50
|
+
# @!attribute [r] attributes
|
|
51
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Struct}]
|
|
52
|
+
# Output only. Attributes of the MCP Server.
|
|
53
|
+
# Valid values:
|
|
54
|
+
#
|
|
55
|
+
# * `agentregistry.googleapis.com/system/RuntimeIdentity`: \\{"principal":
|
|
56
|
+
# "principal://..."} - the runtime identity associated with the MCP Server.
|
|
57
|
+
# * `agentregistry.googleapis.com/system/RuntimeReference`: \\{"uri": "//..."}
|
|
58
|
+
# - the URI of the underlying resource hosting the MCP Server, for
|
|
59
|
+
# example, the GKE Deployment.
|
|
60
|
+
class McpServer
|
|
61
|
+
include ::Google::Protobuf::MessageExts
|
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
63
|
+
|
|
64
|
+
# Represents a single tool provided by an MCP Server.
|
|
65
|
+
# @!attribute [r] name
|
|
66
|
+
# @return [::String]
|
|
67
|
+
# Output only. Human-readable name of the tool.
|
|
68
|
+
# @!attribute [r] description
|
|
69
|
+
# @return [::String]
|
|
70
|
+
# Output only. Description of what the tool does.
|
|
71
|
+
# @!attribute [r] annotations
|
|
72
|
+
# @return [::Google::Cloud::AgentRegistry::V1::McpServer::Tool::Annotations]
|
|
73
|
+
# Output only. Annotations associated with the tool.
|
|
74
|
+
# @!attribute [r] meta
|
|
75
|
+
# @return [::Google::Protobuf::Struct]
|
|
76
|
+
# Output only. Protocol-level tool metadata conforming to MCP _meta
|
|
77
|
+
# specification. Output only.
|
|
78
|
+
class Tool
|
|
79
|
+
include ::Google::Protobuf::MessageExts
|
|
80
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
81
|
+
|
|
82
|
+
# Annotations describing the characteristics and behavior of a tool or
|
|
83
|
+
# operation.
|
|
84
|
+
# @!attribute [r] title
|
|
85
|
+
# @return [::String]
|
|
86
|
+
# Output only. A human-readable title for the tool.
|
|
87
|
+
# @!attribute [r] destructive_hint
|
|
88
|
+
# @return [::Boolean]
|
|
89
|
+
# Output only. If true, the tool may perform destructive updates to its
|
|
90
|
+
# environment. If false, the tool performs only additive updates. NOTE:
|
|
91
|
+
# This property is meaningful only when `read_only_hint == false`
|
|
92
|
+
# Default: true
|
|
93
|
+
# @!attribute [r] idempotent_hint
|
|
94
|
+
# @return [::Boolean]
|
|
95
|
+
# Output only. If true, calling the tool repeatedly with the same
|
|
96
|
+
# arguments will have no additional effect on its environment. NOTE: This
|
|
97
|
+
# property is meaningful only when `read_only_hint == false` Default:
|
|
98
|
+
# false
|
|
99
|
+
# @!attribute [r] open_world_hint
|
|
100
|
+
# @return [::Boolean]
|
|
101
|
+
# Output only. If true, this tool may interact with an "open world" of
|
|
102
|
+
# external entities. If false, the tool's domain of interaction is
|
|
103
|
+
# closed. For example, the world of a web search tool is open, whereas
|
|
104
|
+
# that of a memory tool is not. Default: true
|
|
105
|
+
# @!attribute [r] read_only_hint
|
|
106
|
+
# @return [::Boolean]
|
|
107
|
+
# Output only. If true, the tool does not modify its environment.
|
|
108
|
+
# Default: false
|
|
109
|
+
class Annotations
|
|
110
|
+
include ::Google::Protobuf::MessageExts
|
|
111
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# @!attribute [rw] key
|
|
116
|
+
# @return [::String]
|
|
117
|
+
# @!attribute [rw] value
|
|
118
|
+
# @return [::Google::Protobuf::Struct]
|
|
119
|
+
class AttributesEntry
|
|
120
|
+
include ::Google::Protobuf::MessageExts
|
|
121
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AgentRegistry
|
|
23
|
+
module V1
|
|
24
|
+
# Represents the connection details for an Agent or MCP Server.
|
|
25
|
+
# @!attribute [rw] url
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Required. The destination URL.
|
|
28
|
+
# @!attribute [rw] protocol_binding
|
|
29
|
+
# @return [::Google::Cloud::AgentRegistry::V1::Interface::ProtocolBinding]
|
|
30
|
+
# Required. The protocol binding of the interface.
|
|
31
|
+
class Interface
|
|
32
|
+
include ::Google::Protobuf::MessageExts
|
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
34
|
+
|
|
35
|
+
# The protocol binding of the interface.
|
|
36
|
+
module ProtocolBinding
|
|
37
|
+
# Unspecified transport protocol.
|
|
38
|
+
PROTOCOL_BINDING_UNSPECIFIED = 0
|
|
39
|
+
|
|
40
|
+
# JSON-RPC specification.
|
|
41
|
+
JSONRPC = 1
|
|
42
|
+
|
|
43
|
+
# gRPC specification.
|
|
44
|
+
GRPC = 2
|
|
45
|
+
|
|
46
|
+
# HTTP+JSON specification.
|
|
47
|
+
HTTP_JSON = 3
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module AgentRegistryEndpoint
|
|
23
|
+
module V1
|
|
24
|
+
# Request message for getting an MCP server active within the localized
|
|
25
|
+
# dataplane of the AI Application.
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Required. The resource name of the MCP server, in the format
|
|
29
|
+
# `projects/{project}/locations/{location}/aiApplications/{ai_application}/mcpServers/{mcp_server}`.
|
|
30
|
+
class GetAiApplicationMcpServerRequest
|
|
31
|
+
include ::Google::Protobuf::MessageExts
|
|
32
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Request message for getting an endpoint active within the localized
|
|
36
|
+
# dataplane of the AI Application.
|
|
37
|
+
# @!attribute [rw] name
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# Required. The resource name of the endpoint, in the format
|
|
40
|
+
# `projects/{project}/locations/{location}/aiApplications/{ai_application}/endpoints/{endpoint}`.
|
|
41
|
+
class GetAiApplicationEndpointRequest
|
|
42
|
+
include ::Google::Protobuf::MessageExts
|
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Request message for listing agents active within the localized dataplane.
|
|
47
|
+
# @!attribute [rw] parent
|
|
48
|
+
# @return [::String]
|
|
49
|
+
# Required. The parent resource name, in the format
|
|
50
|
+
# `projects/{project}/locations/{location}/aiApplications/{ai_application}`.
|
|
51
|
+
# @!attribute [rw] page_size
|
|
52
|
+
# @return [::Integer]
|
|
53
|
+
# Optional. The maximum number of agents to return. The service may return
|
|
54
|
+
# fewer than this value. If unspecified or set to `0`, at most 50 agents are
|
|
55
|
+
# returned. The maximum value is 100; values above 100 are coerced to 100.
|
|
56
|
+
# @!attribute [rw] page_token
|
|
57
|
+
# @return [::String]
|
|
58
|
+
# Optional. A page token, received from a previous `ListAiApplicationAgents`
|
|
59
|
+
# call. Provide this to retrieve the subsequent page.
|
|
60
|
+
#
|
|
61
|
+
# When paginating, all other parameters provided to
|
|
62
|
+
# `ListAiApplicationAgents` must match the call that provided the page
|
|
63
|
+
# token.
|
|
64
|
+
class ListAiApplicationAgentsRequest
|
|
65
|
+
include ::Google::Protobuf::MessageExts
|
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Response message for listing agents active within the localized dataplane.
|
|
70
|
+
# @!attribute [rw] agents
|
|
71
|
+
# @return [::Array<::Google::Cloud::AgentRegistry::V1::Agent>]
|
|
72
|
+
# The list of agents.
|
|
73
|
+
# @!attribute [rw] next_page_token
|
|
74
|
+
# @return [::String]
|
|
75
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
76
|
+
# If this field is omitted, there are no subsequent pages.
|
|
77
|
+
class ListAiApplicationAgentsResponse
|
|
78
|
+
include ::Google::Protobuf::MessageExts
|
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Request message for listing MCP servers active within the localized
|
|
83
|
+
# dataplane.
|
|
84
|
+
# @!attribute [rw] parent
|
|
85
|
+
# @return [::String]
|
|
86
|
+
# Required. The parent resource name, in the format
|
|
87
|
+
# `projects/{project}/locations/{location}/aiApplications/{ai_application}`.
|
|
88
|
+
# @!attribute [rw] page_size
|
|
89
|
+
# @return [::Integer]
|
|
90
|
+
# Optional. The maximum number of MCP servers to return. The service may
|
|
91
|
+
# return fewer than this value. If unspecified or set to `0`, at most 50 MCP
|
|
92
|
+
# servers are returned. The maximum value is 100; values above 100 are
|
|
93
|
+
# coerced to 100.
|
|
94
|
+
# @!attribute [rw] page_token
|
|
95
|
+
# @return [::String]
|
|
96
|
+
# Optional. A page token, received from a previous
|
|
97
|
+
# `ListAiApplicationMcpServers` call. Provide this to retrieve the
|
|
98
|
+
# subsequent page.
|
|
99
|
+
#
|
|
100
|
+
# When paginating, all other parameters provided to
|
|
101
|
+
# `ListAiApplicationMcpServers` must match the call that provided the
|
|
102
|
+
# page token.
|
|
103
|
+
class ListAiApplicationMcpServersRequest
|
|
104
|
+
include ::Google::Protobuf::MessageExts
|
|
105
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Response message for listing MCP servers active within the localized
|
|
109
|
+
# dataplane.
|
|
110
|
+
# @!attribute [rw] mcp_servers
|
|
111
|
+
# @return [::Array<::Google::Cloud::AgentRegistry::V1::McpServer>]
|
|
112
|
+
# The list of MCP servers.
|
|
113
|
+
# @!attribute [rw] next_page_token
|
|
114
|
+
# @return [::String]
|
|
115
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
116
|
+
# If this field is omitted, there are no subsequent pages.
|
|
117
|
+
class ListAiApplicationMcpServersResponse
|
|
118
|
+
include ::Google::Protobuf::MessageExts
|
|
119
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Request message for listing endpoints active within the localized
|
|
123
|
+
# dataplane.
|
|
124
|
+
# @!attribute [rw] parent
|
|
125
|
+
# @return [::String]
|
|
126
|
+
# Required. The parent resource name, in the format
|
|
127
|
+
# `projects/{project}/locations/{location}/aiApplications/{ai_application}`.
|
|
128
|
+
# @!attribute [rw] page_size
|
|
129
|
+
# @return [::Integer]
|
|
130
|
+
# Optional. The maximum number of endpoints to return. The service may return
|
|
131
|
+
# fewer than this value. If unspecified or set to `0`, at most 50 endpoints
|
|
132
|
+
# are returned. The maximum value is 100; values above 100 are coerced to
|
|
133
|
+
# 100.
|
|
134
|
+
# @!attribute [rw] page_token
|
|
135
|
+
# @return [::String]
|
|
136
|
+
# Optional. A page token, received from a previous
|
|
137
|
+
# `ListAiApplicationEndpoints` call. Provide this to retrieve the
|
|
138
|
+
# subsequent page.
|
|
139
|
+
#
|
|
140
|
+
# When paginating, all other parameters provided to
|
|
141
|
+
# `ListAiApplicationEndpoints` must match the call that provided the
|
|
142
|
+
# page token.
|
|
143
|
+
class ListAiApplicationEndpointsRequest
|
|
144
|
+
include ::Google::Protobuf::MessageExts
|
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Response message for listing endpoints active within the localized
|
|
149
|
+
# dataplane.
|
|
150
|
+
# @!attribute [rw] endpoints
|
|
151
|
+
# @return [::Array<::Google::Cloud::AgentRegistry::V1::Endpoint>]
|
|
152
|
+
# The list of endpoints.
|
|
153
|
+
# @!attribute [rw] next_page_token
|
|
154
|
+
# @return [::String]
|
|
155
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
156
|
+
# If this field is omitted, there are no subsequent pages.
|
|
157
|
+
class ListAiApplicationEndpointsResponse
|
|
158
|
+
include ::Google::Protobuf::MessageExts
|
|
159
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Protobuf
|
|
22
|
+
# A Duration represents a signed, fixed-length span of time represented
|
|
23
|
+
# as a count of seconds and fractions of seconds at nanosecond
|
|
24
|
+
# resolution. It is independent of any calendar and concepts like "day"
|
|
25
|
+
# or "month". It is related to Timestamp in that the difference between
|
|
26
|
+
# two Timestamp values is a Duration and it can be added or subtracted
|
|
27
|
+
# from a Timestamp. Range is approximately +-10,000 years.
|
|
28
|
+
#
|
|
29
|
+
# # Examples
|
|
30
|
+
#
|
|
31
|
+
# Example 1: Compute Duration from two Timestamps in pseudo code.
|
|
32
|
+
#
|
|
33
|
+
# Timestamp start = ...;
|
|
34
|
+
# Timestamp end = ...;
|
|
35
|
+
# Duration duration = ...;
|
|
36
|
+
#
|
|
37
|
+
# duration.seconds = end.seconds - start.seconds;
|
|
38
|
+
# duration.nanos = end.nanos - start.nanos;
|
|
39
|
+
#
|
|
40
|
+
# if (duration.seconds < 0 && duration.nanos > 0) {
|
|
41
|
+
# duration.seconds += 1;
|
|
42
|
+
# duration.nanos -= 1000000000;
|
|
43
|
+
# } else if (duration.seconds > 0 && duration.nanos < 0) {
|
|
44
|
+
# duration.seconds -= 1;
|
|
45
|
+
# duration.nanos += 1000000000;
|
|
46
|
+
# }
|
|
47
|
+
#
|
|
48
|
+
# Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
|
49
|
+
#
|
|
50
|
+
# Timestamp start = ...;
|
|
51
|
+
# Duration duration = ...;
|
|
52
|
+
# Timestamp end = ...;
|
|
53
|
+
#
|
|
54
|
+
# end.seconds = start.seconds + duration.seconds;
|
|
55
|
+
# end.nanos = start.nanos + duration.nanos;
|
|
56
|
+
#
|
|
57
|
+
# if (end.nanos < 0) {
|
|
58
|
+
# end.seconds -= 1;
|
|
59
|
+
# end.nanos += 1000000000;
|
|
60
|
+
# } else if (end.nanos >= 1000000000) {
|
|
61
|
+
# end.seconds += 1;
|
|
62
|
+
# end.nanos -= 1000000000;
|
|
63
|
+
# }
|
|
64
|
+
#
|
|
65
|
+
# Example 3: Compute Duration from datetime.timedelta in Python.
|
|
66
|
+
#
|
|
67
|
+
# td = datetime.timedelta(days=3, minutes=10)
|
|
68
|
+
# duration = Duration()
|
|
69
|
+
# duration.FromTimedelta(td)
|
|
70
|
+
#
|
|
71
|
+
# # JSON Mapping
|
|
72
|
+
#
|
|
73
|
+
# In JSON format, the Duration type is encoded as a string rather than an
|
|
74
|
+
# object, where the string ends in the suffix "s" (indicating seconds) and
|
|
75
|
+
# is preceded by the number of seconds, with nanoseconds expressed as
|
|
76
|
+
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
|
77
|
+
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
|
78
|
+
# be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
|
79
|
+
# microsecond should be expressed in JSON format as "3.000001s".
|
|
80
|
+
# @!attribute [rw] seconds
|
|
81
|
+
# @return [::Integer]
|
|
82
|
+
# Signed seconds of the span of time. Must be from -315,576,000,000
|
|
83
|
+
# to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
84
|
+
# 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
85
|
+
# @!attribute [rw] nanos
|
|
86
|
+
# @return [::Integer]
|
|
87
|
+
# Signed fractions of a second at nanosecond resolution of the span
|
|
88
|
+
# of time. Durations less than one second are represented with a 0
|
|
89
|
+
# `seconds` field and a positive or negative `nanos` field. For durations
|
|
90
|
+
# of one second or more, a non-zero value for the `nanos` field must be
|
|
91
|
+
# of the same sign as the `seconds` field. Must be from -999,999,999
|
|
92
|
+
# to +999,999,999 inclusive.
|
|
93
|
+
class Duration
|
|
94
|
+
include ::Google::Protobuf::MessageExts
|
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Protobuf
|
|
22
|
+
# `Struct` represents a structured data value, consisting of fields
|
|
23
|
+
# which map to dynamically typed values. In some languages, `Struct`
|
|
24
|
+
# might be supported by a native representation. For example, in
|
|
25
|
+
# scripting languages like JS a struct is represented as an
|
|
26
|
+
# object. The details of that representation are described together
|
|
27
|
+
# with the proto support for the language.
|
|
28
|
+
#
|
|
29
|
+
# The JSON representation for `Struct` is JSON object.
|
|
30
|
+
# @!attribute [rw] fields
|
|
31
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
|
|
32
|
+
# Unordered map of dynamically typed values.
|
|
33
|
+
class Struct
|
|
34
|
+
include ::Google::Protobuf::MessageExts
|
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
36
|
+
|
|
37
|
+
# @!attribute [rw] key
|
|
38
|
+
# @return [::String]
|
|
39
|
+
# @!attribute [rw] value
|
|
40
|
+
# @return [::Google::Protobuf::Value]
|
|
41
|
+
class FieldsEntry
|
|
42
|
+
include ::Google::Protobuf::MessageExts
|
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# `Value` represents a dynamically typed value which can be either
|
|
48
|
+
# null, a number, a string, a boolean, a recursive struct value, or a
|
|
49
|
+
# list of values. A producer of value is expected to set one of these
|
|
50
|
+
# variants. Absence of any variant indicates an error.
|
|
51
|
+
#
|
|
52
|
+
# The JSON representation for `Value` is JSON value.
|
|
53
|
+
# @!attribute [rw] null_value
|
|
54
|
+
# @return [::Google::Protobuf::NullValue]
|
|
55
|
+
# Represents a null value.
|
|
56
|
+
#
|
|
57
|
+
# Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
58
|
+
# @!attribute [rw] number_value
|
|
59
|
+
# @return [::Float]
|
|
60
|
+
# Represents a double value.
|
|
61
|
+
#
|
|
62
|
+
# Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
63
|
+
# @!attribute [rw] string_value
|
|
64
|
+
# @return [::String]
|
|
65
|
+
# Represents a string value.
|
|
66
|
+
#
|
|
67
|
+
# Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
68
|
+
# @!attribute [rw] bool_value
|
|
69
|
+
# @return [::Boolean]
|
|
70
|
+
# Represents a boolean value.
|
|
71
|
+
#
|
|
72
|
+
# Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
73
|
+
# @!attribute [rw] struct_value
|
|
74
|
+
# @return [::Google::Protobuf::Struct]
|
|
75
|
+
# Represents a structured value.
|
|
76
|
+
#
|
|
77
|
+
# Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
78
|
+
# @!attribute [rw] list_value
|
|
79
|
+
# @return [::Google::Protobuf::ListValue]
|
|
80
|
+
# Represents a repeated `Value`.
|
|
81
|
+
#
|
|
82
|
+
# Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
83
|
+
class Value
|
|
84
|
+
include ::Google::Protobuf::MessageExts
|
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# `ListValue` is a wrapper around a repeated field of values.
|
|
89
|
+
#
|
|
90
|
+
# The JSON representation for `ListValue` is JSON array.
|
|
91
|
+
# @!attribute [rw] values
|
|
92
|
+
# @return [::Array<::Google::Protobuf::Value>]
|
|
93
|
+
# Repeated field of dynamically typed values.
|
|
94
|
+
class ListValue
|
|
95
|
+
include ::Google::Protobuf::MessageExts
|
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# `NullValue` is a singleton enumeration to represent the null value for the
|
|
100
|
+
# `Value` type union.
|
|
101
|
+
#
|
|
102
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
|
103
|
+
module NullValue
|
|
104
|
+
# Null value.
|
|
105
|
+
NULL_VALUE = 0
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|