-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tnt 43817 update open api models (#57)
* clear older openapi folder * Squashed 'openapi/' content from commit 1b0e12d72e git-subtree-dir: openapi git-subtree-split: 1b0e12d72e63d37cee94d1fb8524d28eab86ed75 * open api models
- Loading branch information
1 parent
0ce222b
commit 2d820e6
Showing
6 changed files
with
310 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
openapi: "3.0.0" | ||
ClientHints: | ||
type: object | ||
description: | | ||
Client hints data. Used in place of userAgent if provided. | ||
properties: | ||
mobile: | ||
type: boolean | ||
description: Sec-CH-UA-Mobile (low entropy) | ||
model: | ||
type: string | ||
description: Sec-CH-UA-Model | ||
platform: | ||
type: string | ||
description: Sec-CH-UA-Platform (low entropy) | ||
platformVersion: | ||
type: string | ||
description: Sec-CH-UA-Platform-Version | ||
browserUAWithMajorVersion: | ||
type: string | ||
description: Sec-CH-UA (low entropy) | ||
browserUAWithFullVersion: | ||
type: string | ||
description: Sec-CH-UA-Full-Version-List | ||
architecture: | ||
type: string | ||
description: Sec-CH-UA-Arch | ||
bitness: | ||
type: string | ||
description: Sec-CH-UA-Bitness |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
250 changes: 250 additions & 0 deletions
250
src/main/java/com/adobe/target/delivery/v1/model/ClientHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
/* | ||
* Copyright 2021 Adobe. All rights reserved. | ||
* This file is licensed to you 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 REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
* | ||
* NOTE: This is an auto generated file. Do not edit directly. | ||
*/ | ||
package com.adobe.target.delivery.v1.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.Objects; | ||
|
||
/** Client hints data. Used in place of userAgent if provided. */ | ||
public class ClientHints { | ||
@JsonProperty("mobile") | ||
private Boolean mobile; | ||
|
||
@JsonProperty("model") | ||
private String model; | ||
|
||
@JsonProperty("platform") | ||
private String platform; | ||
|
||
@JsonProperty("platformVersion") | ||
private String platformVersion; | ||
|
||
@JsonProperty("browserUAWithMajorVersion") | ||
private String browserUAWithMajorVersion; | ||
|
||
@JsonProperty("browserUAWithFullVersion") | ||
private String browserUAWithFullVersion; | ||
|
||
@JsonProperty("architecture") | ||
private String architecture; | ||
|
||
@JsonProperty("bitness") | ||
private String bitness; | ||
|
||
public ClientHints mobile(Boolean mobile) { | ||
this.mobile = mobile; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Mobile (low entropy) | ||
* | ||
* @return mobile | ||
*/ | ||
public Boolean getMobile() { | ||
return mobile; | ||
} | ||
|
||
public void setMobile(Boolean mobile) { | ||
this.mobile = mobile; | ||
} | ||
|
||
public ClientHints model(String model) { | ||
this.model = model; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Model | ||
* | ||
* @return model | ||
*/ | ||
public String getModel() { | ||
return model; | ||
} | ||
|
||
public void setModel(String model) { | ||
this.model = model; | ||
} | ||
|
||
public ClientHints platform(String platform) { | ||
this.platform = platform; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Platform (low entropy) | ||
* | ||
* @return platform | ||
*/ | ||
public String getPlatform() { | ||
return platform; | ||
} | ||
|
||
public void setPlatform(String platform) { | ||
this.platform = platform; | ||
} | ||
|
||
public ClientHints platformVersion(String platformVersion) { | ||
this.platformVersion = platformVersion; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Platform-Version | ||
* | ||
* @return platformVersion | ||
*/ | ||
public String getPlatformVersion() { | ||
return platformVersion; | ||
} | ||
|
||
public void setPlatformVersion(String platformVersion) { | ||
this.platformVersion = platformVersion; | ||
} | ||
|
||
public ClientHints browserUAWithMajorVersion(String browserUAWithMajorVersion) { | ||
this.browserUAWithMajorVersion = browserUAWithMajorVersion; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA (low entropy) | ||
* | ||
* @return browserUAWithMajorVersion | ||
*/ | ||
public String getBrowserUAWithMajorVersion() { | ||
return browserUAWithMajorVersion; | ||
} | ||
|
||
public void setBrowserUAWithMajorVersion(String browserUAWithMajorVersion) { | ||
this.browserUAWithMajorVersion = browserUAWithMajorVersion; | ||
} | ||
|
||
public ClientHints browserUAWithFullVersion(String browserUAWithFullVersion) { | ||
this.browserUAWithFullVersion = browserUAWithFullVersion; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Full-Version-List | ||
* | ||
* @return browserUAWithFullVersion | ||
*/ | ||
public String getBrowserUAWithFullVersion() { | ||
return browserUAWithFullVersion; | ||
} | ||
|
||
public void setBrowserUAWithFullVersion(String browserUAWithFullVersion) { | ||
this.browserUAWithFullVersion = browserUAWithFullVersion; | ||
} | ||
|
||
public ClientHints architecture(String architecture) { | ||
this.architecture = architecture; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Arch | ||
* | ||
* @return architecture | ||
*/ | ||
public String getArchitecture() { | ||
return architecture; | ||
} | ||
|
||
public void setArchitecture(String architecture) { | ||
this.architecture = architecture; | ||
} | ||
|
||
public ClientHints bitness(String bitness) { | ||
this.bitness = bitness; | ||
return this; | ||
} | ||
|
||
/** | ||
* Sec-CH-UA-Bitness | ||
* | ||
* @return bitness | ||
*/ | ||
public String getBitness() { | ||
return bitness; | ||
} | ||
|
||
public void setBitness(String bitness) { | ||
this.bitness = bitness; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
ClientHints clientHints = (ClientHints) o; | ||
return Objects.equals(this.mobile, clientHints.mobile) | ||
&& Objects.equals(this.model, clientHints.model) | ||
&& Objects.equals(this.platform, clientHints.platform) | ||
&& Objects.equals(this.platformVersion, clientHints.platformVersion) | ||
&& Objects.equals(this.browserUAWithMajorVersion, clientHints.browserUAWithMajorVersion) | ||
&& Objects.equals(this.browserUAWithFullVersion, clientHints.browserUAWithFullVersion) | ||
&& Objects.equals(this.architecture, clientHints.architecture) | ||
&& Objects.equals(this.bitness, clientHints.bitness); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash( | ||
mobile, | ||
model, | ||
platform, | ||
platformVersion, | ||
browserUAWithMajorVersion, | ||
browserUAWithFullVersion, | ||
architecture, | ||
bitness); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class ClientHints {\n"); | ||
sb.append(" mobile: ").append(toIndentedString(mobile)).append("\n"); | ||
sb.append(" model: ").append(toIndentedString(model)).append("\n"); | ||
sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); | ||
sb.append(" platformVersion: ").append(toIndentedString(platformVersion)).append("\n"); | ||
sb.append(" browserUAWithMajorVersion: ") | ||
.append(toIndentedString(browserUAWithMajorVersion)) | ||
.append("\n"); | ||
sb.append(" browserUAWithFullVersion: ") | ||
.append(toIndentedString(browserUAWithFullVersion)) | ||
.append("\n"); | ||
sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); | ||
sb.append(" bitness: ").append(toIndentedString(bitness)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters