Class: Google::Apis::ApigeeregistryV1::ApiDeployment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_guidanceString

Text briefly describing how to access the endpoint. Changes to this value will not affect the revision. Corresponds to the JSON property accessGuidance

Returns:

  • (String)


124
125
126
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 124

def access_guidance
  @access_guidance
end

#annotationsHash<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

Returns:

  • (Hash<String,String>)


132
133
134
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 132

def annotations
  @annotations
end

#api_spec_revisionString

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`

Returns:

  • (String)


139
140
141
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 139

def api_spec_revision
  @api_spec_revision
end

#create_timeString

Output only. Creation timestamp; when the deployment resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


144
145
146
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 144

def create_time
  @create_time
end

#descriptionString

A detailed description. Corresponds to the JSON property description

Returns:

  • (String)


149
150
151
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 149

def description
  @description
end

#display_nameString

Human-meaningful name. Corresponds to the JSON property displayName

Returns:

  • (String)


154
155
156
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 154

def display_name
  @display_name
end

#endpoint_uriString

The address where the deployment is serving. Changes to this value will update the revision. Corresponds to the JSON property endpointUri

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 160

def endpoint_uri
  @endpoint_uri
end

#external_channel_uriString

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

Returns:

  • (String)


166
167
168
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 166

def external_channel_uri
  @external_channel_uri
end

#intended_audienceString

Text briefly identifying the intended audience of the API. Changes to this value will not affect the revision. Corresponds to the JSON property intendedAudience

Returns:

  • (String)


172
173
174
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 172

def intended_audience
  @intended_audience
end

#labelsHash<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

Returns:

  • (Hash<String,String>)


184
185
186
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 184

def labels
  @labels
end

#nameString

Resource name. Corresponds to the JSON property name

Returns:

  • (String)


189
190
191
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 189

def name
  @name
end

#revision_create_timeString

Output only. Revision creation timestamp; when the represented revision was created. Corresponds to the JSON property revisionCreateTime

Returns:

  • (String)


195
196
197
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 195

def revision_create_time
  @revision_create_time
end

#revision_idString

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

Returns:

  • (String)


202
203
204
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 202

def revision_id
  @revision_id
end

#revision_update_timeString

Output only. Last update timestamp: when the represented revision was last modified. Corresponds to the JSON property revisionUpdateTime

Returns:

  • (String)


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