@@ -129,9 +129,19 @@ class Endpoint
129129 attr_accessor :address
130130
131131 # Optional. Metadata for the endpoint. This data can be consumed by service
132- # clients. The entire metadata dictionary may contain up to 512 characters,
133- # spread accoss all key-value pairs. Metadata that goes beyond any these limits
134- # will be rejected.
132+ # clients. Restrictions: - The entire metadata dictionary may contain up to 512
133+ # characters, spread accoss all key-value pairs. Metadata that goes beyond any
134+ # these limits will be rejected. - Valid metadata keys have two segments: an
135+ # optional prefix and name, separated by a slash (/). The name segment is
136+ # required and must be 63 characters or less, beginning and ending with an
137+ # alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.)
138+ # , and alphanumerics between. The prefix is optional. If specified, the prefix
139+ # must be a DNS subdomain: a series of DNS labels separated by dots (.), not
140+ # longer than 253 characters in total, followed by a slash (/). Metadata that
141+ # fails to meet these requirements will be rejected. - The '(*.)google.com/' and
142+ # '(*.)googleapis.com/' prefixes are reserved for system metadata managed by
143+ # Service Directory. If the user tries to write to these keyspaces, those
144+ # entries will be silently ignored by the system.
135145 # Corresponds to the JSON property `metadata`
136146 # @return [Hash<String,String>]
137147 attr_accessor :metadata
@@ -589,9 +599,19 @@ class Service
589599 attr_accessor :endpoints
590600
591601 # Optional. Metadata for the service. This data can be consumed by service
592- # clients. The entire metadata dictionary may contain up to 2000 characters,
593- # spread across all key-value pairs. Metadata that goes beyond any these limits
594- # will be rejected.
602+ # clients. Restrictions: - The entire metadata dictionary may contain up to 2000
603+ # characters, spread accoss all key-value pairs. Metadata that goes beyond any
604+ # these limits will be rejected. - Valid metadata keys have two segments: an
605+ # optional prefix and name, separated by a slash (/). The name segment is
606+ # required and must be 63 characters or less, beginning and ending with an
607+ # alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.)
608+ # , and alphanumerics between. The prefix is optional. If specified, the prefix
609+ # must be a DNS subdomain: a series of DNS labels separated by dots (.), not
610+ # longer than 253 characters in total, followed by a slash (/). Metadata that
611+ # fails to meet these requirements will be rejected. - The '(*.)google.com/' and
612+ # '(*.)googleapis.com/' prefixes are reserved for system metadata managed by
613+ # Service Directory. If the user tries to write to these keyspaces, those
614+ # entries will be silently ignored by the system.
595615 # Corresponds to the JSON property `metadata`
596616 # @return [Hash<String,String>]
597617 attr_accessor :metadata
0 commit comments