Skip to content

Commit

Permalink
feat: Generate Google.Apis.Walletobjects.v1 version 1.69.0.3687
Browse files Browse the repository at this point in the history
  • Loading branch information
amanda-tarafa committed Feb 10, 2025
1 parent e9916b1 commit b723187
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 6 deletions.
57 changes: 56 additions & 1 deletion DiscoveryJson/walletobjects.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2679,9 +2679,39 @@
]
}
}
},
"walletobjects": {
"resources": {
"v1": {
"resources": {
"privateContent": {
"methods": {
"setPassUpdateNotice": {
"description": "Provide Google with information about awaiting private pass update. This will allow Google to provide the update notification to the device that currently holds this pass.",
"flatPath": "walletobjects/v1/privateContent/setPassUpdateNotice",
"httpMethod": "POST",
"id": "walletobjects.walletobjects.v1.privateContent.setPassUpdateNotice",
"parameterOrder": [],
"parameters": {},
"path": "walletobjects/v1/privateContent/setPassUpdateNotice",
"request": {
"$ref": "SetPassUpdateNoticeRequest"
},
"response": {
"$ref": "SetPassUpdateNoticeResponse"
},
"scopes": [
"https://www.googleapis.com/auth/wallet_object.issuer"
]
}
}
}
}
}
}
}
},
"revision": "20241203",
"revision": "20250204",
"rootUrl": "https://walletobjects.googleapis.com/",
"schemas": {
"ActivationOptions": {
Expand Down Expand Up @@ -8572,6 +8602,31 @@
},
"type": "object"
},
"SetPassUpdateNoticeRequest": {
"description": "Request to send a private pass update notice information to Google, so that devices can then fetch the notice prompting the user to update a pass.",
"id": "SetPassUpdateNoticeRequest",
"properties": {
"externalPassId": {
"description": "Required. A fully qualified identifier of the pass that the issuer wants to notify the pass holder(s) about. Formatted as .",
"type": "string"
},
"updateUri": {
"description": "Required. The issuer endpoint URI the pass holder needs to follow in order to receive an updated pass JWT. It can not contain any sensitive information. The endpoint needs to authenticate the user before giving the user the updated JWT. Example update URI https://someissuer.com/update/passId=someExternalPassId",
"type": "string"
},
"updatedPassJwtSignature": {
"description": "Required. The JWT signature of the updated pass that the issuer wants to notify Google about. Only devices that report a different JWT signature than this JWT signature will receive the update notification.",
"type": "string"
}
},
"type": "object"
},
"SetPassUpdateNoticeResponse": {
"description": "A response to a request to notify Google of an awaiting update to a private pass.",
"id": "SetPassUpdateNoticeResponse",
"properties": {},
"type": "object"
},
"SignUpInfo": {
"id": "SignUpInfo",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2024 Google LLC
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -53,6 +53,7 @@ public WalletobjectsService(Google.Apis.Services.BaseClientService.Initializer i
Smarttap = new SmarttapResource(this);
Transitclass = new TransitclassResource(this);
Transitobject = new TransitobjectResource(this);
Walletobjects = new WalletobjectsResource(this);
BaseUri = GetEffectiveUri(BaseUriOverride, "https://walletobjects.googleapis.com/");
BatchUri = GetEffectiveUri(null, "https://walletobjects.googleapis.com/batch");
}
Expand Down Expand Up @@ -145,6 +146,9 @@ public static class ScopeConstants

/// <summary>Gets the Transitobject resource.</summary>
public virtual TransitobjectResource Transitobject { get; }

/// <summary>Gets the Walletobjects resource.</summary>
public virtual WalletobjectsResource Walletobjects { get; }
}

/// <summary>A base abstract class for Walletobjects requests.</summary>
Expand Down Expand Up @@ -6464,6 +6468,104 @@ protected override void InitParameters()
}
}
}

/// <summary>The "walletobjects" collection of methods.</summary>
public class WalletobjectsResource
{
private const string Resource = "walletobjects";

/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;

/// <summary>Constructs a new resource.</summary>
public WalletobjectsResource(Google.Apis.Services.IClientService service)
{
this.service = service;
V1 = new V1Resource(service);
}

/// <summary>Gets the V1 resource.</summary>
public virtual V1Resource V1 { get; }

/// <summary>The "v1" collection of methods.</summary>
public class V1Resource
{
private const string Resource = "v1";

/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;

/// <summary>Constructs a new resource.</summary>
public V1Resource(Google.Apis.Services.IClientService service)
{
this.service = service;
PrivateContent = new PrivateContentResource(service);
}

/// <summary>Gets the PrivateContent resource.</summary>
public virtual PrivateContentResource PrivateContent { get; }

/// <summary>The "privateContent" collection of methods.</summary>
public class PrivateContentResource
{
private const string Resource = "privateContent";

/// <summary>The service which this resource belongs to.</summary>
private readonly Google.Apis.Services.IClientService service;

/// <summary>Constructs a new resource.</summary>
public PrivateContentResource(Google.Apis.Services.IClientService service)
{
this.service = service;
}

/// <summary>
/// Provide Google with information about awaiting private pass update. This will allow Google to
/// provide the update notification to the device that currently holds this pass.
/// </summary>
/// <param name="body">The body of the request.</param>
public virtual SetPassUpdateNoticeRequest SetPassUpdateNotice(Google.Apis.Walletobjects.v1.Data.SetPassUpdateNoticeRequest body)
{
return new SetPassUpdateNoticeRequest(this.service, body);
}

/// <summary>
/// Provide Google with information about awaiting private pass update. This will allow Google to
/// provide the update notification to the device that currently holds this pass.
/// </summary>
public class SetPassUpdateNoticeRequest : WalletobjectsBaseServiceRequest<Google.Apis.Walletobjects.v1.Data.SetPassUpdateNoticeResponse>
{
/// <summary>Constructs a new SetPassUpdateNotice request.</summary>
public SetPassUpdateNoticeRequest(Google.Apis.Services.IClientService service, Google.Apis.Walletobjects.v1.Data.SetPassUpdateNoticeRequest body) : base(service)
{
Body = body;
InitParameters();
}

/// <summary>Gets or sets the body of this request.</summary>
Google.Apis.Walletobjects.v1.Data.SetPassUpdateNoticeRequest Body { get; set; }

/// <summary>Returns the body of the request.</summary>
protected override object GetBody() => Body;

/// <summary>Gets the method name.</summary>
public override string MethodName => "setPassUpdateNotice";

/// <summary>Gets the HTTP method.</summary>
public override string HttpMethod => "POST";

/// <summary>Gets the REST path.</summary>
public override string RestPath => "walletobjects/v1/privateContent/setPassUpdateNotice";

/// <summary>Initializes SetPassUpdateNotice parameter list.</summary>
protected override void InitParameters()
{
base.InitParameters();
}
}
}
}
}
}
namespace Google.Apis.Walletobjects.v1.Data
{
Expand Down Expand Up @@ -12002,6 +12104,45 @@ public class SecurityAnimation : Google.Apis.Requests.IDirectResponseSchema
public virtual string ETag { get; set; }
}

/// <summary>
/// Request to send a private pass update notice information to Google, so that devices can then fetch the notice
/// prompting the user to update a pass.
/// </summary>
public class SetPassUpdateNoticeRequest : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>
/// Required. A fully qualified identifier of the pass that the issuer wants to notify the pass holder(s) about.
/// Formatted as .
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("externalPassId")]
public virtual string ExternalPassId { get; set; }

/// <summary>
/// Required. The issuer endpoint URI the pass holder needs to follow in order to receive an updated pass JWT.
/// It can not contain any sensitive information. The endpoint needs to authenticate the user before giving the
/// user the updated JWT. Example update URI https://someissuer.com/update/passId=someExternalPassId
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("updateUri")]
public virtual string UpdateUri { get; set; }

/// <summary>
/// Required. The JWT signature of the updated pass that the issuer wants to notify Google about. Only devices
/// that report a different JWT signature than this JWT signature will receive the update notification.
/// </summary>
[Newtonsoft.Json.JsonPropertyAttribute("updatedPassJwtSignature")]
public virtual string UpdatedPassJwtSignature { get; set; }

/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

/// <summary>A response to a request to notify Google of an awaiting update to a private pass.</summary>
public class SetPassUpdateNoticeResponse : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>The ETag of the item.</summary>
public virtual string ETag { get; set; }
}

public class SignUpInfo : Google.Apis.Requests.IDirectResponseSchema
{
/// <summary>ID of the class the user can sign up for.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<!-- nupkg information -->
<PropertyGroup>
<Title>Google.Apis.Walletobjects.v1 Client Library</Title>
<Version>1.68.0.3624</Version>
<Version>1.69.0.3687</Version>
<Authors>Google LLC</Authors>
<Copyright>Copyright 2024 Google LLC</Copyright>
<Copyright>Copyright 2025 Google LLC</Copyright>
<PackageTags>Google</PackageTags>
<PackageProjectUrl>https://github.com/google/google-api-dotnet-client</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
Expand Down Expand Up @@ -59,8 +59,8 @@
<!-- common dependencies -->
<ItemGroup>
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.0.0" PrivateAssets="All" />
<PackageReference Include="Google.Apis" Version="1.68.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.68.0" />
<PackageReference Include="Google.Apis" Version="1.69.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.69.0" />
</ItemGroup>

</Project>

0 comments on commit b723187

Please sign in to comment.