Skip to content

Commit

Permalink
Regenerate SecurityCenter client (#8243)
Browse files Browse the repository at this point in the history
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-07-20 06:41:54,150 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/elixir-google-api/synth.py.
On branch autosynth-securitycenter
nothing to commit, working tree clean
2021-07-20 06:41:56,061 synthtool [DEBUG] > Running: docker run --rm -v/tmpfs/tmp/tmp4c48k99g/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh SecurityCenter
DEBUG:synthtool:Running: docker run --rm -v/tmpfs/tmp/tmp4c48k99g/repo:/workspace -v/var/run/docker.sock:/var/run/docker.sock -e USER_GROUP=1000:1000 -w /workspace gcr.io/cloud-devrel-public-resources/elixir19 scripts/generate_client.sh SecurityCenter
/workspace /workspace
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
  certifi 2.5.1
  google_api_discovery 0.7.0
  google_gax 0.3.2
  hackney 1.15.2
  idna 6.0.0
  jason 1.2.1
  metrics 1.0.1
  mime 1.3.1
  mimerl 1.2.0
  oauth2 0.9.4
  parse_trans 3.3.0
  poison 3.1.0
  ssl_verify_fun 1.1.5
  temp 0.4.7
  tesla 1.3.3
  unicode_util_compat 0.4.1
* Getting google_api_discovery (Hex package)
* Getting tesla (Hex package)
* Getting oauth2 (Hex package)
* Getting temp (Hex package)
* Getting jason (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
* Getting unicode_util_compat (Hex package)
* Getting parse_trans (Hex package)
* Getting mime (Hex package)
* Getting google_gax (Hex package)
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m
==> temp
Compiling 3 files (.ex)
Generated temp app
===> Compiling parse_trans
===> Compiling mimerl
===> Compiling metrics
===> Compiling unicode_util_compat
===> Compiling idna
==> jason
Compiling 8 files (.ex)
Generated jason app
warning: String.strip/1 is deprecated. Use String.trim/1 instead
  /workspace/deps/poison/mix.exs:4

==> poison
Compiling 4 files (.ex)
warning: Integer.to_char_list/2 is deprecated. Use Integer.to_charlist/2 instead
  lib/poison/encoder.ex:173

Generated poison app
==> ssl_verify_fun
Compiling 7 files (.erl)
Generated ssl_verify_fun app
===> Compiling certifi
===> Compiling hackney
==> oauth2
Compiling 13 files (.ex)
Generated oauth2 app
==> mime
Compiling 2 files (.ex)
Generated mime app
==> tesla
Compiling 26 files (.ex)
Generated tesla app
==> google_gax
Compiling 5 files (.ex)
Generated google_gax app
==> google_api_discovery
Compiling 21 files (.ex)
Generated google_api_discovery app
==> google_apis
Compiling 28 files (.ex)
Generated google_apis app

13:42:30.502 [info]  FETCHING: https://securitycenter.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1

13:42:30.663 [info]  FOUND: https://securitycenter.googleapis.com/$discovery/GOOGLE_REST_SIMPLE_URI?version=v1
Revision check: old=20210611, new=20210716, generating=true
Creating leading directories
Writing Asset to clients/security_center/lib/google_api/security_center/v1/model/asset.ex.
Writing AssetDiscoveryConfig to clients/security_center/lib/google_api/security_center/v1/model/asset_discovery_config.ex.
Writing AuditConfig to clients/security_center/lib/google_api/security_center/v1/model/audit_config.ex.
Writing AuditLogConfig to clients/security_center/lib/google_api/security_center/v1/model/audit_log_config.ex.
Writing Binding to clients/security_center/lib/google_api/security_center/v1/model/binding.ex.
Writing Empty to clients/security_center/lib/google_api/security_center/v1/model/empty.ex.
Writing Expr to clients/security_center/lib/google_api/security_center/v1/model/expr.ex.
Writing Finding to clients/security_center/lib/google_api/security_center/v1/model/finding.ex.
Writing Folder to clients/security_center/lib/google_api/security_center/v1/model/folder.ex.
Writing GetIamPolicyRequest to clients/security_center/lib/google_api/security_center/v1/model/get_iam_policy_request.ex.
Writing GetPolicyOptions to clients/security_center/lib/google_api/security_center/v1/model/get_policy_options.ex.
Writing GoogleCloudSecuritycenterV1NotificationMessage to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1_notification_message.ex.
Writing GoogleCloudSecuritycenterV1Resource to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1_resource.ex.
Writing GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1_run_asset_discovery_response.ex.
Writing GoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1beta1_run_asset_discovery_response.ex.
Writing GoogleCloudSecuritycenterV1p1beta1Finding to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_finding.ex.
Writing GoogleCloudSecuritycenterV1p1beta1Folder to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_folder.ex.
Writing GoogleCloudSecuritycenterV1p1beta1NotificationMessage to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_notification_message.ex.
Writing GoogleCloudSecuritycenterV1p1beta1Resource to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_resource.ex.
Writing GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_run_asset_discovery_response.ex.
Writing GoogleCloudSecuritycenterV1p1beta1SecurityMarks to clients/security_center/lib/google_api/security_center/v1/model/google_cloud_securitycenter_v1p1beta1_security_marks.ex.
Writing GroupAssetsRequest to clients/security_center/lib/google_api/security_center/v1/model/group_assets_request.ex.
Writing GroupAssetsResponse to clients/security_center/lib/google_api/security_center/v1/model/group_assets_response.ex.
Writing GroupFindingsRequest to clients/security_center/lib/google_api/security_center/v1/model/group_findings_request.ex.
Writing GroupFindingsResponse to clients/security_center/lib/google_api/security_center/v1/model/group_findings_response.ex.
Writing GroupResult to clients/security_center/lib/google_api/security_center/v1/model/group_result.ex.
Writing IamPolicy to clients/security_center/lib/google_api/security_center/v1/model/iam_policy.ex.
Writing Indicator to clients/security_center/lib/google_api/security_center/v1/model/indicator.ex.
Writing ListAssetsResponse to clients/security_center/lib/google_api/security_center/v1/model/list_assets_response.ex.
Writing ListAssetsResult to clients/security_center/lib/google_api/security_center/v1/model/list_assets_result.ex.
Writing ListFindingsResponse to clients/security_center/lib/google_api/security_center/v1/model/list_findings_response.ex.
Writing ListFindingsResult to clients/security_center/lib/google_api/security_center/v1/model/list_findings_result.ex.
Writing ListNotificationConfigsResponse to clients/security_center/lib/google_api/security_center/v1/model/list_notification_configs_response.ex.
Writing ListOperationsResponse to clients/security_center/lib/google_api/security_center/v1/model/list_operations_response.ex.
Writing ListSourcesResponse to clients/security_center/lib/google_api/security_center/v1/model/list_sources_response.ex.
Writing NotificationConfig to clients/security_center/lib/google_api/security_center/v1/model/notification_config.ex.
Writing Operation to clients/security_center/lib/google_api/security_center/v1/model/operation.ex.
Writing OrganizationSettings to clients/security_center/lib/google_api/security_center/v1/model/organization_settings.ex.
Writing Policy to clients/security_center/lib/google_api/security_center/v1/model/policy.ex.
Writing Resource to clients/security_center/lib/google_api/security_center/v1/model/resource.ex.
Writing RunAssetDiscoveryRequest to clients/security_center/lib/google_api/security_center/v1/model/run_asset_discovery_request.ex.
Writing SecurityCenterProperties to clients/security_center/lib/google_api/security_center/v1/model/security_center_properties.ex.
Writing SecurityMarks to clients/security_center/lib/google_api/security_center/v1/model/security_marks.ex.
Writing SetFindingStateRequest to clients/security_center/lib/google_api/security_center/v1/model/set_finding_state_request.ex.
Writing SetIamPolicyRequest to clients/security_center/lib/google_api/security_center/v1/model/set_iam_policy_request.ex.
Writing Source to clients/security_center/lib/google_api/security_center/v1/model/source.ex.
Writing Status to clients/security_center/lib/google_api/security_center/v1/model/status.ex.
Writing StreamingConfig to clients/security_center/lib/google_api/security_center/v1/model/streaming_config.ex.
Writing TestIamPermissionsRequest to clients/security_center/lib/google_api/security_center/v1/model/test_iam_permissions_request.ex.
Writing TestIamPermissionsResponse to clients/security_center/lib/google_api/security_center/v1/model/test_iam_permissions_response.ex.
Writing Folders to clients/security_center/lib/google_api/security_center/v1/api/folders.ex.
Writing Organizations to clients/security_center/lib/google_api/security_center/v1/api/organizations.ex.
Writing Projects to clients/security_center/lib/google_api/security_center/v1/api/projects.ex.
Writing connection.ex.
Writing metadata.ex.
Writing mix.exs
Writing README.md
Writing LICENSE
Writing .gitignore
Writing config/config.exs
Writing test/test_helper.exs
�[33mThe mix.lock file was generated with a newer version of Hex. Update your client by running `mix local.hex` to avoid losing data.�[0m

13:42:32.569 [info]  Bumping minor
fixing file permissions
2021-07-20 06:42:35,510 synthtool [DEBUG] > Wrote metadata to clients/security_center/synth.metadata.
DEBUG:synthtool:Wrote metadata to clients/security_center/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/6af438aa-871e-417a-932a-ac643e482a7f/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
  • Loading branch information
yoshi-automation authored Jul 20, 2021
1 parent 33de45f commit 4053b04
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clients/security_center/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_security_center, "~> 0.19"}]
[{:google_api_security_center, "~> 0.20"}]
end
```

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

@discovery_revision "20210611"
@discovery_revision "20210716"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
* `createTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the finding was created in Security Command Center.
* `eventTime` (*type:* `DateTime.t`, *default:* `nil`) - The time at which the event took place, or when an update to the finding occurred. For example, if the finding represents an open firewall it would capture the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding were to be resolved afterward, this time would reflect when the finding was resolved. Must not be set to a value greater than the current timestamp.
* `externalUri` (*type:* `String.t`, *default:* `nil`) - The URI that, if available, points to a web page outside of Security Command Center where additional information about the finding can be found. This field is guaranteed to be either empty or a well formed URL.
* `findingClass` (*type:* `String.t`, *default:* `nil`) - The class of the finding.
* `indicator` (*type:* `GoogleApi.SecurityCenter.V1.Model.Indicator.t`, *default:* `nil`) - Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
* `name` (*type:* `String.t`, *default:* `nil`) - The relative resource name of this finding. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}"
* `parent` (*type:* `String.t`, *default:* `nil`) - The relative resource name of the source the finding belongs to. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name This field is immutable after creation time. For example: "organizations/{organization_id}/sources/{source_id}"
* `resourceName` (*type:* `String.t`, *default:* `nil`) - For findings on Google Cloud resources, the full resource name of the Google Cloud resource this finding is for. See: https://cloud.google.com/apis/design/resource_names#full_resource_name When the finding is for a non-Google Cloud resource, the resourceName can be a customer or partner defined string. This field is immutable after creation time.
Expand All @@ -43,6 +45,8 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
:createTime => DateTime.t() | nil,
:eventTime => DateTime.t() | nil,
:externalUri => String.t() | nil,
:findingClass => String.t() | nil,
:indicator => GoogleApi.SecurityCenter.V1.Model.Indicator.t() | nil,
:name => String.t() | nil,
:parent => String.t() | nil,
:resourceName => String.t() | nil,
Expand All @@ -57,6 +61,8 @@ defmodule GoogleApi.SecurityCenter.V1.Model.Finding do
field(:createTime, as: DateTime)
field(:eventTime, as: DateTime)
field(:externalUri)
field(:findingClass)
field(:indicator, as: GoogleApi.SecurityCenter.V1.Model.Indicator)
field(:name)
field(:parent)
field(:resourceName)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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.SecurityCenter.V1.Model.Indicator do
@moduledoc """
Represents what's commonly known as an Indicator of compromise (IoC) in computer forensics. This is an artifact observed on a network or in an operating system that, with high confidence, indicates a computer intrusion. Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise
## Attributes
* `domains` (*type:* `list(String.t)`, *default:* `nil`) - List of domains associated to the Finding.
* `ipAddresses` (*type:* `list(String.t)`, *default:* `nil`) - List of ip addresses associated to the Finding.
"""

use GoogleApi.Gax.ModelBase

@type t :: %__MODULE__{
:domains => list(String.t()) | nil,
:ipAddresses => list(String.t()) | nil
}

field(:domains, type: :list)
field(:ipAddresses, type: :list)
end

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

defimpl Poison.Encoder, for: GoogleApi.SecurityCenter.V1.Model.Indicator do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end
2 changes: 1 addition & 1 deletion clients/security_center/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.SecurityCenter.Mixfile do
use Mix.Project

@version "0.19.2"
@version "0.20.0"

def project() do
[
Expand Down
2 changes: 1 addition & 1 deletion clients/security_center/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/elixir-google-api.git",
"sha": "b67600fb02573589ac249eb5102df111809fb80d"
"sha": "33de45fc559bbed9d89cea11ba3d20ccf745d849"
}
}
]
Expand Down

0 comments on commit 4053b04

Please sign in to comment.