Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of Apigee client #10973

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9,106 changes: 6,196 additions & 2,910 deletions clients/apigee/lib/google_api/apigee/v1/api/organizations.ex

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clients/apigee/lib/google_api/apigee/v1/metadata.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.Apigee.V1 do
API client metadata for GoogleApi.Apigee.V1.
"""

@discovery_revision "20221110"
@discovery_revision "20240305"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AddonsConfig do
## Attributes

* `advancedApiOpsConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AdvancedApiOpsConfig.t`, *default:* `nil`) - Configuration for the Advanced API Ops add-on.
* `analyticsConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AnalyticsConfig.t`, *default:* `nil`) - Configuration for the Analytics add-on.
* `apiSecurityConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiSecurityConfig.t`, *default:* `nil`) - Configuration for the API Security add-on.
* `connectorsPlatformConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ConnectorsPlatformConfig.t`, *default:* `nil`) - Configuration for the Connectors Platform add-on.
* `integrationConfig` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1IntegrationConfig.t`, *default:* `nil`) - Configuration for the Integration add-on.
Expand All @@ -33,6 +34,8 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AddonsConfig do
@type t :: %__MODULE__{
:advancedApiOpsConfig =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AdvancedApiOpsConfig.t() | nil,
:analyticsConfig =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AnalyticsConfig.t() | nil,
:apiSecurityConfig =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiSecurityConfig.t() | nil,
:connectorsPlatformConfig =>
Expand All @@ -47,6 +50,7 @@ defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AddonsConfig do
as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AdvancedApiOpsConfig
)

field(:analyticsConfig, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AnalyticsConfig)
field(:apiSecurityConfig, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiSecurityConfig)

field(:connectorsPlatformConfig,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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.Apigee.V1.Model.GoogleCloudApigeeV1AnalyticsConfig do
@moduledoc """
Configuration for the Analytics add-on.

## Attributes

* `enabled` (*type:* `boolean()`, *default:* `nil`) - Whether the Analytics add-on is enabled.
* `expireTimeMillis` (*type:* `String.t`, *default:* `nil`) - Output only. Time at which the Analytics add-on expires in milliseconds since epoch. If unspecified, the add-on will never expire.
* `state` (*type:* `String.t`, *default:* `nil`) - Output only. The state of the Analytics add-on.
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The latest update time.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:enabled => boolean() | nil,
:expireTimeMillis => String.t() | nil,
:state => String.t() | nil,
:updateTime => DateTime.t() | nil
}

field(:enabled)
field(:expireTimeMillis)
field(:state)
field(:updateTime, as: DateTime)
end

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

defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1AnalyticsConfig 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 @@ -17,32 +17,29 @@

defmodule GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategory do
@moduledoc """
the Api category resource wrapped with response status, error_code etc.
`ApiCategory` represents an API category. [Catalog items](/apigee/docs/reference/apis/apigee/rest/v1/organizations.sites.apidocs) can be tagged with API categories; users viewing the API catalog in the portal will have the option to browse the catalog by category.

## Attributes

* `data` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategoryData.t`, *default:* `nil`) - Details of category.
* `errorCode` (*type:* `String.t`, *default:* `nil`) - ID that can be used to find errors in the log files.
* `message` (*type:* `String.t`, *default:* `nil`) - Description of the operation.
* `requestId` (*type:* `String.t`, *default:* `nil`) - ID that can be used to find request details in the log files.
* `status` (*type:* `String.t`, *default:* `nil`) - Status of the operation.
* `id` (*type:* `String.t`, *default:* `nil`) - ID of the category (a UUID).
* `name` (*type:* `String.t`, *default:* `nil`) - Name of the category.
* `siteId` (*type:* `String.t`, *default:* `nil`) - Name of the portal.
* `updateTime` (*type:* `String.t`, *default:* `nil`) - Time the category was last modified in milliseconds since epoch.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:data => GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategoryData.t() | nil,
:errorCode => String.t() | nil,
:message => String.t() | nil,
:requestId => String.t() | nil,
:status => String.t() | nil
:id => String.t() | nil,
:name => String.t() | nil,
:siteId => String.t() | nil,
:updateTime => String.t() | nil
}

field(:data, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategoryData)
field(:errorCode)
field(:message)
field(:requestId)
field(:status)
field(:id)
field(:name)
field(:siteId)
field(:updateTime)
end

defimpl Poison.Decoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategory do
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# 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.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategoryResponse do
@moduledoc """
The API category resource wrapped with response status, error_code, etc.

## Attributes

* `data` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategory.t`, *default:* `nil`) - The API category resource.
* `errorCode` (*type:* `String.t`, *default:* `nil`) - Unique error code for the request, if any.
* `message` (*type:* `String.t`, *default:* `nil`) - Description of the operation.
* `requestId` (*type:* `String.t`, *default:* `nil`) - Unique ID of the request.
* `status` (*type:* `String.t`, *default:* `nil`) - Status of the operation.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:data => GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategory.t() | nil,
:errorCode => String.t() | nil,
:message => String.t() | nil,
:requestId => String.t() | nil,
:status => String.t() | nil
}

field(:data, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategory)
field(:errorCode)
field(:message)
field(:requestId)
field(:status)
end

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

defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiCategoryResponse do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# 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.Apigee.V1.Model.GoogleCloudApigeeV1ApiDoc do
@moduledoc """
`ApiDoc` represents an API catalog item. Catalog items are used in two ways in a portal: - Users can browse and interact with a visual representation of the API documentation - The `api_product_name` field provides a link to a backing [API product] (/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts). Through this link, portal users can create and manage developer apps linked to one or more API products.

## Attributes

* `anonAllowed` (*type:* `boolean()`, *default:* `nil`) - Optional. Boolean flag that manages user access to the catalog item. When true, the catalog item can be viewed anonymously; otherwise, only registered users may view it. Note: when the parent portal is enrolled in the [audience management feature](https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature), this flag is ignored; instead visibility must be further managed in the management UI (see [Manage the visibility of an API in your portal](https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)).
* `apiProductName` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The `name` field of the associated [API product](/apigee/docs/reference/apis/apigee/rest/v1/organizations.apiproducts). A portal may have only one catalog item associated with a given API product.
* `categoryIds` (*type:* `list(String.t)`, *default:* `nil`) - Optional. The IDs of the API categories to which this catalog item belongs.
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description of the catalog item. Max length is 10,000 characters.
* `edgeAPIProductName` (*type:* `String.t`, *default:* `nil`) - Optional. Immutable. DEPRECATED: use the `apiProductName` field instead
* `graphqlEndpointUrl` (*type:* `String.t`, *default:* `nil`) - Optional. DEPRECATED: manage documentation through the `getDocumentation` and `updateDocumentation` methods
* `graphqlSchema` (*type:* `String.t`, *default:* `nil`) - Optional. DEPRECATED: manage documentation through the `getDocumentation` and `updateDocumentation` methods
* `graphqlSchemaDisplayName` (*type:* `String.t`, *default:* `nil`) - Optional. DEPRECATED: manage documentation through the `getDocumentation` and `updateDocumentation` methods
* `id` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the catalog item.
* `imageUrl` (*type:* `String.t`, *default:* `nil`) - Optional. Location of the image used for the catalog item in the catalog. For portal files, this can have the format `/files/{filename}`. Max length is 2,083 characters.
* `modified` (*type:* `String.t`, *default:* `nil`) - Output only. Time the catalog item was last modified in milliseconds since epoch.
* `published` (*type:* `boolean()`, *default:* `nil`) - Optional. Denotes whether the catalog item is published to the portal or is in a draft state. When the parent portal is enrolled in the [audience management feature](https://cloud.google.com/apigee/docs/api-platform/publish/portal/portal-audience#enrolling_in_the_beta_release_of_the_audience_management_feature), the visibility must be further managed in the management UI (see [Manage the visibility of an API in your portal](https://cloud.google.com/apigee/docs/api-platform/publish/portal/publish-apis#visibility)) before it can be visible to any users. If not enrolled in the audience management feature, the visibility is further managed by the `anonAllowed` flag.
* `requireCallbackUrl` (*type:* `boolean()`, *default:* `nil`) - Optional. Whether a callback URL is required when this catalog item's API product is enabled in a developer app. When true, a portal user will be required to input a URL when managing the app (this is typically used for the app's OAuth flow).
* `siteId` (*type:* `String.t`, *default:* `nil`) - Output only. The ID of the parent portal.
* `specId` (*type:* `String.t`, *default:* `nil`) - Optional. DEPRECATED: DO NOT USE
* `title` (*type:* `String.t`, *default:* `nil`) - Required. The user-facing name of the catalog item. `title` must be a non-empty string with a max length of 255 characters.
* `visibility` (*type:* `boolean()`, *default:* `nil`) - Optional. DEPRECATED: use the `published` field instead
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:anonAllowed => boolean() | nil,
:apiProductName => String.t() | nil,
:categoryIds => list(String.t()) | nil,
:description => String.t() | nil,
:edgeAPIProductName => String.t() | nil,
:graphqlEndpointUrl => String.t() | nil,
:graphqlSchema => String.t() | nil,
:graphqlSchemaDisplayName => String.t() | nil,
:id => String.t() | nil,
:imageUrl => String.t() | nil,
:modified => String.t() | nil,
:published => boolean() | nil,
:requireCallbackUrl => boolean() | nil,
:siteId => String.t() | nil,
:specId => String.t() | nil,
:title => String.t() | nil,
:visibility => boolean() | nil
}

field(:anonAllowed)
field(:apiProductName)
field(:categoryIds, type: :list)
field(:description)
field(:edgeAPIProductName)
field(:graphqlEndpointUrl)
field(:graphqlSchema)
field(:graphqlSchemaDisplayName)
field(:id)
field(:imageUrl)
field(:modified)
field(:published)
field(:requireCallbackUrl)
field(:siteId)
field(:specId)
field(:title)
field(:visibility)
end

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

defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiDoc do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 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.Apigee.V1.Model.GoogleCloudApigeeV1ApiDocDocumentation do
@moduledoc """
The documentation for a catalog item.

## Attributes

* `graphqlDocumentation` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1GraphqlDocumentation.t`, *default:* `nil`) - Optional. GraphQL documentation.
* `oasDocumentation` (*type:* `GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1OASDocumentation.t`, *default:* `nil`) - Optional. OpenAPI Specification documentation.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:graphqlDocumentation =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1GraphqlDocumentation.t() | nil,
:oasDocumentation =>
GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1OASDocumentation.t() | nil
}

field(:graphqlDocumentation,
as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1GraphqlDocumentation
)

field(:oasDocumentation, as: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1OASDocumentation)
end

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

defimpl Poison.Encoder, for: GoogleApi.Apigee.V1.Model.GoogleCloudApigeeV1ApiDocDocumentation do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
Loading
Loading