Skip to content

Commit

Permalink
feat: Automated regeneration of ApigeeRegistry client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Mar 12, 2024
1 parent 9e554ee commit 027b6ff
Show file tree
Hide file tree
Showing 14 changed files with 298 additions and 12 deletions.
2 changes: 1 addition & 1 deletion clients/apigee_registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_apigee_registry, "~> 0.3"}]
[{:google_api_apigee_registry, "~> 0.4"}]
end
```

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.ApigeeRegistry.V1 do
API client metadata for GoogleApi.ApigeeRegistry.V1.
"""

@discovery_revision "20220929"
@discovery_revision "20231204"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.ApiDeployment do
* `accessGuidance` (*type:* `String.t`, *default:* `nil`) - Text briefly describing how to access the endpoint. Changes to this value will not affect the revision.
* `annotations` (*type:* `map()`, *default:* `nil`) - 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.
* `apiSpecRevision` (*type:* `String.t`, *default:* `nil`) - 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}`
* `apiSpecRevision` (*type:* `String.t`, *default:* `nil`) - 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: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec@revision}`
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Creation timestamp; when the deployment resource was created.
* `description` (*type:* `String.t`, *default:* `nil`) - A detailed description.
* `displayName` (*type:* `String.t`, *default:* `nil`) - Human-meaningful name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.ApiSpec do
* `filename` (*type:* `String.t`, *default:* `nil`) - A possibly-hierarchical name used to refer to the spec from other specs.
* `hash` (*type:* `String.t`, *default:* `nil`) - Output only. A SHA-256 hash of the spec's contents. If the spec is gzipped, this is the hash of the uncompressed spec.
* `labels` (*type:* `map()`, *default:* `nil`) - 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.
* `mimeType` (*type:* `String.t`, *default:* `nil`) - A style (format) descriptor for this spec that is specified as a Media Type (https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
* `mimeType` (*type:* `String.t`, *default:* `nil`) - A style (format) descriptor for this spec that is specified as a [Media Type](https://en.wikipedia.org/wiki/Media_type). Possible values include `application/vnd.apigee.proto`, `application/vnd.apigee.openapi`, and `application/vnd.apigee.graphql`, with possible suffixes representing compression types. These hypothetical names are defined in the vendor tree defined in RFC6838 (https://tools.ietf.org/html/rfc6838) and are not final. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
* `name` (*type:* `String.t`, *default:* `nil`) - Resource name.
* `revisionCreateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Revision creation timestamp; when the represented revision was created.
* `revisionId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The revision ID of the spec. A new revision is committed whenever the spec contents are changed. The format is an 8-character hexadecimal string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.ApiVersion do
* `displayName` (*type:* `String.t`, *default:* `nil`) - Human-meaningful name.
* `labels` (*type:* `map()`, *default:* `nil`) - 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.
* `name` (*type:* `String.t`, *default:* `nil`) - Resource name.
* `primarySpec` (*type:* `String.t`, *default:* `nil`) - The primary spec for this version. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
* `state` (*type:* `String.t`, *default:* `nil`) - A user-definable description of the lifecycle phase of this API version. Format: free-form, but we expect single words that describe API maturity, e.g., "CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "RETIRED".
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Last update timestamp.
"""
Expand All @@ -40,6 +41,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.ApiVersion do
:displayName => String.t() | nil,
:labels => map() | nil,
:name => String.t() | nil,
:primarySpec => String.t() | nil,
:state => String.t() | nil,
:updateTime => DateTime.t() | nil
}
Expand All @@ -50,6 +52,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.ApiVersion do
field(:displayName)
field(:labels, type: :map)
field(:name)
field(:primarySpec)
field(:state)
field(:updateTime, as: DateTime)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Artifact do
## Attributes
* `annotations` (*type:* `map()`, *default:* `nil`) - 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.
* `contents` (*type:* `String.t`, *default:* `nil`) - Input only. The contents of the artifact. Provided by API callers when artifacts are created or replaced. To access the contents of an artifact, use GetArtifactContents.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Creation timestamp.
* `hash` (*type:* `String.t`, *default:* `nil`) - Output only. A SHA-256 hash of the artifact's contents. If the artifact is gzipped, this is the hash of the uncompressed artifact.
* `labels` (*type:* `map()`, *default:* `nil`) - 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 "registry.googleapis.com/" and cannot be changed.
* `mimeType` (*type:* `String.t`, *default:* `nil`) - A content type specifier for the artifact. Content type specifiers are Media Types (https://en.wikipedia.org/wiki/Media_type) with a possible "schema" parameter that specifies a schema for the stored information. Content types can specify compression. Currently only GZip compression is supported (indicated with "+gzip").
* `name` (*type:* `String.t`, *default:* `nil`) - Resource name.
* `sizeBytes` (*type:* `integer()`, *default:* `nil`) - Output only. The size of the artifact in bytes. If the artifact is gzipped, this is the size of the uncompressed artifact.
Expand All @@ -33,18 +35,22 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Artifact do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:annotations => map() | nil,
:contents => String.t() | nil,
:createTime => DateTime.t() | nil,
:hash => String.t() | nil,
:labels => map() | nil,
:mimeType => String.t() | nil,
:name => String.t() | nil,
:sizeBytes => integer() | nil,
:updateTime => DateTime.t() | nil
}

field(:annotations, type: :map)
field(:contents)
field(:createTime, as: DateTime)
field(:hash)
field(:labels, type: :map)
field(:mimeType)
field(:name)
field(:sizeBytes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Binding do
## Attributes
* `condition` (*type:* `GoogleApi.ApigeeRegistry.V1.Model.Expr.t`, *default:* `nil`) - The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
* `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
* `members` (*type:* `list(String.t)`, *default:* `nil`) - Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `[email protected]`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.
* `role` (*type:* `String.t`, *default:* `nil`) - Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
"""

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.ApigeeRegistry.V1.Model.Build do
@moduledoc """
Build information of the Instance if it's in `ACTIVE` state.
## Attributes
* `commitId` (*type:* `String.t`, *default:* `nil`) - Output only. Commit ID of the latest commit in the build.
* `commitTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Commit time of the latest commit in the build.
* `repo` (*type:* `String.t`, *default:* `nil`) - Output only. Path of the open source repository: github.com/apigee/registry.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:commitId => String.t() | nil,
:commitTime => DateTime.t() | nil,
:repo => String.t() | nil
}

field(:commitId)
field(:commitTime, as: DateTime)
field(:repo)
end

defimpl Poison.Decoder, for: GoogleApi.ApigeeRegistry.V1.Model.Build do
def decode(value, options) do
GoogleApi.ApigeeRegistry.V1.Model.Build.decode(value, options)
end
end

defimpl Poison.Encoder, for: GoogleApi.ApigeeRegistry.V1.Model.Build do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Instance do
## Attributes
* `build` (*type:* `GoogleApi.ApigeeRegistry.V1.Model.Build.t`, *default:* `nil`) - Output only. Build info of the Instance if it's in `ACTIVE` state.
* `config` (*type:* `GoogleApi.ApigeeRegistry.V1.Model.Config.t`, *default:* `nil`) - Required. Config of the Instance.
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Creation timestamp.
* `name` (*type:* `String.t`, *default:* `nil`) - Format: `projects/*/locations/*/instance`. Currently only `locations/global` is supported.
Expand All @@ -32,6 +33,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Instance do
use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:build => GoogleApi.ApigeeRegistry.V1.Model.Build.t() | nil,
:config => GoogleApi.ApigeeRegistry.V1.Model.Config.t() | nil,
:createTime => DateTime.t() | nil,
:name => String.t() | nil,
Expand All @@ -40,6 +42,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Instance do
:updateTime => DateTime.t() | nil
}

field(:build, as: GoogleApi.ApigeeRegistry.V1.Model.Build)
field(:config, as: GoogleApi.ApigeeRegistry.V1.Model.Config)
field(:createTime, as: DateTime)
field(:name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

defmodule GoogleApi.ApigeeRegistry.V1.Model.Location do
@moduledoc """
A resource that represents Google Cloud Platform location.
A resource that represents a Google Cloud location.
## Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule GoogleApi.ApigeeRegistry.V1.Model.Operation do
* `error` (*type:* `GoogleApi.ApigeeRegistry.V1.Model.Status.t`, *default:* `nil`) - The error result of the operation in case of failure or cancellation.
* `metadata` (*type:* `map()`, *default:* `nil`) - Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
* `name` (*type:* `String.t`, *default:* `nil`) - The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
* `response` (*type:* `map()`, *default:* `nil`) - The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
"""

use GoogleApi.Gax.ModelBase
Expand Down
Loading

0 comments on commit 027b6ff

Please sign in to comment.