Skip to content

Commit 269ea3b

Browse files
feat: Automated regeneration of ChromeManagement client (googleapis#12576)
Auto-created at 2024-11-21 13:12:40 +0000 using the toys pull request generator.
1 parent 6bb2128 commit 269ea3b

13 files changed

+934
-3
lines changed

clients/chrome_management/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_chrome_management, "~> 0.7"}]
14+
[{:google_api_chrome_management, "~> 0.8"}]
1515
end
1616
```
1717

clients/chrome_management/lib/google_api/chrome_management/v1/api/customers.ex

Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,235 @@ defmodule GoogleApi.ChromeManagement.V1.Api.Customers do
491491
)
492492
end
493493

494+
@doc """
495+
Deletes the data collected from a Chrome browser profile.
496+
497+
## Parameters
498+
499+
* `connection` (*type:* `GoogleApi.ChromeManagement.V1.Connection.t`) - Connection to server
500+
* `name` (*type:* `String.t`) - Required. Format: customers/{customer_id}/profiles/{profile_permanent_id}
501+
* `optional_params` (*type:* `keyword()`) - Optional parameters
502+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
503+
* `:access_token` (*type:* `String.t`) - OAuth access token.
504+
* `:alt` (*type:* `String.t`) - Data format for response.
505+
* `:callback` (*type:* `String.t`) - JSONP
506+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
507+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
508+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
509+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
510+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
511+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
512+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
513+
* `opts` (*type:* `keyword()`) - Call options
514+
515+
## Returns
516+
517+
* `{:ok, %GoogleApi.ChromeManagement.V1.Model.GoogleProtobufEmpty{}}` on success
518+
* `{:error, info}` on failure
519+
"""
520+
@spec chromemanagement_customers_profiles_delete(
521+
Tesla.Env.client(),
522+
String.t(),
523+
keyword(),
524+
keyword()
525+
) ::
526+
{:ok, GoogleApi.ChromeManagement.V1.Model.GoogleProtobufEmpty.t()}
527+
| {:ok, Tesla.Env.t()}
528+
| {:ok, list()}
529+
| {:error, any()}
530+
def chromemanagement_customers_profiles_delete(
531+
connection,
532+
name,
533+
optional_params \\ [],
534+
opts \\ []
535+
) do
536+
optional_params_config = %{
537+
:"$.xgafv" => :query,
538+
:access_token => :query,
539+
:alt => :query,
540+
:callback => :query,
541+
:fields => :query,
542+
:key => :query,
543+
:oauth_token => :query,
544+
:prettyPrint => :query,
545+
:quotaUser => :query,
546+
:uploadType => :query,
547+
:upload_protocol => :query
548+
}
549+
550+
request =
551+
Request.new()
552+
|> Request.method(:delete)
553+
|> Request.url("/v1/{+name}", %{
554+
"name" => URI.encode(name, &URI.char_unreserved?/1)
555+
})
556+
|> Request.add_optional_params(optional_params_config, optional_params)
557+
|> Request.library_version(@library_version)
558+
559+
connection
560+
|> Connection.execute(request)
561+
|> Response.decode(
562+
opts ++ [struct: %GoogleApi.ChromeManagement.V1.Model.GoogleProtobufEmpty{}]
563+
)
564+
end
565+
566+
@doc """
567+
Gets a Chrome browser profile with customer ID and profile permanent ID.
568+
569+
## Parameters
570+
571+
* `connection` (*type:* `GoogleApi.ChromeManagement.V1.Connection.t`) - Connection to server
572+
* `name` (*type:* `String.t`) - Required. Format: customers/{customer_id}/profiles/{profile_permanent_id}
573+
* `optional_params` (*type:* `keyword()`) - Optional parameters
574+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
575+
* `:access_token` (*type:* `String.t`) - OAuth access token.
576+
* `:alt` (*type:* `String.t`) - Data format for response.
577+
* `:callback` (*type:* `String.t`) - JSONP
578+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
579+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
580+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
581+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
582+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
583+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
584+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
585+
* `opts` (*type:* `keyword()`) - Call options
586+
587+
## Returns
588+
589+
* `{:ok, %GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeBrowserProfile{}}` on success
590+
* `{:error, info}` on failure
591+
"""
592+
@spec chromemanagement_customers_profiles_get(
593+
Tesla.Env.client(),
594+
String.t(),
595+
keyword(),
596+
keyword()
597+
) ::
598+
{:ok,
599+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeBrowserProfile.t()}
600+
| {:ok, Tesla.Env.t()}
601+
| {:ok, list()}
602+
| {:error, any()}
603+
def chromemanagement_customers_profiles_get(connection, name, optional_params \\ [], opts \\ []) do
604+
optional_params_config = %{
605+
:"$.xgafv" => :query,
606+
:access_token => :query,
607+
:alt => :query,
608+
:callback => :query,
609+
:fields => :query,
610+
:key => :query,
611+
:oauth_token => :query,
612+
:prettyPrint => :query,
613+
:quotaUser => :query,
614+
:uploadType => :query,
615+
:upload_protocol => :query
616+
}
617+
618+
request =
619+
Request.new()
620+
|> Request.method(:get)
621+
|> Request.url("/v1/{+name}", %{
622+
"name" => URI.encode(name, &URI.char_unreserved?/1)
623+
})
624+
|> Request.add_optional_params(optional_params_config, optional_params)
625+
|> Request.library_version(@library_version)
626+
627+
connection
628+
|> Connection.execute(request)
629+
|> Response.decode(
630+
opts ++
631+
[
632+
struct:
633+
%GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ChromeBrowserProfile{}
634+
]
635+
)
636+
end
637+
638+
@doc """
639+
Lists Chrome browser profiles of a customer based on the given search and sorting criteria.
640+
641+
## Parameters
642+
643+
* `connection` (*type:* `GoogleApi.ChromeManagement.V1.Connection.t`) - Connection to server
644+
* `parent` (*type:* `String.t`) - Required. Format: customers/{customer_id}
645+
* `optional_params` (*type:* `keyword()`) - Optional parameters
646+
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
647+
* `:access_token` (*type:* `String.t`) - OAuth access token.
648+
* `:alt` (*type:* `String.t`) - Data format for response.
649+
* `:callback` (*type:* `String.t`) - JSONP
650+
* `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response.
651+
* `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
652+
* `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user.
653+
* `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks.
654+
* `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
655+
* `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart").
656+
* `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart").
657+
* `:filter` (*type:* `String.t`) - Optional. The filter used to filter profiles. The following fields can be used in the filter: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state - ouId Any of the above fields can be used to specify a filter, and filtering by multiple fields is supported with AND operator. String type fields and enum type fields support '=' and '!=' operators. The integer type and the timestamp type fields support '=', '!=', '<', '>', '<=' and '>=' operators. Timestamps expect an RFC-3339 formatted string (e.g. 2012-04-21T11:30:00-04:00). Wildcard '*' can be used with a string type field filter. In addition, string literal filtering is also supported, for example, 'ABC' as a filter maps to a filter that checks if any of the filterable string type fields contains 'ABC'. Organization unit number can be used as a filtering criteria here by specifying 'ouId = ${your_org_unit_id}', please note that only single OU ID matching is supported.
658+
* `:orderBy` (*type:* `String.t`) - Optional. The fields used to specify the ordering of the results. The supported fields are: - profile_id - display_name - user_email - last_activity_time - last_policy_sync_time - last_status_report_time - first_enrollment_time - os_platform_type - os_version - browser_version - browser_channel - policy_count - extension_count - identity_provider - affiliation_state By default, sorting is in ascending order, to specify descending order for a field, a suffix " desc" should be added to the field name. The default ordering is the descending order of last_status_report_time.
659+
* `:pageSize` (*type:* `integer()`) - Optional. The maximum number of profiles to return. The default page size is 100 if page_size is unspecified, and the maximum page size allowed is 200.
660+
* `:pageToken` (*type:* `String.t`) - Optional. The page token used to retrieve a specific page of the listing request.
661+
* `opts` (*type:* `keyword()`) - Call options
662+
663+
## Returns
664+
665+
* `{:ok, %GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse{}}` on success
666+
* `{:error, info}` on failure
667+
"""
668+
@spec chromemanagement_customers_profiles_list(
669+
Tesla.Env.client(),
670+
String.t(),
671+
keyword(),
672+
keyword()
673+
) ::
674+
{:ok,
675+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse.t()}
676+
| {:ok, Tesla.Env.t()}
677+
| {:ok, list()}
678+
| {:error, any()}
679+
def chromemanagement_customers_profiles_list(
680+
connection,
681+
parent,
682+
optional_params \\ [],
683+
opts \\ []
684+
) do
685+
optional_params_config = %{
686+
:"$.xgafv" => :query,
687+
:access_token => :query,
688+
:alt => :query,
689+
:callback => :query,
690+
:fields => :query,
691+
:key => :query,
692+
:oauth_token => :query,
693+
:prettyPrint => :query,
694+
:quotaUser => :query,
695+
:uploadType => :query,
696+
:upload_protocol => :query,
697+
:filter => :query,
698+
:orderBy => :query,
699+
:pageSize => :query,
700+
:pageToken => :query
701+
}
702+
703+
request =
704+
Request.new()
705+
|> Request.method(:get)
706+
|> Request.url("/v1/{+parent}/profiles", %{
707+
"parent" => URI.encode(parent, &URI.char_unreserved?/1)
708+
})
709+
|> Request.add_optional_params(optional_params_config, optional_params)
710+
|> Request.library_version(@library_version)
711+
712+
connection
713+
|> Connection.execute(request)
714+
|> Response.decode(
715+
opts ++
716+
[
717+
struct:
718+
%GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1ListChromeBrowserProfilesResponse{}
719+
]
720+
)
721+
end
722+
494723
@doc """
495724
Count of Chrome Browsers that have been recently enrolled, have new policy to be synced, or have no recent activity.
496725

clients/chrome_management/lib/google_api/chrome_management/v1/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.ChromeManagement.V1 do
2020
API client metadata for GoogleApi.ChromeManagement.V1.
2121
"""
2222

23-
@discovery_revision "20241023"
23+
@discovery_revision "20241119"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1AttestationCredential do
19+
@moduledoc """
20+
Information of public key associated with a Chrome browser profile.
21+
22+
## Attributes
23+
24+
* `keyRotationTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. Latest rotation timestamp of the public key rotation.
25+
* `keyTrustLevel` (*type:* `String.t`, *default:* `nil`) - Output only. Trust level of the public key.
26+
* `keyType` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the public key.
27+
* `publicKey` (*type:* `String.t`, *default:* `nil`) - Output only. Value of the public key.
28+
"""
29+
30+
use GoogleApi.Gax.ModelBase
31+
32+
@type t :: %__MODULE__{
33+
:keyRotationTime => DateTime.t() | nil,
34+
:keyTrustLevel => String.t() | nil,
35+
:keyType => String.t() | nil,
36+
:publicKey => String.t() | nil
37+
}
38+
39+
field(:keyRotationTime, as: DateTime)
40+
field(:keyTrustLevel)
41+
field(:keyType)
42+
field(:publicKey)
43+
end
44+
45+
defimpl Poison.Decoder,
46+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1AttestationCredential do
47+
def decode(value, options) do
48+
GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1AttestationCredential.decode(
49+
value,
50+
options
51+
)
52+
end
53+
end
54+
55+
defimpl Poison.Encoder,
56+
for: GoogleApi.ChromeManagement.V1.Model.GoogleChromeManagementVersionsV1AttestationCredential do
57+
def encode(value, options) do
58+
GoogleApi.Gax.ModelBase.encode(value, options)
59+
end
60+
end

0 commit comments

Comments
 (0)