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

Deprecated support Part 2 #603

Merged
merged 4 commits into from
Sep 5, 2023
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
2 changes: 1 addition & 1 deletion Examples/DriveSample/DriveSampleWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ - (NSString *)fileTitleWithLabelsForFile:(GTLRDrive_File *)file {
if (file.trashed.boolValue) {
[title insertString:@"\u2717 " atIndex:0]; // X character
}
if (file.viewersCanCopyContent.boolValue) {
if (file.copyRequiresWriterPermission.boolValue) {
[title appendString:@" \u21DF"]; // crossed down arrow character
}
return title;
Expand Down
9 changes: 0 additions & 9 deletions Examples/YouTubeSample/Base.lproj/YouTubeSampleWindow.xib
Original file line number Diff line number Diff line change
Expand Up @@ -270,15 +270,6 @@ Gw
<menuItem title="Likes" tag="1" id="431">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem title="Favorites" tag="2" id="434">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem title="Watch History" tag="3" id="435">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
<menuItem title="Watch Later" tag="4" id="432">
<modifierMask key="keyEquivalentModifierMask"/>
</menuItem>
</items>
</menu>
</popUpButtonCell>
Expand Down
6 changes: 0 additions & 6 deletions Examples/YouTubeSample/YouTubeSampleWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
// Playlist pop-up menu item tags.
kUploadsTag = 0,
kLikesTag = 1,
kFavoritesTag = 2,
kWatchHistoryTag = 3,
kWatchLaterTag = 4
};

// This is the URL shown users after completing the OAuth flow. This is an information page only and
Expand Down Expand Up @@ -331,9 +328,6 @@ - (void)fetchSelectedPlaylist {
switch(tag) {
case kUploadsTag: playlistID = _myPlaylists.uploads; break;
case kLikesTag: playlistID = _myPlaylists.likes; break;
case kFavoritesTag: playlistID = _myPlaylists.favorites; break;
case kWatchHistoryTag: playlistID = _myPlaylists.watchHistory; break;
case kWatchLaterTag: playlistID = _myPlaylists.watchLater; break;
default: NSAssert(0, @"Unexpected tag: %ld", tag);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3193,7 +3193,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
@property(nonatomic, strong, nullable) NSArray<NSString *> *clickThroughUrls;

/** Output only. Shows any corrections that were applied to this creative. */
@property(nonatomic, strong, nullable) NSArray<GTLRAdExchangeBuyerII_Correction *> *corrections;
@property(nonatomic, strong, nullable) NSArray<GTLRAdExchangeBuyerII_Correction *> *corrections GTLR_DEPRECATED;

/**
* The buyer-defined creative ID of this creative. Can be used to filter the
Expand Down Expand Up @@ -4357,7 +4357,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
*
* Uses NSNumber of intValue.
*/
@property(nonatomic, strong, nullable) NSNumber *detailId;
@property(nonatomic, strong, nullable) NSNumber *detailId GTLR_DEPRECATED;

/** The values of all dimensions associated with metric values in this row. */
@property(nonatomic, strong, nullable) GTLRAdExchangeBuyerII_RowDimensions *rowDimensions;
Expand Down Expand Up @@ -4446,7 +4446,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
* request error will be returned in the response if you specify multiple
* items.
*/
@property(nonatomic, strong, nullable) NSArray<NSString *> *formats;
@property(nonatomic, strong, nullable) NSArray<NSString *> *formats GTLR_DEPRECATED;

/**
* A user-defined name of the filter set. Filter set names must be unique
Expand Down Expand Up @@ -5517,7 +5517,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
@property(nonatomic, strong, nullable) NSNumber *starRating;

/** The URL to the app store to purchase/download the promoted app. */
@property(nonatomic, copy, nullable) NSString *storeUrl;
@property(nonatomic, copy, nullable) NSString *storeUrl GTLR_DEPRECATED;

/** The URL to fetch a native video ad. */
@property(nonatomic, copy, nullable) NSString *videoUrl;
Expand Down Expand Up @@ -5929,7 +5929,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *isSetupComplete;
@property(nonatomic, strong, nullable) NSNumber *isSetupComplete GTLR_DEPRECATED;

/**
* Output only. The role of the last user that either updated the proposal or
Expand Down Expand Up @@ -6326,7 +6326,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
@property(nonatomic, strong, nullable) GTLRAdExchangeBuyerII_PlatformContext *platform;

/** Matches impressions for a particular security type. */
@property(nonatomic, strong, nullable) GTLRAdExchangeBuyerII_SecurityContext *securityType;
@property(nonatomic, strong, nullable) GTLRAdExchangeBuyerII_SecurityContext *securityType GTLR_DEPRECATED;

@end

Expand All @@ -6353,7 +6353,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExchangeBuyerII_VideoTargeting_Targete
* status=DISAPPROVED. Can be used to filter the response of the creatives.list
* method. Deprecated; use disapproval field instead.
*/
@property(nonatomic, strong, nullable) NSArray<GTLRAdExchangeBuyerII_Disapproval *> *disapprovalReasons;
@property(nonatomic, strong, nullable) NSArray<GTLRAdExchangeBuyerII_Disapproval *> *disapprovalReasons GTLR_DEPRECATED;

/**
* The status of the creative in this context (for example, it has been
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAdExperienceReport_PlatformSummary_Regio
* The site's regions on this platform. No longer populated, because there is
* no longer any semantic difference between sites in different regions.
*/
@property(nonatomic, strong, nullable) NSArray<NSString *> *region;
@property(nonatomic, strong, nullable) NSArray<NSString *> *region GTLR_DEPRECATED;

/**
* A link to the full Ad Experience Report for the site on this platform.. Not
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6802,7 +6802,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAiplatform_GoogleCloudAiplatformV1Trial_
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *enablePrivateServiceConnect;
@property(nonatomic, strong, nullable) NSNumber *enablePrivateServiceConnect GTLR_DEPRECATED;

/**
* Customer-managed encryption key spec for an Endpoint. If set, this Endpoint
Expand Down Expand Up @@ -10189,7 +10189,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAiplatform_GoogleCloudAiplatformV1Trial_
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *enablePrivateServiceConnect;
@property(nonatomic, strong, nullable) NSNumber *enablePrivateServiceConnect GTLR_DEPRECATED;

/**
* Used to perform consistent read-modify-write updates. If not set, a blind
Expand Down Expand Up @@ -13595,7 +13595,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAiplatform_GoogleCloudAiplatformV1Trial_
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *enableRestrictedImageTraining;
@property(nonatomic, strong, nullable) NSNumber *enableRestrictedImageTraining GTLR_DEPRECATED;

/**
* Customer-managed encryption key options for a NasJob. If this is set, then
Expand Down Expand Up @@ -14365,7 +14365,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAiplatform_GoogleCloudAiplatformV1Trial_
* 2.0.0 or lower, such as pipelines built using Kubeflow Pipelines SDK 1.8 or
* lower.
*/
@property(nonatomic, strong, nullable) GTLRAiplatform_GoogleCloudAiplatformV1PipelineJobRuntimeConfig_Parameters *parameters;
@property(nonatomic, strong, nullable) GTLRAiplatform_GoogleCloudAiplatformV1PipelineJobRuntimeConfig_Parameters *parameters GTLR_DEPRECATED;

/**
* The runtime parameters of the PipelineJob. The parameters will be passed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2551,7 +2551,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidEnterprise_WebApp_DisplayMode_Sta
* @arg @c kGTLRAndroidEnterprise_Policy_AutoUpdatePolicy_WifiOnly Apps are
* auto-updated over WiFi only. (Value: "wifiOnly")
*/
@property(nonatomic, copy, nullable) NSString *autoUpdatePolicy;
@property(nonatomic, copy, nullable) NSString *autoUpdatePolicy GTLR_DEPRECATED;

/**
* Whether the device reports app states to the EMM. The default value is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4106,7 +4106,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *lockTaskAllowed;
@property(nonatomic, strong, nullable) NSNumber *lockTaskAllowed GTLR_DEPRECATED;

/**
* Managed configuration applied to the app. The format for the configuration
Expand Down Expand Up @@ -5192,7 +5192,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
@property(nonatomic, strong, nullable) NSArray<GTLRAndroidManagement_HardwareStatus *> *hardwareStatusSamples;

/** Deprecated. */
@property(nonatomic, strong, nullable) GTLRDateTime *lastPolicyComplianceReportTime;
@property(nonatomic, strong, nullable) GTLRDateTime *lastPolicyComplianceReportTime GTLR_DEPRECATED;

/** The last time the device fetched its policy. */
@property(nonatomic, strong, nullable) GTLRDateTime *lastPolicySyncTime;
Expand Down Expand Up @@ -5826,7 +5826,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *appAutoApprovalEnabled;
@property(nonatomic, strong, nullable) NSNumber *appAutoApprovalEnabled GTLR_DEPRECATED;

/** The enterprise contact info of an EMM-managed enterprise. */
@property(nonatomic, strong, nullable) GTLRAndroidManagement_ContactInfo *contactInfo;
Expand Down Expand Up @@ -6908,7 +6908,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
@property(nonatomic, copy, nullable) NSString *meid;

/** Alphabetic name of current registered operator. For example, Vodafone. */
@property(nonatomic, copy, nullable) NSString *networkOperatorName;
@property(nonatomic, copy, nullable) NSString *networkOperatorName GTLR_DEPRECATED;

/**
* Provides telephony information associated with each SIM card on the device.
Expand Down Expand Up @@ -7833,7 +7833,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *autoTimeRequired;
@property(nonatomic, strong, nullable) NSNumber *autoTimeRequired GTLR_DEPRECATED;

/**
* Whether applications other than the ones configured in applications are
Expand All @@ -7843,7 +7843,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *blockApplicationsEnabled;
@property(nonatomic, strong, nullable) NSNumber *blockApplicationsEnabled GTLR_DEPRECATED;

/**
* Whether configuring bluetooth is disabled.
Expand Down Expand Up @@ -7910,7 +7910,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *cameraDisabled;
@property(nonatomic, strong, nullable) NSNumber *cameraDisabled GTLR_DEPRECATED;

/**
* Whether configuring cell broadcast is disabled.
Expand All @@ -7932,7 +7932,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
* satisfied, all of the mitigating actions for the rules are taken. There is a
* maximum limit of 100 rules. Use policy enforcement rules instead.
*/
@property(nonatomic, strong, nullable) NSArray<GTLRAndroidManagement_ComplianceRule *> *complianceRules;
@property(nonatomic, strong, nullable) NSArray<GTLRAndroidManagement_ComplianceRule *> *complianceRules GTLR_DEPRECATED;

/**
* Whether creating windows besides app windows is disabled.
Expand Down Expand Up @@ -7963,7 +7963,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *debuggingFeaturesAllowed;
@property(nonatomic, strong, nullable) NSNumber *debuggingFeaturesAllowed GTLR_DEPRECATED;

/**
* The default permission policy for runtime permission requests.
Expand Down Expand Up @@ -8015,7 +8015,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *ensureVerifyAppsEnabled;
@property(nonatomic, strong, nullable) NSNumber *ensureVerifyAppsEnabled GTLR_DEPRECATED;

/**
* Whether factory resetting from settings is disabled.
Expand Down Expand Up @@ -8052,7 +8052,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *installUnknownSourcesAllowed;
@property(nonatomic, strong, nullable) NSNumber *installUnknownSourcesAllowed GTLR_DEPRECATED;

/**
* If true, this disables the Lock Screen
Expand Down Expand Up @@ -8252,7 +8252,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
* is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used
* here. unified_lock_settings cannot be used here.
*/
@property(nonatomic, strong, nullable) GTLRAndroidManagement_PasswordRequirements *passwordRequirements;
@property(nonatomic, strong, nullable) GTLRAndroidManagement_PasswordRequirements *passwordRequirements GTLR_DEPRECATED;

/**
* Explicit permission or group grants or denials for all apps. These values
Expand Down Expand Up @@ -8361,7 +8361,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *safeBootDisabled;
@property(nonatomic, strong, nullable) NSNumber *safeBootDisabled GTLR_DEPRECATED;

/**
* Whether screen capture is disabled.
Expand Down Expand Up @@ -8429,7 +8429,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *statusBarDisabled;
@property(nonatomic, strong, nullable) NSNumber *statusBarDisabled GTLR_DEPRECATED;

/** Status reporting settings */
@property(nonatomic, strong, nullable) GTLRAndroidManagement_StatusReportingSettings *statusReportingSettings;
Expand All @@ -8455,7 +8455,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *tetheringConfigDisabled;
@property(nonatomic, strong, nullable) NSNumber *tetheringConfigDisabled GTLR_DEPRECATED;

/**
* Whether user uninstallation of applications is disabled. This prevents apps
Expand All @@ -8474,7 +8474,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *unmuteMicrophoneDisabled;
@property(nonatomic, strong, nullable) NSNumber *unmuteMicrophoneDisabled GTLR_DEPRECATED;

/** Configuration of device activity logging. */
@property(nonatomic, strong, nullable) GTLRAndroidManagement_UsageLog *usageLog;
Expand All @@ -8485,14 +8485,14 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *usbFileTransferDisabled;
@property(nonatomic, strong, nullable) NSNumber *usbFileTransferDisabled GTLR_DEPRECATED;

/**
* Whether USB storage is enabled. Deprecated.
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *usbMassStorageEnabled;
@property(nonatomic, strong, nullable) NSNumber *usbMassStorageEnabled GTLR_DEPRECATED;

/**
* The version of the policy. This is a read-only field. The version is
Expand Down Expand Up @@ -8524,14 +8524,14 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *wifiConfigDisabled;
@property(nonatomic, strong, nullable) NSNumber *wifiConfigDisabled GTLR_DEPRECATED;

/**
* DEPRECATED - Use wifi_config_disabled.
*
* Uses NSNumber of boolValue.
*/
@property(nonatomic, strong, nullable) NSNumber *wifiConfigsLockdownEnabled;
@property(nonatomic, strong, nullable) NSNumber *wifiConfigsLockdownEnabled GTLR_DEPRECATED;

@end

Expand Down Expand Up @@ -9789,7 +9789,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidManagement_WebToken_Permissions_W
* Permissions available to an admin in the embedded UI. An admin must have all
* of these permissions in order to view the UI. This field is deprecated.
*/
@property(nonatomic, strong, nullable) NSArray<NSString *> *permissions;
@property(nonatomic, strong, nullable) NSArray<NSString *> *permissions GTLR_DEPRECATED;

/**
* The token value which is used in the hosting page to generate the iframe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,7 @@ FOUNDATION_EXTERN NSString * const kGTLRAndroidPublisher_User_DeveloperAccountPe
@property(nonatomic, copy, nullable) NSString *kind;

/** Deprecated and unset. */
@property(nonatomic, strong, nullable) GTLRAndroidPublisher_PageInfo *pageInfo;
@property(nonatomic, strong, nullable) GTLRAndroidPublisher_PageInfo *pageInfo GTLR_DEPRECATED;

/** Pagination token, to handle a number of products that is over one page. */
@property(nonatomic, strong, nullable) GTLRAndroidPublisher_TokenPagination *tokenPagination;
Expand Down
Loading