Class: Google::Apis::ApigeeregistryV1::ApiDeployment
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeregistryV1::ApiDeployment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigeeregistry_v1/classes.rb,
lib/google/apis/apigeeregistry_v1/representations.rb,
lib/google/apis/apigeeregistry_v1/representations.rb
Overview
Describes a service running at particular address that provides a particular version of an API. ApiDeployments have revisions which correspond to different configurations of a single deployment in time. Revision identifiers should be updated whenever the served API spec or endpoint address changes.
Instance Attribute Summary collapse
-
#access_guidance ⇒ String
Text briefly describing how to access the endpoint.
-
#annotations ⇒ Hash<String,String>
Annotations attach non-identifying metadata to resources.
-
#api_spec_revision ⇒ String
The full resource name (including revision ID) of the spec of the API being served by the deployment.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A detailed description.
-
#display_name ⇒ String
Human-meaningful name.
-
#endpoint_uri ⇒ String
The address where the deployment is serving.
-
#external_channel_uri ⇒ String
The address of the external channel of the API (e.g., the Developer Portal).
-
#intended_audience ⇒ String
Text briefly identifying the intended audience of the API.
-
#labels ⇒ Hash<String,String>
Labels attach identifying metadata to resources.
-
#name ⇒ String
Resource name.
-
#revision_create_time ⇒ String
Output only.
-
#revision_id ⇒ String
Output only.
-
#revision_update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiDeployment
constructor
A new instance of ApiDeployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApiDeployment
Returns a new instance of ApiDeployment.
210 211 212 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 210 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_guidance ⇒ String
Text briefly describing how to access the endpoint. Changes to this value will
not affect the revision.
Corresponds to the JSON property accessGuidance
124 125 126 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 124 def access_guidance @access_guidance end |
#annotations ⇒ Hash<String,String>
Annotations attach non-identifying metadata to resources. Annotation keys and
values are less restricted than those of labels, but should be generally used
for small values of broad interest. Larger, topic- specific metadata should be
stored in Artifacts.
Corresponds to the JSON property annotations
132 133 134 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 132 def annotations @annotations end |
#api_spec_revision ⇒ String
The full resource name (including revision ID) of the spec of the API being
served by the deployment. Changes to this value will update the revision.
Format: apis/api/deployments/deployment`
Corresponds to the JSON propertyapiSpecRevision`
139 140 141 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 139 def api_spec_revision @api_spec_revision end |
#create_time ⇒ String
Output only. Creation timestamp; when the deployment resource was created.
Corresponds to the JSON property createTime
144 145 146 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 144 def create_time @create_time end |
#description ⇒ String
A detailed description.
Corresponds to the JSON property description
149 150 151 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 149 def description @description end |
#display_name ⇒ String
Human-meaningful name.
Corresponds to the JSON property displayName
154 155 156 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 154 def display_name @display_name end |
#endpoint_uri ⇒ String
The address where the deployment is serving. Changes to this value will update
the revision.
Corresponds to the JSON property endpointUri
160 161 162 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 160 def endpoint_uri @endpoint_uri end |
#external_channel_uri ⇒ String
The address of the external channel of the API (e.g., the Developer Portal).
Changes to this value will not affect the revision.
Corresponds to the JSON property externalChannelUri
166 167 168 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 166 def external_channel_uri @external_channel_uri end |
#intended_audience ⇒ String
Text briefly identifying the intended audience of the API. Changes to this
value will not affect the revision.
Corresponds to the JSON property intendedAudience
172 173 174 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 172 def intended_audience @intended_audience end |
#labels ⇒ Hash<String,String>
Labels attach identifying metadata to resources. Identifying metadata can be
used to filter list operations. Label keys and values can be no longer than 64
characters (Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed. No
more than 64 user labels can be associated with one resource (System labels
are excluded). See https://goo.gl/xmQnxf for more information and examples of
labels. System reserved label keys are prefixed with apigeeregistry.
googleapis.com/ and cannot be changed.
Corresponds to the JSON property labels
184 185 186 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 184 def labels @labels end |
#name ⇒ String
Resource name.
Corresponds to the JSON property name
189 190 191 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 189 def name @name end |
#revision_create_time ⇒ String
Output only. Revision creation timestamp; when the represented revision was
created.
Corresponds to the JSON property revisionCreateTime
195 196 197 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 195 def revision_create_time @revision_create_time end |
#revision_id ⇒ String
Output only. Immutable. The revision ID of the deployment. A new revision is
committed whenever the deployment contents are changed. The format is an 8-
character hexadecimal string.
Corresponds to the JSON property revisionId
202 203 204 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 202 def revision_id @revision_id end |
#revision_update_time ⇒ String
Output only. Last update timestamp: when the represented revision was last
modified.
Corresponds to the JSON property revisionUpdateTime
208 209 210 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 208 def revision_update_time @revision_update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 215 def update!(**args) @access_guidance = args[:access_guidance] if args.key?(:access_guidance) @annotations = args[:annotations] if args.key?(:annotations) @api_spec_revision = args[:api_spec_revision] if args.key?(:api_spec_revision) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @endpoint_uri = args[:endpoint_uri] if args.key?(:endpoint_uri) @external_channel_uri = args[:external_channel_uri] if args.key?(:external_channel_uri) @intended_audience = args[:intended_audience] if args.key?(:intended_audience) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @revision_create_time = args[:revision_create_time] if args.key?(:revision_create_time) @revision_id = args[:revision_id] if args.key?(:revision_id) @revision_update_time = args[:revision_update_time] if args.key?(:revision_update_time) end |